Record Class Supporters.Supporter
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.supporter.Supporters.Supporter
- Enclosing class:
Supporters
public static record Supporters.Supporter(String displayName, long discordId, UUID uuid, Supporters.Type type, String cape)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSupporter(String displayName, long discordId, UUID uuid, Supporters.Type type, String cape) Creates an instance of aSupporterrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.longReturns the value of thediscordIdrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Supporter
Creates an instance of aSupporterrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componentdiscordId- the value for thediscordIdrecord componentuuid- the value for theuuidrecord componenttype- the value for thetyperecord componentcape- the value for thecaperecord component
-
-
Method Details
-
insertSelfToList
public void insertSelfToList() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
discordId
public long discordId()Returns the value of thediscordIdrecord component.- Returns:
- the value of the
discordIdrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-