GlyphIdList

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, java.util.ArrayList

public class GlyphIdList extends ArrayList<GlyphId>

Represents glyph id list.

Methods

MethodDescription
add(GlyphId glyphId)Adds glyph id to the list.
remove(GlyphId glyphId)Removes glyph id from the list.
clear()Clears the list.
contains(GlyphId glyphId)Returns true in case glyph id is in the list.
get(int index)Returns glyph id by the index.

add(GlyphId glyphId)

public boolean add(GlyphId glyphId)

Adds glyph id to the list.

Parameters:

ParameterTypeDescription
glyphIdGlyphIdglyph identifier

Returns: boolean

remove(GlyphId glyphId)

public boolean remove(GlyphId glyphId)

Removes glyph id from the list.

Parameters:

ParameterTypeDescription
glyphIdGlyphIdglyph identifier

Returns: boolean - true if item is successfully removed; otherwise, false

clear()

public void clear()

Clears the list.

contains(GlyphId glyphId)

public boolean contains(GlyphId glyphId)

Returns true in case glyph id is in the list.

Parameters:

ParameterTypeDescription
glyphIdGlyphIdglyph identifier

Returns: boolean - true in case glyph id is in the list, otherwise false

get(int index)

public GlyphId get(int index)

Returns glyph id by the index.

Parameters:

ParameterTypeDescription
indexintindex of glyph in list

Returns: GlyphId