Qizx/open API

net.axyana.qizxopen.util
Class DifferenceIdSet

java.lang.Object
  extended bynet.axyana.qizxopen.util.IdSet
      extended bynet.axyana.qizxopen.util.DifferenceIdSet

public class DifferenceIdSet
extends IdSet

An IdSet that is the difference between a main set and a list of excluded sets.


Constructor Summary
DifferenceIdSet(IdSet main, IdSet[] excluded)
           
 
Method Summary
 IdSet copy()
           
 int getNext(int id)
          Iteration mechanism: returns the first id in the set that is greater or equal to argument.
 boolean test(int id)
          Identifier containment test.
 
Methods inherited from class net.axyana.qizxopen.util.IdSet
intersects, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferenceIdSet

public DifferenceIdSet(IdSet main,
                       IdSet[] excluded)
Method Detail

test

public boolean test(int id)
Description copied from class: IdSet
Identifier containment test.

Specified by:
test in class IdSet

getNext

public int getNext(int id)
Description copied from class: IdSet
Iteration mechanism: returns the first id in the set that is greater or equal to argument.

Specified by:
getNext in class IdSet
Returns:
-1 if no next id.

copy

public IdSet copy()
Specified by:
copy in class IdSet

© 2005 Axyana Software