Class MachineState

java.lang.Object
me.ahoo.cosid.machine.MachineState
Direct Known Subclasses:
MachineStateDto

@Immutable public class MachineState extends Object
Machine State.
  • Field Details

  • Constructor Details

    • MachineState

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

    • getMachineId

      public int getMachineId()
    • getLastTimeStamp

      public long getLastTimeStamp()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStateString

      public String toStateString()
    • of

      public static MachineState of(int machineId, long lastStamp)
    • of

      public static MachineState of(int machineId)
    • of

      public static MachineState of(String stateString)