Class CharStringCommand

java.lang.Object
org.apache.fontbox.cff.CharStringCommand

public class CharStringCommand extends Object
This class represents a CharStringCommand.
  • Field Details

  • Constructor Details

    • 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 Details

    • createMap

      private static Map<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)
    • getType1KeyWord

      public CharStringCommand.Type1KeyWord getType1KeyWord()
      Return the underlying type1 key word.
      Returns:
      the type1 key word
    • getType2KeyWord

      public CharStringCommand.Type2KeyWord getType2KeyWord()
      Return the underlying type2 key word.
      Returns:
      the type2 key word
    • toString

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

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

      public boolean equals(Object object)
      Overrides:
      equals in class Object