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 aMarkerDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.tile()Returns the value of thetilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MarkerDefinition
Creates an instance of aMarkerDefinitionrecord class.- Parameters:
tile- the value for thetilerecord componentgroup- the value for thegrouprecord componentkind- the value for thekindrecord 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 thetilerecord component.- Returns:
- the value of the
tilerecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-