java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance
public record Instance(String domain, String title, String version, String source_url, String description, Instance.Usage usage, Instance.Thumbnail thumbnail, List<String> languages, Instance.Configuration configuration, Instance.Registrations registrations, Instance.Contact contact, List<Rule> rules)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionInstance(String domain, String title, String version, String source_url, String description, Instance.Usage usage, Instance.Thumbnail thumbnail, List<String> languages, Instance.Configuration configuration, Instance.Registrations registrations, Instance.Contact contact, List<Rule> rules) Creates an instance of aInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.contact()Returns the value of thecontactrecord component.Returns the value of thedescriptionrecord component.domain()Returns the value of thedomainrecord 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 thelanguagesrecord component.Returns the value of theregistrationsrecord component.rules()Returns the value of therulesrecord component.Returns the value of thesource_urlrecord component.Returns the value of thethumbnailrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Instance
public Instance(String domain, String title, String version, String source_url, String description, Instance.Usage usage, Instance.Thumbnail thumbnail, List<String> languages, Instance.Configuration configuration, Instance.Registrations registrations, Instance.Contact contact, List<Rule> rules) Creates an instance of aInstancerecord class.- Parameters:
domain- the value for thedomainrecord componenttitle- the value for thetitlerecord componentversion- the value for theversionrecord componentsource_url- the value for thesource_urlrecord componentdescription- the value for thedescriptionrecord componentusage- the value for theusagerecord componentthumbnail- the value for thethumbnailrecord componentlanguages- the value for thelanguagesrecord componentconfiguration- the value for theconfigurationrecord componentregistrations- the value for theregistrationsrecord componentcontact- the value for thecontactrecord componentrules- the value for therulesrecord 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). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
source_url
Returns the value of thesource_urlrecord component.- Returns:
- the value of the
source_urlrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
languages
Returns the value of thelanguagesrecord component.- Returns:
- the value of the
languagesrecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
registrations
Returns the value of theregistrationsrecord component.- Returns:
- the value of the
registrationsrecord component
-
contact
Returns the value of thecontactrecord component.- Returns:
- the value of the
contactrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-