Package kr.toxicity.model.api.profile
Record Class ModelProfile.Simple
java.lang.Object
java.lang.Record
kr.toxicity.model.api.profile.ModelProfile.Simple
- Record Components:
info- infoskin- skin
- All Implemented Interfaces:
ModelProfile
- Enclosing interface:
ModelProfile
public static record ModelProfile.Simple(@NotNull ModelProfileInfo info, @NotNull ModelProfileSkin skin)
extends Record
implements ModelProfile
Simple profile
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.profile.ModelProfile
ModelProfile.Simple, ModelProfile.Uncompleted -
Field Summary
Fields inherited from interface kr.toxicity.model.api.profile.ModelProfile
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSimple(@NotNull ModelProfileInfo info, @NotNull ModelProfileSkin skin) Creates an instance of aSimplerecord class. -
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.@NotNull ModelProfileInfoinfo()Returns the value of theinforecord component.@NotNull ModelProfileSkinskin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.profile.ModelProfile
asUncompleted, player
-
Constructor Details
-
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). -
info
Returns the value of theinforecord component.- Specified by:
infoin interfaceModelProfile- Returns:
- the value of the
inforecord component
-
skin
Returns the value of theskinrecord component.- Specified by:
skinin interfaceModelProfile- Returns:
- the value of the
skinrecord component
-