Overview | Package | Class | Tree | Deprecated | Index | Help
| Qizx/Open v0.3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.xfra.qizxopen.util
Class IdSet

    java.lang.Object
      |
      +--net.xfra.qizxopen.util.IdSet

Direct Known Subclasses:
  BitIdSet, DifferenceIdSet, IntersectionIdSet

public abstract class IdSet
extends java.lang.Object

An abstract set of identifiers (positive integers).

Constructor Summary
`IdSet()`

Method Summary
`abstract IdSet` | `copy()`
`abstract int` | `getNext(int id)` Iteration mechanism: returns the first id in the set that is >= to argument.
`boolean` | `intersects(IdSet that)` returns true if the intersection of the two sets is not empty.
`boolean` | `isEmpty()`
`abstract boolean` | `test(int id)` Identifier containment test.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### IdSet

    public IdSet()

Method Detail

### test

    public abstract boolean test(int id)

  Identifier containment test.

### getNext

    public abstract int getNext(int id)

  Iteration mechanism: returns the first id in the set that is >= to argument.

  Returns:
    -1 if no next id.

### isEmpty

    public boolean isEmpty()

### intersects

    public boolean intersects(IdSet that)

  returns true if the intersection of the two sets is not empty.

### copy

    public abstract IdSet copy()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright Xavier FRANC 2003-2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD