Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.util
Class TokenList

    java.lang.Object
      org.basex.util.TokenList

    public final class TokenList

extends java.lang.Object

This is a simple container for native byte[] values (tokens).

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

Field Summary
`byte[][]` | `list` Value array.
`int` | `size` Current array size.

Constructor Summary
`TokenList()`

Method Summary
`void` | `add(byte[] v)` Adds next value.
`void` | `add(byte[][] val)` Adds several values.
`boolean` | `contains(byte[] v)` Checks if the specified token is found in the list.
`byte[][]` | `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 byte[][] list

  Value array.

### size

    public int size

  Current array size.

Constructor Detail

### TokenList

    public TokenList()

Method Detail

### add

    public void add(byte[] v)

  Adds next value.

  Parameters:
    `v` - value to be added

### add

    public void add(byte[][] val)

  Adds several values.

  Parameters:
    `val` - values to be added

### contains

    public boolean contains(byte[] v)

  Checks if the specified token is found in the list.

  Parameters:
    `v` - token to be checked
  Returns:
    true if value is found

### finish

    public byte[][] finish()

  Finishes the int array.

  Returns:
    int array

### reset

    public void reset()

  Resets the integer list.

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD