Package me.ahoo.cosid.proxy.api
Class MachineStateResponse
java.lang.Object
me.ahoo.cosid.machine.MachineState
me.ahoo.cosid.proxy.api.MachineStateResponse
MachineStateResponse .
-
Field Summary
Fields inherited from class me.ahoo.cosid.machine.MachineState
NOT_FOUND, STATE_DELIMITER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.ahoo.cosid.machine.MachineState
getLastTimeStamp, getMachineId, of, of, of, toStateString
-
Constructor Details
-
MachineStateResponse
public MachineStateResponse(int machineId, long lastTimeStamp)
-
-
Method Details
-
equals
Description copied from class:MachineStateCheck if this machine state is equal to another object.Two machine states are considered equal if they have the same machine ID, regardless of their timestamps.
- Overrides:
equalsin classMachineState- Parameters:
o- The object to compare to- Returns:
trueif the objects are equal,falseotherwise
-
hashCode
public int hashCode()Description copied from class:MachineStateGet the hash code for this machine state.The hash code is based solely on the machine ID to ensure consistency with the
MachineState.equals(Object)implementation.- Overrides:
hashCodein classMachineState- Returns:
- The hash code
-
toString
Description copied from class:MachineStateGet the string representation of this machine state.- Overrides:
toStringin classMachineState- Returns:
- The string representation
-