org.extex.font.format.xtf.tables
Class GroupEntries

java.lang.Object
  extended by org.extex.font.format.xtf.tables.GroupEntries

public class GroupEntries
extends java.lang.Object

This class group entries in a list.

Version:
$Revision: 5476 $
Author:
Michael Niedermair

Constructor Summary
GroupEntries()
          Create a new object.
GroupEntries(int size)
          Create a new object.
 
Method Summary
 void add(int val)
          Add the entry if it not exists in the list.
 void add(java.lang.Object val)
          Add the entry if it not exists in the list.
 java.lang.Object get(int idx)
          Returns the entry at position 'idx'.
 int size()
          Returns the size of the list.
 java.lang.Object[] toArray()
          Returns the list as array.
 int[] toIntArray()
          Returns the list as a int-array.
 java.lang.String toString()
          Returns the entries as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupEntries

public GroupEntries()
Create a new object.


GroupEntries

public GroupEntries(int size)
Create a new object.

Parameters:
size - The initialize size of the list.
Method Detail

add

public void add(java.lang.Object val)
Add the entry if it not exists in the list.

Parameters:
val - The entry.

add

public void add(int val)
Add the entry if it not exists in the list.

Parameters:
val - The entry.

size

public int size()
Returns the size of the list.

Returns:
Returns the size of the list.

get

public java.lang.Object get(int idx)
Returns the entry at position 'idx'.

Parameters:
idx - The index.
Returns:
Returns the entry at position 'idx'.

toArray

public java.lang.Object[] toArray()
Returns the list as array.

Returns:
Returns the list as array.

toIntArray

public int[] toIntArray()
Returns the list as a int-array. If a value can not be convert, the value set to -1.

Returns:
Returns the list as a int-array.

toString

public java.lang.String toString()
Returns the entries as a string.

Overrides:
toString in class java.lang.Object
Returns:
Returns the entries as a string.
See Also:
Object.toString()