public class CompactIterator
extends Object
A wrapper for an Iterator, to use a single call - Object next() - to obtain the ennumeration.
Items can NOT be null.
E.g. use from Prolog with
java('com.declarativa.interprolog.util.CompactIterator',MyIt,'CompactIterator'(Iterator)),
java(MyIt,OneResult,next),
( OneResult == null, !, ... ; OneResult = ..., recurse).
- Author:
- mc