org.basex.util
Class BoolList

java.lang.Object
  extended by org.basex.util.BoolList

public final class BoolList
extends java.lang.Object

This is a simple container for native boolean values.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 boolean[] list
          Value array.
 int size
          Current array size.
 
Constructor Summary
BoolList()
          Default constructor.
BoolList(int c)
          Constructor, specifying the initial array size.
 
Method Summary
 void add(boolean v)
          Adds next value.
 boolean all(boolean b)
          Checks if all values are b.
 boolean[] finish()
          Finishes the int array.
 void reset()
          Resets the integer list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

public boolean[] list
Value array.


size

public int size
Current array size.

Constructor Detail

BoolList

public BoolList()
Default constructor.


BoolList

public BoolList(int c)
Constructor, specifying the initial array size.

Parameters:
c - initial size
Method Detail

add

public void add(boolean v)
Adds next value.

Parameters:
v - value to be added

finish

public boolean[] finish()
Finishes the int array.

Returns:
int array

reset

public void reset()
Resets the integer list.


all

public boolean all(boolean b)
Checks if all values are b.

Parameters:
b - boolean b
Returns:
boolean all b