cdqa.iterator

Class All


public final class All
extends UnaryOpBooleanIterator

Nested Class Summary

Nested classes/interfaces inherited from class cdqa.iterator.Iterator

Iterator.IteratorManager

Field Summary

(package private) UnaryPredicate
p

Fields inherited from class cdqa.iterator.UnaryOpBooleanIterator

i

Fields inherited from class cdqa.iterator.Iterator

NULL, current, initValue

Constructor Summary

All(Iterator i, UnaryPredicate p)

Method Summary

boolean
getValue()
returns false if i is empty or there exist o in i such that p(o) is false, and true otherwise.

Methods inherited from class cdqa.iterator.UnaryOpBooleanIterator

postInit, preClose

Methods inherited from class cdqa.iterator.BooleanIterator

asBooleanIterator, getValue, postInit, preClose, pumpNext

Methods inherited from class cdqa.iterator.Iterator

aggreg, all, and, asBooleanIterator, close, constant, constant, constant, constant, constant, debugPrint, empty, exist, getCurrent, init, init, join, join, list, ljoin, ljoin, mTOm, map, mapL, mapL, mapL, next, not, or, postInit, preClose, pumpNext, rjoin, rjoin, scan, scan, theFalseIterator, theTrueIterator, toPrintWriter

Field Details

p

(package private)  UnaryPredicate p

Constructor Details

All

public All(Iterator i,
           UnaryPredicate p)

Method Details

getValue

public boolean getValue()
returns false if i is empty or there exist o in i such that p(o) is false, and true otherwise.
Overrides:
getValue in interface BooleanIterator