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

Method Description
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:

Parameter Type Description
glyphId GlyphId glyph identifier

Returns: boolean

remove(GlyphId glyphId)

public boolean remove(GlyphId glyphId)

Removes glyph id from the list.

Parameters:

Parameter Type Description
glyphId GlyphId glyph 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:

Parameter Type Description
glyphId GlyphId glyph 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:

Parameter Type Description
index int index of glyph in list

Returns: GlyphId