Record Class Nickname
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.Nickname
- All Implemented Interfaces:
DateHolder
public record Nickname(String name, long date, ServerUUID serverUUID)
extends Record
implements DateHolder
Object storing nickname information.
-
Constructor Summary
ConstructorsConstructorDescriptionNickname(String name, long date, ServerUUID serverUUID) Creates an instance of aNicknamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theserverUUIDrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Nickname
Creates an instance of aNicknamerecord class.- Parameters:
name- the value for thenamerecord componentdate- the value for thedaterecord componentserverUUID- the value for theserverUUIDrecord component
-
-
Method Details
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
toString
-
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 thecomparemethod from their corresponding wrapper classes. -
hashCode
-
date
public long date()Returns the value of thedaterecord component.- Specified by:
datein interfaceDateHolder- Returns:
- the value of the
daterecord component
-
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-