NameToCodeMap
Inheritance: java.lang.Object
public class NameToCodeMap
Represents name to code map.
Methods
Method | Description |
---|---|
get(String name) | Gets code by name. |
size() | Gets count of pairs name-code in the map. |
getKeys() | Returns string names collection. |
containsKey(String name) | Returns true in case the key is already in the map. |
get(String name)
public int get(String name)
Gets code by name.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Glyph name. |
Returns: int - Glyph code.
size()
public int size()
Gets count of pairs name-code in the map.
Returns: int - Count of pairs name-code in the map.
getKeys()
public Collection<String> getKeys()
Returns string names collection.
Returns: java.util.Collection<java.lang.String> - String names collection.
containsKey(String name)
public boolean containsKey(String name)
Returns true in case the key is already in the map.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Glyph name. |
Returns: boolean - True or false.