net.jxta.search.util
Class LongVector

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

public class LongVector
extends java.lang.Object

Vector of longs.


Constructor Summary
LongVector()
          Constructs an LongVector with the default initial size.
LongVector(int size)
          Constructs an LongVector with a specified initial size.
 
Method Summary
 void add(long value)
          Adds an element to the end of this vector.
 long[] array()
          Returns the element array.
 long 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

LongVector

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

LongVector

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

add

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

get

public final long 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 long[] array()
Returns the element array.