Package org.apache.fontbox.cff
Class CFFOperator
java.lang.Object
org.apache.fontbox.cff.CFFOperator
This class represents a CFF operator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class is a holder for a key value. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map<CFFOperator.Key,
CFFOperator> private static Map<String,
CFFOperator> private CFFOperator.Key
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
The key of the operator.getName()
The name of the operator.static CFFOperator
getOperator
(String name) Returns the operator corresponding to the given name.static CFFOperator
Returns the operator corresponding to the given key.int
hashCode()
private static void
register
(CFFOperator.Key key, String name) private void
setKey
(CFFOperator.Key key) private void
toString()
-
Field Details
-
operatorKey
-
operatorName
-
keyMap
-
nameMap
-
-
Constructor Details
-
CFFOperator
-
-
Method Details
-
getKey
The key of the operator.- Returns:
- the key
-
setKey
-
getName
The name of the operator.- Returns:
- the name
-
setName
-
toString
-
hashCode
public int hashCode() -
equals
-
register
-
getOperator
Returns the operator corresponding to the given key.- Parameters:
key
- the given key- Returns:
- the corresponding operator
-
getOperator
Returns the operator corresponding to the given name.- Parameters:
name
- the given name- Returns:
- the corresponding operator
-