Module org.mastodon4j.core
Package org.mastodon4j.core.api.entities
Record Class Instance.Configuration
java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance.Configuration
- Enclosing class:
- Instance
public static record Instance.Configuration(Instance.Configuration.Urls urls, Instance.Configuration.Accounts accounts, Instance.Configuration.Statuses statuses, Instance.Configuration.MediaAttachments media_attachments, Instance.Configuration.Polls polls, Instance.Configuration.Translation translation)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(Instance.Configuration.Urls urls, Instance.Configuration.Accounts accounts, Instance.Configuration.Statuses statuses, Instance.Configuration.MediaAttachments media_attachments, Instance.Configuration.Polls polls, Instance.Configuration.Translation translation) Creates an instance of aConfigurationrecord class. -
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.Returns the value of themedia_attachmentsrecord component.polls()Returns the value of thepollsrecord component.statuses()Returns the value of thestatusesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationrecord component.urls()Returns the value of theurlsrecord component.
-
Constructor Details
-
Configuration
public Configuration(Instance.Configuration.Urls urls, Instance.Configuration.Accounts accounts, Instance.Configuration.Statuses statuses, Instance.Configuration.MediaAttachments media_attachments, Instance.Configuration.Polls polls, Instance.Configuration.Translation translation) Creates an instance of aConfigurationrecord class.- Parameters:
urls- the value for theurlsrecord componentaccounts- the value for theaccountsrecord componentstatuses- the value for thestatusesrecord componentmedia_attachments- the value for themedia_attachmentsrecord componentpolls- the value for thepollsrecord componenttranslation- the value for thetranslationrecord 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). -
urls
Returns the value of theurlsrecord component.- Returns:
- the value of the
urlsrecord component
-
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
-
media_attachments
Returns the value of themedia_attachmentsrecord component.- Returns:
- the value of the
media_attachmentsrecord component
-
polls
Returns the value of thepollsrecord component.- Returns:
- the value of the
pollsrecord component
-
translation
Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-