Record Class StockActor.Other
java.lang.Object
java.lang.Record
net.okocraft.box.api.event.stockholder.stock.StockActor.Other
- Record Components:
uuid- the actor's UUID, if availablename- the actor's name
- All Implemented Interfaces:
StockActor
- Enclosing interface:
StockActor
public static record StockActor.Other(@Nullable UUID uuid, @NotNull String name)
extends Record
implements StockActor
An immutable non-player identity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StockActor
StockActor.Other, StockActor.Player -
Field Summary
Fields inherited from interface StockActor
CONSOLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable UUIDuuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Other
-
Other
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceStockActor- Returns:
- the value of the
uuidrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceStockActor- Returns:
- the value of the
namerecord component
-