Package io.vavr
Interface Iterable<T>
-
- Type Parameters:
T
- the type of Iterator elements
- All Superinterfaces:
java.lang.Iterable<T>
- All Known Subinterfaces:
IndexedSeq<T>
,LinearSeq<T>
,Map<K,V>
,Seq<T>
,Set<T>
,SortedMap<K,V>
,SortedSet<T>
,Traversable<T>
public interface Iterable<T> extends java.lang.Iterable<T>
Extension of the well-known JavaIterable
in the sense that a rich VavrIterator
is returned byiterator()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<T>
iterator()
Returns anIterator
that allows us to perform intermediate, sequential operations known from Vavr's collection library.
-
-
-
Method Detail
-
iterator
Iterator<T> iterator()
Returns anIterator
that allows us to perform intermediate, sequential operations known from Vavr's collection library.- Specified by:
iterator
in interfacejava.lang.Iterable<T>
- Returns:
- an
Iterator
instance. It is not necessarily a new instance, like that returned byIterator.empty()
.
-
-