net.jxta.search.util
Class IntVector

java.lang.Object
  |
  +--net.jxta.search.util.IntVector

public class IntVector
extends java.lang.Object

Vector of ints.


Constructor Summary
IntVector()
          Constructs an IntVector with the default initial size.
IntVector(int size)
          Constructs an IntVector with a specified initial size.
 
Method Summary
 void add(int value)
          Adds an element to the end of this vector.
 void add(int[] values)
          Adds elements to the end of this vector.
static void add(int[] array, int value)
           
static void add(int[] array, int start, int length, int value)
           
 int[] array()
          Returns the element array.
 int get(int index)
          Returns the named element.
 int length()
          Returns the number of elements.
 void setLength(int length)
          Resets the number of elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntVector

public IntVector(int size)
Constructs an IntVector with a specified initial size.

IntVector

public IntVector()
Constructs an IntVector with the default initial size.
Method Detail

add

public final void add(int value)
Adds an element to the end of this vector.

add

public final void add(int[] values)
Adds elements to the end of this vector.

get

public final int get(int index)
Returns the named element.

length

public final int length()
Returns the number of elements.

setLength

public final void setLength(int length)
Resets the number of elements.

array

public int[] array()
Returns the element array.

add

public static final void add(int[] array,
                             int value)

add

public static final void add(int[] array,
                             int start,
                             int length,
                             int value)