Package org.apache.xmlgraphics.ps
Class PSDictionary
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.xmlgraphics.ps.PSDictionary
-
- All Implemented Interfaces:
Serializable,Cloneable,Map
- Direct Known Subclasses:
PSPageDeviceDictionary
public class PSDictionary extends HashMap
This class is used to encapsulate postscript dictionary objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description PSDictionary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()StringtoString()static PSDictionaryvalueOf(String str)Parses a given a dictionary string and returns an object-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
valueOf
public static PSDictionary valueOf(String str) throws PSDictionaryFormatException
Parses a given a dictionary string and returns an object- Parameters:
str- dictionary string- Returns:
- dictionary object
- Throws:
PSDictionaryFormatException- thrown in the event that a parsing error occurred
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceMap- Overrides:
equalsin classAbstractMap- Parameters:
obj- object to test equality against- Returns:
- whether a given object is equal to this dictionary object
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap- Overrides:
hashCodein classAbstractMap
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap
-
-