Module org.mastodon4j.core
Package org.mastodon4j.core.api
Record Class BaseMastodonApi.QueryOptions
java.lang.Object
java.lang.Record
org.mastodon4j.core.api.BaseMastodonApi.QueryOptions
- Enclosing interface:
- BaseMastodonApi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccount_idrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexclude_unreviewedrecord component.excludeUnreviewed(boolean exclude_unreviewed) Returns the value of thefollowingrecord component.following(boolean following) final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.limit(int limit) max_id()Returns the value of themax_idrecord component.min_id()Returns the value of themin_idrecord component.static BaseMastodonApi.QueryOptionsoffset()Returns the value of theoffsetrecord component.offset(int offset) q()Returns the value of theqrecord component.resolve()Returns the value of theresolverecord component.resolve(boolean resolve) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
QueryOptions
public QueryOptions(String q, String type, Boolean resolve, Boolean following, String account_id, Boolean exclude_unreviewed, String max_id, String min_id, Integer limit, Integer offset) Creates an instance of aQueryOptionsrecord class.- Parameters:
q- the value for theqrecord componenttype- the value for thetyperecord componentresolve- the value for theresolverecord componentfollowing- the value for thefollowingrecord componentaccount_id- the value for theaccount_idrecord componentexclude_unreviewed- the value for theexclude_unreviewedrecord componentmax_id- the value for themax_idrecord componentmin_id- the value for themin_idrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
of
-
type
-
resolve
-
following
-
accountId
-
excludeUnreviewed
-
maxId
-
minId
-
limit
-
offset
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
q
Returns the value of theqrecord component.- Returns:
- the value of the
qrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
resolve
Returns the value of theresolverecord component.- Returns:
- the value of the
resolverecord component
-
following
Returns the value of thefollowingrecord component.- Returns:
- the value of the
followingrecord component
-
account_id
Returns the value of theaccount_idrecord component.- Returns:
- the value of the
account_idrecord component
-
exclude_unreviewed
Returns the value of theexclude_unreviewedrecord component.- Returns:
- the value of the
exclude_unreviewedrecord component
-
max_id
Returns the value of themax_idrecord component.- Returns:
- the value of the
max_idrecord component
-
min_id
Returns the value of themin_idrecord component.- Returns:
- the value of the
min_idrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-