Package megamek.common.board
Record Class BoardIssue
java.lang.Object
java.lang.Record
megamek.common.board.BoardIssue
- Record Components:
coords- the hex the issue is reported atmessage- the description shown to the userfix- a recommended way to fix it
A problem or note found on a board, together with the hex it concerns, so that a board editor can take the user to
that hex.
-
Constructor Summary
ConstructorsConstructorDescriptionBoardIssue(Coords coords, String message, String fix) Creates an instance of aBoardIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncoords()Returns the value of thecoordsrecord component.final booleanIndicates whether some other object is "equal to" this one.fix()Returns the value of thefixrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
coords
Returns the value of thecoordsrecord component.- Returns:
- the value of the
coordsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
fix
Returns the value of thefixrecord component.- Returns:
- the value of the
fixrecord component
-