Class KeyState

  • All Implemented Interfaces:
    java.io.Serializable

    public final class KeyState
    extends java.lang.Object
    implements java.io.Serializable
    A class represents key state. This object is to encapsulate the life cycle of a key.

    Version:
    $Revision$, $Date$
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Checks if the given object equals to this object.
      int hashCode()
      Returns the hash code.
      static KeyState toKeyState​(java.lang.String state)
      Converts a string into a key state object.
      java.lang.String toString()
      Return the string-representation of this object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ANY

        public static final KeyState ANY
        Request state.
      • VALID

        public static final KeyState VALID
      • INVALID

        public static final KeyState INVALID
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Checks if the given object equals to this object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - object to be compared
        Returns:
        true if both objects are the same
      • hashCode

        public int hashCode()
        Returns the hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash code
      • toString

        public java.lang.String toString()
        Return the string-representation of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string value
      • toKeyState

        public static KeyState toKeyState​(java.lang.String state)
        Converts a string into a key state object.
        Parameters:
        state - state in string-representation
        Returns:
        key state object