Top Description Constructors Methods
io.vavr.collection

pack-priv abstract Class AbstractIterator<T>

extends Object
implements Iterator<T>
Class Inheritance
All Implemented Interfaces
io.vavr.collection.Iterator, io.vavr.collection.Traversable, io.vavr.Value, java.lang.Iterable, io.vavr.collection.Foldable, java.util.Iterator
Known Direct Subclasses
io.vavr.collection.BitSetModule.BitSetIterator, io.vavr.collection.HashArrayMappedTrieModule.LeafNodeIterator, io.vavr.collection.IteratorModule.ConcatIterator, io.vavr.collection.IteratorModule.DistinctIterator, io.vavr.collection.IteratorModule.CachedIterator, io.vavr.collection.StreamModule.StreamIterator
Type Parameters
<T>
Component type
Imports
java.util.NoSuchElementException

Provides a common Object#toString() implementation.

equals(Object) and hashCode() are intentionally not overridden in order to prevent this iterator from being evaluated. In other words, (identity-)equals and hashCode are implemented by Object.

Author
Daniel Dietrich

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected abstract T
public final T
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

public String
toString()

Overrides java.lang.Object.toString.

Implements io.vavr.Value.toString.

Clarifies that values have a proper toString() method implemented.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractIteratorback to summary
pack-priv AbstractIterator()

Method Detail

getNextback to summary
protected abstract T getNext()
nextback to summary
public final T next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:T

the next element in the iteration

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements io.vavr.Value.toString.

Doc from io.vavr.Value.toString.

Clarifies that values have a proper toString() method implemented.

See Object.toString().

Returns:String

A String representation of this object

Annotations
@Override