Record Class ExternalModeration
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.ExternalModeration
- Record Components:
playerName- the punished playermoderatorName- who issued the punishmentreason- the stated reason, may be nullmoderationId- the id used by the source plugindate- when the punishment was issued, in millisecondstime- when it expires, in millisecondspermanent- whether it never expires
-
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
-
moderationId
public long moderationId()Returns the value of themoderationIdrecord component.- Returns:
- the value of the
moderationIdrecord component
-
date
-
time
-
permanent
-