NameToCodeMap

Inheritance: java.lang.Object

public class NameToCodeMap

Represents name to code map.

Methods

MethodDescription
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:

ParameterTypeDescription
namejava.lang.StringGlyph 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:

ParameterTypeDescription
namejava.lang.StringGlyph name.

Returns: boolean - True or false.