java.lang .Object org.apache.tools.ant.types.resources .FailFast FailFast class FailFast implements Iterator (Code) Helper class for ResourceCollections to return Iterators
that fail on changes to the object.
since: Ant 1.7
Constructor Summary FailFast (Object o, Iterator i) Construct a new FailFast Iterator wrapping the specified Iterator
and dependent upon the specified parent Object.
Method Summary public booleanhasNext () Fulfill the Iterator contract.static synchronized void invalidate (Object o) Invalidate any in-use Iterators from the specified Object.public Object next () Fulfill the Iterator contract.public voidremove () Fulfill the Iterator contract.
FailFast FailFast(Object o, Iterator i) (Code) Construct a new FailFast Iterator wrapping the specified Iterator
and dependent upon the specified parent Object.
Parameters: o - the parent Object.Parameters: i - the wrapped Iterator.
hasNext public boolean hasNext()(Code) Fulfill the Iterator contract.
true if there are more elements.
invalidate static synchronized void invalidate(Object o) (Code) Invalidate any in-use Iterators from the specified Object.
Parameters: o - the parent Object.