org.basex.util
Class IntArrayList

java.lang.Object
  extended by org.basex.util.IntArrayList
All Implemented Interfaces:
java.lang.Iterable<int[]>

public final class IntArrayList
extends java.lang.Object
implements java.lang.Iterable<int[]>

This is a simple container for native int array values.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 int[][] list
          Value array.
 int size
          Current array size.
 
Constructor Summary
IntArrayList()
          Default constructor.
IntArrayList(int is)
          Constructor.
 
Method Summary
 void add(int[] v)
          Adds next value.
 int[][] finish()
          Finishes the int array.
 java.util.Iterator<int[]> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

public int[][] list
Value array.


size

public int size
Current array size.

Constructor Detail

IntArrayList

public IntArrayList()
Default constructor.


IntArrayList

public IntArrayList(int is)
Constructor.

Parameters:
is - initial size of the list
Method Detail

add

public void add(int[] v)
Adds next value.

Parameters:
v - value to be added

finish

public int[][] finish()
Finishes the int array.

Returns:
int array

iterator

public java.util.Iterator<int[]> iterator()
Specified by:
iterator in interface java.lang.Iterable<int[]>