Uses of Interface
com.jongsoft.lang.collection.Traversable
-
Packages that use Traversable Package Description com.jongsoft.lang.collection A purely functional based set of collection implementations based upon the Collection. -
-
Uses of Traversable in com.jongsoft.lang.collection
Subinterfaces of Traversable in com.jongsoft.lang.collection Modifier and Type Interface Description interface
Collection<T>
The collection interface enables basic operations that allow access to the elements.interface
Iterator<T>
An extension on the defaultIterator
that adds utility operations to easily manipulate the iterator or locate elements inside it.interface
List<T>
interface
Map<K,T>
This class represents a map implementation that is immutable.interface
Sequence<T>
Sequences are ordered collections of elements.interface
Set<T>
The set is an extension of theCollection
interface that guarantees only unique elements are contained within the set.interface
Tree<T>
static interface
Tree.NodeCollection<T>
The node collection is a set of tree elements each containing exactly one value.Methods in com.jongsoft.lang.collection that return Traversable Modifier and Type Method Description Traversable<T>
Traversable. filter(java.util.function.Predicate<T> predicate)
<U> Traversable<U>
Traversable. map(java.util.function.Function<T,U> mapper)
Traversable<T>
Traversable. orElse(java.lang.Iterable<? extends T> other)
Returns eitherthis
if it is non empty, otherwise will return the providedother
.Traversable<T>
Traversable. orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends T>> supplier)
Returns eitherthis
if it is non empty, otherwise the provided supplier is evaluated and returned.Traversable<T>
Traversable. reject(java.util.function.Predicate<T> predicate)
Return a list that removes all elements that match thepredicate
provided.
-