Record Class ExternalModeration
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.ExternalModeration
-
Constructor Summary
ConstructorsConstructorDescriptionExternalModeration(String playerName, String moderatorName, String reason, long moderationId, long date, long time, boolean permanent) Creates an instance of aExternalModerationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themoderationIdrecord component.Returns the value of themoderatorNamerecord component.booleanReturns the value of thepermanentrecord component.Returns the value of theplayerNamerecord component.reason()Returns the value of thereasonrecord component.longtime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExternalModeration
public ExternalModeration(String playerName, String moderatorName, String reason, long moderationId, long date, long time, boolean permanent) Creates an instance of aExternalModerationrecord class.- Parameters:
playerName- the value for theplayerNamerecord componentmoderatorName- the value for themoderatorNamerecord componentreason- the value for thereasonrecord componentmoderationId- the value for themoderationIdrecord componentdate- the value for thedaterecord componenttime- the value for thetimerecord componentpermanent- the value for thepermanentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
moderatorName
Returns the value of themoderatorNamerecord component.- Returns:
- the value of the
moderatorNamerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
moderationId
public long moderationId()Returns the value of themoderationIdrecord component.- Returns:
- the value of the
moderationIdrecord component
-
date
public long date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
time
public long time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
permanent
public boolean permanent()Returns the value of thepermanentrecord component.- Returns:
- the value of the
permanentrecord component
-