Class RangeIteratorAdapter

    • Constructor Detail

      • RangeIteratorAdapter

        public RangeIteratorAdapter​(Iterator iterator,
                                    long size)
        Creates an adapter for the given iterator of the given size.
        Parameters:
        iterator - adapted iterator
        size - size of the iterator, or -1 if unknown
      • RangeIteratorAdapter

        public RangeIteratorAdapter​(Iterator iterator)
        Creates an adapter for the given iterator of unknown size.
        Parameters:
        iterator - adapted iterator
      • RangeIteratorAdapter

        public RangeIteratorAdapter​(Collection collection)
        Creates a RangeIterator for the given collection.
        Parameters:
        collection - the collection to iterate