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

author  Johann Sorel


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



public void BooleanSequence ()

public void BooleanSequence (boolean[] buffer)


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


move one value ahead preserving buffer value or
filling it with zero if buffer was resized.
param  nb
public void skip (int nb)

public void put (boolean b)

public void put (boolean[] b)

public void put (boolean[] b, int offset, int length)


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


return  boolean array
public boolean[] toArrayBoolean ()

public Object[] toArray ()

public boolean read (int index)

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


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


Test if boolean 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 booleans.
public boolean startWidth (boolean[] buffer, int offset, int length)


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


Test if boolean 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 booleans.
public boolean endWidth (boolean[] buffer, int offset, int length)


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


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

public int getSize ()

public boolean removeAll ()

public BooleanSequence moveTo (int position)


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

public BooleanSequence insert (boolean b)

public BooleanSequence insert (boolean[] b)

public BooleanSequence insert (boolean[] b, int offset, int length)

public Object get (int index)

public boolean add (int index, Object value)

public boolean remove (int index)