Maven module :un.api : api-common :
Class : un.api.collection.primitive.LongSequence
Extends/Implements : un.api.collection.AbstractSequence un.api.collection.primitive.PrimitiveSequence
Subclasses : -

author  Johann Sorel


Variables : -
Functions : LongSequence, LongSequence, skip, put, put, put, getBackArray, toArrayLong, toArray, read, read, startWidth, startWidth, endWidth, endWidth, trimStart, trimEnd, getSize, removeAll, contains, moveTo, removeNext, insert, insert, insert, get, add, remove



public void LongSequence ()

public void LongSequence (long[] buffer)


move one pixel ahead preserving buffer value or
filling it with zero if buffer was resized.
public LongSequence skip ()

public LongSequence put (long b)

public LongSequence put (long[] b)

public LongSequence put (long[] b, int offset, int length)


return  the underlying array,
it's size might be larger then the current buffer size.
public long[] getBackArray ()


return  long array
public long[] toArrayLong ()

public Object[] toArray ()

public long read (int index)

public int read (int index, long[] buffer, int offset, int length)


Test if byte buffer starts by a given array.
param  buffer start array
return  true if the buffer starts with the given serie of bytes.
public boolean startWidth (long[] buffer)


Test if byte buffer starts by a given array.
param  buffer start array
param  offset start offset
param  length number of elements to test
return  true if the buffer starts with the given serie of bytes.
public boolean startWidth (long[] buffer, int offset, int length)


Test if byte buffer ends by a given array.
param  buffer end array
return  true if the buffer ends with the given serie of bytes.
public boolean endWidth (long[] buffer)


Test if byte buffer ends by a given array.
param  buffer end array
param  offset end offset
param  length number of elements to test
return  true if the buffer ends with the given serie of bytes.
public boolean endWidth (long[] buffer, int offset, int length)


Remove given number of bytes at buffer start.
param  nbbyte number of bytes to remove
public void trimStart (int nbbyte)


Remove given number of bytes at buffer end.
param  nbbyte number of bytes to remove
public void trimEnd (int nbbyte)

public int getSize ()

public boolean removeAll ()

public boolean contains (long i)

public LongSequence moveTo (int position)


Remove the N next elements.
param  nbElement
public boolean removeNext (int nbElement)

public LongSequence insert (long b)

public LongSequence insert (long[] b)

public LongSequence insert (long[] b, int offset, int length)

public Object get (int index)

public boolean add (int index, Object value)

public boolean remove (int index)