java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Search
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccounts()Returns the value of theaccountsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hashtags()Returns the value of thehashtagsrecord component.statuses()Returns the value of thestatusesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Search
Creates an instance of aSearchrecord class.- Parameters:
accounts- the value for theaccountsrecord componentstatuses- the value for thestatusesrecord componenthashtags- the value for thehashtagsrecord component
-
-
Method Details
-
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). -
accounts
Returns the value of theaccountsrecord component.- Returns:
- the value of the
accountsrecord component
-
statuses
Returns the value of thestatusesrecord component.- Returns:
- the value of the
statusesrecord component
-
hashtags
Returns the value of thehashtagsrecord component.- Returns:
- the value of the
hashtagsrecord component
-