Class State

java.lang.Object
com.nt.udc.util.state.State

public final class State extends Object
Implements a well-defined set of general-purpose State Objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final State
    For use when an Object has stopped processing momentarily, but may be resumed.
    static final State
    For use when an Object is running normally.
    static final State
    For use when the processing is sleeping, or waiting for more input.
    static final State
    For use when an Object is in the process of starting up.
    static final State
    For use when an Object has stopped processing completely, and has released all resources.
    static final State
    For use when an Object is in the process of stopping.
    static final State
    For use when an Object is in an unknown state of processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the String version of the State Object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • STARTING

      public static final State STARTING
      For use when an Object is in the process of starting up.
    • STOPPING

      public static final State STOPPING
      For use when an Object is in the process of stopping.
    • RUNNING

      public static final State RUNNING
      For use when an Object is running normally.
    • STOPPED

      public static final State STOPPED
      For use when an Object has stopped processing completely, and has released all resources.
    • SLEEPING

      public static final State SLEEPING
      For use when the processing is sleeping, or waiting for more input.
    • FROZEN

      public static final State FROZEN
      For use when an Object has stopped processing momentarily, but may be resumed.
    • UNKNOWN

      public static final State UNKNOWN
      For use when an Object is in an unknown state of processing.
  • Method Details

    • toString

      public String toString()
      Returns the String version of the State Object.
      Overrides:
      toString in class Object