Class CharStringCommand


  • public class CharStringCommand
    extends java.lang.Object
    This class represents a CharStringCommand.
    • Constructor Detail

      • CharStringCommand

        private CharStringCommand​(CharStringCommand.Key key)
        Constructor with the CharStringCommand key as value.
        Parameters:
        key - the key of the char string command
      • CharStringCommand

        private CharStringCommand​(int b0,
                                  int b1)
        Constructor with two values.
        Parameters:
        b0 - value1
        b1 - value2
    • Method Detail

      • createMap

        private static java.util.Map<java.lang.Integer,​CharStringCommand> createMap()
      • getInstance

        public static CharStringCommand getInstance​(int b0)
        Get an instance of the CharStringCommand represented by the given value.
        Parameters:
        b0 - value
        Returns:
        CharStringCommand represented by the given value
      • getInstance

        public static CharStringCommand getInstance​(int b0,
                                                    int b1)
        Get an instance of the CharStringCommand represented by the given two values.
        Parameters:
        b0 - value1
        b1 - value2
        Returns:
        CharStringCommand represented by the given two values
      • getInstance

        public static CharStringCommand getInstance​(int[] values)
        Get an instance of the CharStringCommand represented by the given array.
        Parameters:
        values - array of values
        Returns:
        CharStringCommand represented by the given values
      • getKeyHashValue

        private static int getKeyHashValue​(int b0,
                                           int b1)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object