Module org.mastodon4j.core
Package org.mastodon4j.core.api.entities
Record Class Instance.Configuration.Polls
java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance.Configuration.Polls
- Enclosing class:
- Instance.Configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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_characters_per_optionrecord component.Returns the value of themax_expirationrecord component.Returns the value of themax_optionsrecord component.Returns the value of themin_expirationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Polls
public Polls(Integer max_options, Integer max_characters_per_option, Integer min_expiration, Integer max_expiration) Creates an instance of aPollsrecord class.- Parameters:
max_options- the value for themax_optionsrecord componentmax_characters_per_option- the value for themax_characters_per_optionrecord componentmin_expiration- the value for themin_expirationrecord componentmax_expiration- the value for themax_expirationrecord 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_options
Returns the value of themax_optionsrecord component.- Returns:
- the value of the
max_optionsrecord component
-
max_characters_per_option
Returns the value of themax_characters_per_optionrecord component.- Returns:
- the value of the
max_characters_per_optionrecord component
-
min_expiration
Returns the value of themin_expirationrecord component.- Returns:
- the value of the
min_expirationrecord component
-
max_expiration
Returns the value of themax_expirationrecord component.- Returns:
- the value of the
max_expirationrecord component
-