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

author  Johann Sorel


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



public void IntSequence ()

public void IntSequence (int[] buffer)


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

public IntSequence put (int b)

public IntSequence put (int[] b)

public IntSequence put (int[] b, int offset, int length)


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


return  int array
public int[] toArrayInt ()

public Object[] toArray ()

public int read (int index)

public int read (int index, int[] 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 (int[] 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 (int[] 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 (int[] 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 (int[] 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 (int i)

public IntSequence moveTo (int position)


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

public IntSequence insert (int b)

public IntSequence insert (int[] b)

public IntSequence insert (int[] b, int offset, int length)

public Object get (int index)

public boolean add (int index, Object value)

public boolean remove (int index)