Class MachineStateResponse

java.lang.Object
me.ahoo.cosid.machine.MachineState
me.ahoo.cosid.proxy.api.MachineStateResponse

public class MachineStateResponse extends MachineState
MachineStateResponse .
  • Constructor Details

    • MachineStateResponse

      public MachineStateResponse(int machineId, long lastTimeStamp)
  • Method Details

    • equals

      public boolean equals(Object o)
      Description copied from class: MachineState
      Check 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:
      equals in class MachineState
      Parameters:
      o - The object to compare to
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Description copied from class: MachineState
      Get 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:
      hashCode in class MachineState
      Returns:
      The hash code
    • toString

      public String toString()
      Description copied from class: MachineState
      Get the string representation of this machine state.
      Overrides:
      toString in class MachineState
      Returns:
      The string representation