java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.History
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccounts()Returns the value of theaccountsrecord component.day()Returns the value of thedayrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefollowingrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.uses()Returns the value of theusesrecord component.
-
Constructor Details
-
History
Creates an instance of aHistoryrecord class.- Parameters:
day- the value for thedayrecord componentuses- the value for theusesrecord componentaccounts- the value for theaccountsrecord componentfollowing- the value for thefollowingrecord 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). -
day
Returns the value of thedayrecord component.- Returns:
- the value of the
dayrecord component
-
uses
Returns the value of theusesrecord component.- Returns:
- the value of the
usesrecord component
-
accounts
Returns the value of theaccountsrecord component.- Returns:
- the value of the
accountsrecord component
-
following
Returns the value of thefollowingrecord component.- Returns:
- the value of the
followingrecord component
-