Record Class MaintenanceSnapshot
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.state.MaintenanceSnapshot
Bitmask of the six standard GT maintenance flags. A set bit means the corresponding issue is currently
present (the tool flag is
false on the controller). When mask == 0 the machine is fully
maintained.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final MaintenanceSnapshotstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionMaintenanceSnapshot(int mask) Creates an instance of aMaintenanceSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhas(int flag) final inthashCode()Returns a hash code value for this object.intmask()Returns the value of themaskrecord component.static StringnameOf(int singleFlag) intnewlySetSince(MaintenanceSnapshot prior) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
WRENCH
public static final int WRENCH- See Also:
-
SCREWDRIVER
public static final int SCREWDRIVER- See Also:
-
SOFT_MALLET
public static final int SOFT_MALLET- See Also:
-
HARD_HAMMER
public static final int HARD_HAMMER- See Also:
-
SOLDERING_TOOL
public static final int SOLDERING_TOOL- See Also:
-
CROWBAR
public static final int CROWBAR- See Also:
-
OK
-
-
Constructor Details
-
MaintenanceSnapshot
public MaintenanceSnapshot(int mask) Creates an instance of aMaintenanceSnapshotrecord class.- Parameters:
mask- the value for themaskrecord component
-
-
Method Details
-
has
public boolean has(int flag) -
newlySetSince
-
nameOf
-
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 with '=='. -
mask
public int mask()Returns the value of themaskrecord component.- Returns:
- the value of the
maskrecord component
-