Record Class FlagBase
java.lang.Object
java.lang.Record
dev.zwazel.internal.game.map.marker.FlagBase
- All Implemented Interfaces:
MarkerType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theflagNumber
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FlagBase
public FlagBase(long flagNumber) Creates an instance of aFlagBase
record class.- Parameters:
flagNumber
- the value for theflagNumber
record 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. All components in this record class are compared with thecompare
method from their corresponding wrapper classes. -
flagNumber
public long flagNumber()Returns the value of theflagNumber
record component.- Returns:
- the value of the
flagNumber
record component
-