Record Class MarkerDefinition
java.lang.Object
java.lang.Record
dev.zwazel.internal.game.map.MarkerDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerDefinition
(TileDefinition tile, String group, MarkerType kind) Creates an instance of aMarkerDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.kind()
Returns the value of thekind
record component.tile()
Returns the value of thetile
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MarkerDefinition
Creates an instance of aMarkerDefinition
record class.- Parameters:
tile
- the value for thetile
record componentgroup
- the value for thegroup
record componentkind
- the value for thekind
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 withObjects::equals(Object,Object)
. -
tile
Returns the value of thetile
record component.- Returns:
- the value of the
tile
record component
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
kind
Returns the value of thekind
record component.- Returns:
- the value of the
kind
record component
-