Record Class StealSession
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.steal.StealSession
-
Constructor Summary
ConstructorsConstructorDescriptionStealSession(@NotNull UUID thiefId, @NotNull UUID victimId, @NotNull BlockType blockType, boolean carrying, @Nullable String arenaId) Creates an instance of aStealSessionrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringarenaId()Returns the value of thearenaIdrecord component.@NotNull BlockTypeReturns the value of theblockTyperecord component.booleancarrying()Returns the value of thecarryingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull UUIDthiefId()Returns the value of thethiefIdrecord component.final StringtoString()Returns a string representation of this record class.@NotNull UUIDvictimId()Returns the value of thevictimIdrecord component.
-
Constructor Details
-
StealSession
public StealSession(@NotNull @NotNull UUID thiefId, @NotNull @NotNull UUID victimId, @NotNull @NotNull BlockType blockType, boolean carrying, @Nullable @Nullable String arenaId) Creates an instance of aStealSessionrecord class.- Parameters:
thiefId- the value for thethiefIdrecord componentvictimId- the value for thevictimIdrecord componentblockType- the value for theblockTyperecord componentcarrying- the value for thecarryingrecord componentarenaId- the value for thearenaIdrecord 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. -
thiefId
Returns the value of thethiefIdrecord component.- Returns:
- the value of the
thiefIdrecord component
-
victimId
Returns the value of thevictimIdrecord component.- Returns:
- the value of the
victimIdrecord component
-
blockType
Returns the value of theblockTyperecord component.- Returns:
- the value of the
blockTyperecord component
-
carrying
public boolean carrying()Returns the value of thecarryingrecord component.- Returns:
- the value of the
carryingrecord component
-
arenaId
Returns the value of thearenaIdrecord component.- Returns:
- the value of the
arenaIdrecord component
-