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 classThis 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.Keyprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()The key of the operator.getName()The name of the operator.static CFFOperatorgetOperator(String name) Returns the operator corresponding to the given name.static CFFOperatorReturns the operator corresponding to the given key.inthashCode()private static voidregister(CFFOperator.Key key, String name) private voidsetKey(CFFOperator.Key key) private voidtoString()
-
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
-