| Package | Description |
|---|---|
| net.digitalid.utility.functional.iterables |
Provides iterables with functional methods.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CollectionIterable<ELEMENT>
This interface extends the finite iterable interface to provide a faster
CollectionIterable.size() implementation. |
interface |
FiniteIterable<ELEMENT>
This interface extends the functional iterable interface to model finite iterables.
|
interface |
InfiniteIterable<ELEMENT>
This interface extends the functional iterable interface to model infinite iterables.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CollectionBasedIterable<ELEMENT>
This class implements the collection iterable interface based on a collection.
|
| Modifier and Type | Method and Description |
|---|---|
@Nonnull FunctionalIterable<ELEMENT> |
FunctionalIterable.filter(@Nonnull FailablePredicate<? super ELEMENT,?> predicate)
Returns the elements of this iterable that satisfy the given predicate.
|
@Nonnull FunctionalIterable<ELEMENT> |
FunctionalIterable.filterNot(@Nonnull FailablePredicate<? super ELEMENT,?> predicate)
Returns the elements of this iterable that do not satisfy the given predicate.
|
@Nonnull FunctionalIterable<ELEMENT> |
FunctionalIterable.filterNulls()
Returns the elements of this iterable without the null values.
|
<TYPE> @Nonnull FunctionalIterable<TYPE> |
FunctionalIterable.flatten(@Positive int level)
Returns the elements of this iterable with all collections up to the given level flattened.
|
<TYPE> @Nonnull FunctionalIterable<TYPE> |
FunctionalIterable.flattenAll()
Returns the elements of this iterable with all collections directly or indirectly contained in this iterable flattened.
|
<TYPE> @Nonnull FunctionalIterable<TYPE> |
FunctionalIterable.flattenOne()
Returns the elements of this iterable with all collections directly contained in this iterable flattened.
|
<TYPE> @Nonnull FunctionalIterable<TYPE> |
FunctionalIterable.instanceOf(@Nonnull Class<TYPE> type)
Returns the elements of this iterable which are an instance of the given type.
|
<TYPE> @Nonnull FunctionalIterable<TYPE> |
FunctionalIterable.map(@Nonnull FailableUnaryFunction<? super ELEMENT,? extends TYPE,?> function)
Returns the elements of this iterable mapped by the given function.
|
@Nonnull FunctionalIterable<ELEMENT> |
FunctionalIterable.skip(@Positive int number)
Returns the elements of this iterable after discarding the given number of elements from the beginning.
|
<TYPE> @Nonnull FunctionalIterable<Pair<ELEMENT,TYPE>> |
FunctionalIterable.zipLongest(@Nonnull FiniteIterable<? extends TYPE> iterable)
Returns the elements from this and the given iterable as pairs, where the i-th pair contains the i-th element of each iterable.
|
<TYPE> @Nonnull FunctionalIterable<Pair<ELEMENT,TYPE>> |
FunctionalIterable.zipShortest(@Nonnull InfiniteIterable<? extends TYPE> iterable)
Returns the elements from this and the given iterable as pairs, where the i-th pair contains the i-th element of each iterable.
|
Copyright © 2017. All rights reserved.