gnu.lists

Class U64Vector

public class U64Vector extends SimpleVector implements Externalizable, Comparable

Simple adjustable-length vector of unsigned 64-bit integers (longs).
Constructor Summary
U64Vector()
U64Vector(int size, long value)
U64Vector(int size)
U64Vector(long[] data)
U64Vector(Sequence seq)
Method Summary
protected voidclearBuffer(int start, int count)
intcompareTo(Object obj)
booleanconsumeNext(int ipos, Consumer out)
voidconsumePosRange(int iposStart, int iposEnd, Consumer out)
Objectget(int index)
protected ObjectgetBuffer()
ObjectgetBuffer(int index)
intgetBufferLength()
Get the allocated length of the data buffer.
intgetElementKind()
StringgetTag()
intintAtBuffer(int index)
longlongAt(int index)
longlongAtBuffer(int index)
voidreadExternal(ObjectInput in)
ObjectsetBuffer(int index, Object value)
voidsetBufferLength(int length)
voidsetLongAt(int index, long value)
voidsetLongAtBuffer(int index, long value)
voidwriteExternal(ObjectOutput out)

Constructor Detail

U64Vector

public U64Vector()

U64Vector

public U64Vector(int size, long value)

U64Vector

public U64Vector(int size)

U64Vector

public U64Vector(long[] data)

U64Vector

public U64Vector(Sequence seq)

Method Detail

clearBuffer

protected void clearBuffer(int start, int count)

compareTo

public int compareTo(Object obj)

consumeNext

public boolean consumeNext(int ipos, Consumer out)

consumePosRange

public void consumePosRange(int iposStart, int iposEnd, Consumer out)

get

public final Object get(int index)

getBuffer

protected Object getBuffer()

getBuffer

public final Object getBuffer(int index)

getBufferLength

public int getBufferLength()
Get the allocated length of the data buffer.

getElementKind

public int getElementKind()

getTag

public String getTag()

intAtBuffer

public final int intAtBuffer(int index)

longAt

public final long longAt(int index)

longAtBuffer

public final long longAtBuffer(int index)

readExternal

public void readExternal(ObjectInput in)

setBuffer

public Object setBuffer(int index, Object value)

setBufferLength

public void setBufferLength(int length)

setLongAt

public final void setLongAt(int index, long value)

setLongAtBuffer

public final void setLongAtBuffer(int index, long value)

writeExternal

public void writeExternal(ObjectOutput out)

Serial Data: Write 'size' (using writeInt), followed by 'size' elements in order (using writeLong).