Record Class AdvancementRegistration.OwnedAdvancement
java.lang.Object
java.lang.Record
ke.ric.api.registration.AdvancementRegistration.OwnedAdvancement
- Enclosing class:
AdvancementRegistration
public static record AdvancementRegistration.OwnedAdvancement(String owner, AdvancementDefinition definition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOwnedAdvancement(String owner, AdvancementDefinition definition) Creates an instance of aOwnedAdvancementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OwnedAdvancement
Creates an instance of aOwnedAdvancementrecord class.- Parameters:
owner- the value for theownerrecord componentdefinition- the value for thedefinitionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-