Module org.mastodon4j.core
Package org.mastodon4j.core.api.entities
Record Class Instance.Configuration.Statuses
java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance.Configuration.Statuses
- Enclosing class:
- Instance.Configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharacters_reserved_per_urlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themax_charactersrecord component.Returns the value of themax_media_attachmentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Statuses
public Statuses(Integer max_characters, Integer max_media_attachments, Integer characters_reserved_per_url) Creates an instance of aStatusesrecord class.- Parameters:
max_characters- the value for themax_charactersrecord componentmax_media_attachments- the value for themax_media_attachmentsrecord componentcharacters_reserved_per_url- the value for thecharacters_reserved_per_urlrecord 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). -
max_characters
Returns the value of themax_charactersrecord component.- Returns:
- the value of the
max_charactersrecord component
-
max_media_attachments
Returns the value of themax_media_attachmentsrecord component.- Returns:
- the value of the
max_media_attachmentsrecord component
-
characters_reserved_per_url
Returns the value of thecharacters_reserved_per_urlrecord component.- Returns:
- the value of the
characters_reserved_per_urlrecord component
-