Package megamek.ai.dataset
Record Class BoardData.HexRow
java.lang.Object
java.lang.Record
megamek.ai.dataset.BoardData.HexRow
- Enclosing class:
BoardData
Nested class to represent a single row of hex data
-
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.hexes()Returns the value of thehexesrecord component.introwIndex()Returns the value of therowIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HexRow
Creates an instance of aHexRowrecord class.- Parameters:
rowIndex- the value for therowIndexrecord componenthexes- the value for thehexesrecord component
-
-
Method Details
-
hexes
Returns the value of thehexesrecord component.- Returns:
- the value of the
hexesrecord component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
rowIndex
public int rowIndex()Returns the value of therowIndexrecord component.- Returns:
- the value of the
rowIndexrecord component
-