@ReadOnly @Functional public interface FiniteIterable<ELEMENT> extends FunctionalIterable<ELEMENT>, net.digitalid.utility.interfaces.Countable
CollectionIterable| Modifier and Type | Method and Description |
|---|---|
default double |
average()
Returns the average of all
numbers in this iterable. |
default <RESULT,COLLECT_EXCEPTION extends Exception,RESULT_EXCEPTION extends Exception> |
collect(@Nonnull FailableCollector<? super ELEMENT,? extends RESULT,? extends COLLECT_EXCEPTION,? extends RESULT_EXCEPTION> collector)
Returns the result of the given collector after consuming all elements of this iterable.
|
default @Nonnull FiniteIterable<ELEMENT> |
combine(@Nonnull FiniteIterable<? extends ELEMENT> iterable)
Returns the elements of this iterable followed by the elements of the given iterable.
|
default @Nonnull InfiniteIterable<ELEMENT> |
combine(@Nonnull InfiniteIterable<? extends ELEMENT> iterable)
Returns the elements of this iterable followed by the elements of the given iterable.
|
default boolean |
contains(@Nullable Object object)
Returns whether this iterable contains the given object.
|
default boolean |
containsAll(@Nonnull Collection<?> collection)
Returns whether this iterable contains all of the elements of the given collection.
|
default boolean |
containsAll(@Nonnull FiniteIterable<?> iterable)
Returns whether this iterable contains all of the elements of the given iterable.
|
default boolean |
containsDuplicates()
Returns whether this iterable contains duplicates.
|
default boolean |
containsNull()
Returns whether this iterable contains null.
|
default @NonNegative int |
count(@Nullable Object object)
Returns the number of elements in this iterable that equal the given object.
|
default @Nonnull FiniteIterable<ELEMENT> |
distinct()
Returns the distinct elements of this iterable.
|
default <EXCEPTION extends Exception> |
doForEach(@Nonnull FailableConsumer<? super ELEMENT,? extends EXCEPTION> action)
Performs the given action for each element of this iterable and returns this iterable.
|
default boolean |
equals(@Nullable FiniteIterable<?> iterable)
Returns whether this iterable equals the given iterable.
|
default <EXCEPTION extends Exception> |
evaluate()
Iterates through the elements of this iterable and returns them as a new iterable.
|
default @Nonnull FiniteIterable<ELEMENT> |
exclude(@Nonnull FiniteIterable<? super ELEMENT> iterable)
Returns the elements that are contained in this iterable but not in the given iterable.
|
default @Nonnull FiniteIterable<ELEMENT> |
filter(@Nonnull FailablePredicate<? super ELEMENT,?> predicate)
Returns the elements of this iterable that satisfy the given predicate.
|
default @Nonnull FiniteIterable<ELEMENT> |
filterNot(@Nonnull FailablePredicate<? super ELEMENT,?> predicate)
Returns the elements of this iterable that do not satisfy the given predicate.
|
default @Nonnull FiniteIterable<ELEMENT> |
filterNulls()
Returns the elements of this iterable without the null values.
|
default <EXCEPTION extends Exception> |
findFirst(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns the first element of this iterable that fulfills the given predicate or null if no such element is found.
|
default <EXCEPTION extends Exception> |
findFirst(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate,
ELEMENT defaultElement)
Returns the first element of this iterable that fulfills the given predicate or the given default element if no such element is found.
|
default <EXCEPTION extends Exception> |
findLast(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns the last element of this iterable that fulfills the given predicate or null if no such element is found.
|
default <EXCEPTION extends Exception> |
findLast(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate,
ELEMENT defaultElement)
Returns the last element of this iterable that fulfills the given predicate or the given default element if no such element is found.
|
default <EXCEPTION extends Exception> |
findUnique(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns the unique element of this iterable that fulfills the given predicate.
|
default <TYPE> @Nonnull FiniteIterable<TYPE> |
flatten(@Positive int level)
Returns the elements of this iterable with all collections up to the given level flattened.
|
default <TYPE> @Nonnull FiniteIterable<TYPE> |
flattenAll()
Returns the elements of this iterable with all collections directly or indirectly contained in this iterable flattened.
|
default <TYPE> @Nonnull FiniteIterable<TYPE> |
flattenOne()
Returns the elements of this iterable with all collections directly contained in this iterable flattened.
|
default ELEMENT |
getFirst()
Returns the first element of this iterable.
|
default ELEMENT |
getFirst(ELEMENT defaultElement)
Returns the first element of this iterable or the given default element if this iterable is empty.
|
default ELEMENT |
getFirstOrNull()
Returns the first element of this iterable or null if this iterable is empty.
|
default ELEMENT |
getLast()
Returns the last element of this iterable.
|
default ELEMENT |
getLast(ELEMENT defaultElement)
Returns the last element of this iterable or the given default element if this iterable is empty.
|
default ELEMENT |
getLastOrNull()
Returns the last element of this iterable or null if this iterable is empty.
|
default <KEY,EXCEPTION extends Exception> |
groupBy(@Nonnull FailableUnaryFunction<? super ELEMENT,? extends KEY,? extends EXCEPTION> function)
Returns the elements of this iterable as a map grouped by the given function.
|
default @GreaterThanOrEqualTo(value=-1L) int |
indexOf(@Nullable Object object)
Returns the index of the first occurrence of the given object in this iterable or -1 if this iterable does not contain the given object.
|
default <TYPE> @Nonnull FiniteIterable<TYPE> |
instanceOf(@Nonnull Class<TYPE> type)
Returns the elements of this iterable which are an instance of the given type.
|
default @Nonnull FiniteIterable<ELEMENT> |
intersect(@Nonnull FiniteIterable<? super ELEMENT> iterable)
Returns the elements that are contained both in this iterable and the given iterable.
|
default boolean |
isAscending()
Returns whether the elements in this iterable are ascending (excluding null values).
|
default boolean |
isDescending()
Returns whether the elements in this iterable are descending (excluding null values).
|
default boolean |
isEmpty()
Returns whether this iterable is empty.
|
default boolean |
isEmptyOrSingle()
Returns whether this iterable is empty or single.
|
default boolean |
isOrdered(boolean strictly,
boolean ascending)
Returns whether the elements in this iterable are ordered (excluding null values).
|
default boolean |
isSingle()
Returns whether this iterable contains a single element.
|
default boolean |
isStrictlyAscending()
Returns whether the elements in this iterable are strictly ascending (excluding null values).
|
default boolean |
isStrictlyDescending()
Returns whether the elements in this iterable are strictly descending (excluding null values).
|
default @Nonnull String |
join()
Returns the elements of this iterable joined by commas.
|
default @Nonnull String |
join(@Nonnull CharSequence delimiter)
Returns the elements of this iterable joined by the given delimiter.
|
default @Nonnull String |
join(@Nonnull CharSequence prefix,
@Nonnull CharSequence suffix)
Returns the elements of this iterable joined by commas with the given prefix and suffix.
|
default @Nonnull String |
join(@Nonnull CharSequence prefix,
@Nonnull CharSequence suffix,
@Nonnull CharSequence empty)
Returns the elements of this iterable joined by commas with the given prefix and suffix or the given empty string if this iterable is empty.
|
default @Nonnull String |
join(@Nonnull CharSequence prefix,
@Nonnull CharSequence suffix,
@Nonnull CharSequence empty,
@Nonnull CharSequence delimiter)
Returns the elements of this iterable joined by the given delimiter with the given prefix and suffix or the given empty string if this iterable is empty.
|
default @Nonnull String |
join(@Nullable net.digitalid.utility.circumfixes.Circumfix fixes)
Returns the elements of this iterable joined by commas with the given fixes.
|
default @Nonnull String |
join(@Nullable net.digitalid.utility.circumfixes.Circumfix fixes,
@Nonnull CharSequence empty)
Returns the elements of this iterable joined by commas with the given fixes or the given empty string if this iterable is empty.
|
default @Nonnull String |
join(@Nullable net.digitalid.utility.circumfixes.Circumfix fixes,
@Nonnull CharSequence empty,
@Nonnull CharSequence delimiter)
Returns the elements of this iterable joined by the given delimiter with the given fixes or the given empty string if this iterable is empty.
|
default @GreaterThanOrEqualTo(value=-1L) int |
lastIndexOf(@Nullable Object object)
Returns the index of the last occurrence of the given object in this iterable or -1 if this iterable does not contain the given object.
|
default <TYPE> @Nonnull FiniteIterable<TYPE> |
map(@Nonnull FailableUnaryFunction<? super ELEMENT,? extends TYPE,?> function)
Returns the elements of this iterable mapped by the given function.
|
default <EXCEPTION extends Exception> |
matchAll(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns whether all elements of this iterable match the given predicate.
|
default <EXCEPTION extends Exception> |
matchAny(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns whether any elements of this iterable match the given predicate.
|
default <EXCEPTION extends Exception> |
matchNone(@Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate)
Returns whether no element of this iterable matches the given predicate.
|
default ELEMENT |
max()
Returns the maximum element of this iterable according to the natural order or null if this iterable is empty.
|
default ELEMENT |
max(@Nonnull Comparator<? super ELEMENT> comparator)
Returns the maximum element of this iterable according to the given comparator or null if this iterable is empty.
|
default ELEMENT |
max(@Nonnull Comparator<? super ELEMENT> comparator,
ELEMENT defaultElement)
Returns the maximum element of this iterable according to the given comparator or the given default element if this iterable is empty.
|
default ELEMENT |
max(ELEMENT defaultElement)
Returns the maximum element of this iterable according to the natural order or the given default element if this iterable is empty.
|
default ELEMENT |
min()
Returns the minimum element of this iterable according to the natural order or null if this iterable is empty.
|
default ELEMENT |
min(@Nonnull Comparator<? super ELEMENT> comparator)
Returns the minimum element of this iterable according to the given comparator or null if this iterable is empty.
|
default ELEMENT |
min(@Nonnull Comparator<? super ELEMENT> comparator,
ELEMENT defaultElement)
Returns the minimum element of this iterable according to the given comparator or the given default element if this iterable is empty.
|
default ELEMENT |
min(ELEMENT defaultElement)
Returns the minimum element of this iterable according to the natural order or the given default element if this iterable is empty.
|
static <ELEMENT> FiniteIterable<ELEMENT> |
of(Collection<? extends ELEMENT> collection)
Wraps the given collection as a finite iterable or returns null if the collection is null.
|
static <ELEMENT> @Nonnull FiniteIterable<ELEMENT> |
of(ELEMENT... elements)
Wraps the given elements as a finite iterable.
|
default <EXCEPTION extends Exception> |
reduce(@Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator)
Returns the value reduced by the given operator or null if this iterable is empty.
|
default <EXCEPTION extends Exception> |
reduce(@Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator,
ELEMENT element)
Returns the value reduced by the given operator or the given element if this iterable is empty.
|
default @Nonnull InfiniteIterable<ELEMENT> |
repeated()
Returns the elements of this iterable repeated indefinitely.
|
default @Nonnull FiniteIterable<ELEMENT> |
reversed()
Returns the elements of this iterable in reversed order.
|
default @NonNegative int |
size()
Returns the size of this iterable.
|
default @Nonnull FiniteIterable<ELEMENT> |
skip(@Positive int number)
Returns the elements of this iterable after discarding the given number of elements from the beginning.
|
default @Nonnull FiniteIterable<ELEMENT> |
sorted()
Returns the elements of this iterable sorted according to their natural order.
|
default @Nonnull FiniteIterable<ELEMENT> |
sorted(@Nonnull Comparator<? super ELEMENT> comparator)
Returns the elements of this iterable sorted according to the given comparator.
|
default double |
sumAsDouble()
Returns the sum of all
numbers in this iterable as a double. |
default long |
sumAsLong()
Returns the sum of all
numbers in this iterable as a long. |
default @Nonnull Object[] |
toArray()
Returns the elements of this iterable as an array.
|
default <TYPE> TYPE[] |
toArray(TYPE[] array)
Returns the elements of this iterable as a generic array of the given type.
|
default ELEMENT[] |
toGenericArray()
Returns the elements of this iterable as a generic array.
|
default @Modifiable @Nonnull List<ELEMENT> |
toList()
Returns the elements of this iterable as a list.
|
default <KEY,EXCEPTION extends Exception> |
toMap(@Nonnull FailableUnaryFunction<? super ELEMENT,? extends KEY,? extends EXCEPTION> function)
Returns the elements of this iterable as a map with their key determined by the given function.
|
default @Modifiable @Nonnull Set<ELEMENT> |
toSet()
Returns the elements of this iterable as a set.
|
default <TYPE> @Nonnull FiniteIterable<Pair<ELEMENT,TYPE>> |
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.
|
default <TYPE> @Nonnull FiniteIterable<Pair<ELEMENT,TYPE>> |
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.
|
extract, get, hasSize, iterator, limit, size, sizeAtLeast, sizeAtMost, zipLongest, zipShortestforEach, spliterator@Pure static <ELEMENT> FiniteIterable<ELEMENT> of(@Shared @Unmodified Collection<? extends ELEMENT> collection)
@Pure @SafeVarargs @Nonnull static <ELEMENT> @Nonnull FiniteIterable<ELEMENT> of(@Shared @Unmodified @Nonnull ELEMENT... elements)
@Pure @NonNegative default @NonNegative int size()
size in interface net.digitalid.utility.interfaces.Countable@Pure default boolean isEmpty()
FunctionalIterableisEmpty in interface net.digitalid.utility.interfaces.CountableisEmpty in interface FunctionalIterable<ELEMENT>@Pure default boolean isSingle()
FunctionalIterableisSingle in interface net.digitalid.utility.interfaces.CountableisSingle in interface FunctionalIterable<ELEMENT>@Pure default boolean isEmptyOrSingle()
FunctionalIterableisEmptyOrSingle in interface net.digitalid.utility.interfaces.CountableisEmptyOrSingle in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> filter(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,?> predicate)
FunctionalIterableIterationException.filter in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> filterNot(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,?> predicate)
FunctionalIterableIterationException.filterNot in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> filterNulls()
FunctionalIterablefilterNulls in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<TYPE> map(@Nonnull @Nonnull FailableUnaryFunction<? super ELEMENT,? extends TYPE,?> function)
FunctionalIterableIterationException.map in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<TYPE> instanceOf(@Nonnull @Nonnull Class<TYPE> type)
FunctionalIterableinstanceOf in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> skip(@Positive @Positive int number)
FunctionalIterableskip in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<Pair<ELEMENT,TYPE>> zipShortest(@Nonnull @Nonnull InfiniteIterable<? extends TYPE> iterable)
FunctionalIterablezipShortest in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<Pair<ELEMENT,TYPE>> zipLongest(@Nonnull @Nonnull FiniteIterable<? extends TYPE> iterable)
FunctionalIterablezipLongest in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<TYPE> flatten(@Positive @Positive int level)
FunctionalIterableflatten in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<TYPE> flattenOne()
FunctionalIterableflattenOne in interface FunctionalIterable<ELEMENT>@Pure @Nonnull default <TYPE> @Nonnull FiniteIterable<TYPE> flattenAll()
FunctionalIterableflattenAll in interface FunctionalIterable<ELEMENT>@Pure default boolean equals(@Nullable @Nullable FiniteIterable<?> iterable)
@Pure @NonCapturable default ELEMENT getFirst(@NonCaptured @Unmodified ELEMENT defaultElement)
@Pure @NonCapturable @Nullable default ELEMENT getFirstOrNull()
@Pure @NonCapturable default ELEMENT getFirst()
NoSuchElementException - if this iterable is empty.@Pure @NonCapturable default ELEMENT getLast(@NonCaptured @Unmodified ELEMENT defaultElement)
@Pure @NonCapturable @Nullable default ELEMENT getLastOrNull()
@Pure @NonCapturable default ELEMENT getLast()
NoSuchElementException - if this iterable is empty.@Pure @GreaterThanOrEqualTo(value=-1L) default @GreaterThanOrEqualTo(value=-1L) int indexOf(@NonCaptured @Unmodified @Nullable @Nullable Object object)
@Pure @GreaterThanOrEqualTo(value=-1L) default @GreaterThanOrEqualTo(value=-1L) int lastIndexOf(@NonCaptured @Unmodified @Nullable @Nullable Object object)
@Pure @NonNegative default @NonNegative int count(@NonCaptured @Unmodified @Nullable @Nullable Object object)
@Pure default boolean contains(@NonCaptured @Unmodified @Nullable @Nullable Object object)
@Pure default boolean containsAll(@Nonnull @Nonnull FiniteIterable<?> iterable)
@Pure default boolean containsAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
@Pure default boolean containsNull()
@Pure default boolean containsDuplicates()
@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> distinct()
@Pure @Chainable default <EXCEPTION extends Exception> FiniteIterable<ELEMENT> doForEach(@NonCaptured @Modified @Nonnull @Nonnull FailableConsumer<? super ELEMENT,? extends EXCEPTION> action) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> intersect(@Nonnull @Nonnull FiniteIterable<? super ELEMENT> iterable)
@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> exclude(@Nonnull @Nonnull FiniteIterable<? super ELEMENT> iterable)
@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> combine(@Nonnull @Nonnull FiniteIterable<? extends ELEMENT> iterable)
@Pure @Nonnull default @Nonnull InfiniteIterable<ELEMENT> combine(@Nonnull @Nonnull InfiniteIterable<? extends ELEMENT> iterable)
@Pure @Nonnull default @Nonnull InfiniteIterable<ELEMENT> repeated()
@Pure @NonCapturable @Nullable default <EXCEPTION extends Exception> ELEMENT findFirst(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate, @NonCaptured @Unmodified ELEMENT defaultElement) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable @Nullable default <EXCEPTION extends Exception> ELEMENT findFirst(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable default <EXCEPTION extends Exception> ELEMENT findLast(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate, @NonCaptured @Unmodified ELEMENT defaultElement) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable @Nullable default <EXCEPTION extends Exception> ELEMENT findLast(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable default <EXCEPTION extends Exception> ELEMENT findUnique(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
NoSuchElementException - if no unique element is found in this iterable.EXCEPTION extends Exception@Pure default <EXCEPTION extends Exception> boolean matchAny(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure default <EXCEPTION extends Exception> boolean matchAll(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure default <EXCEPTION extends Exception> boolean matchNone(@Nonnull @Nonnull FailablePredicate<? super ELEMENT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable default <EXCEPTION extends Exception> ELEMENT reduce(@Nonnull @Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator, @NonCaptured @Unmodified ELEMENT element) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @NonCapturable @Nullable default <EXCEPTION extends Exception> ELEMENT reduce(@Nonnull @Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Capturable default <RESULT,COLLECT_EXCEPTION extends Exception,RESULT_EXCEPTION extends Exception> RESULT collect(@NonCaptured @Modified @Nonnull @Nonnull FailableCollector<? super ELEMENT,? extends RESULT,? extends COLLECT_EXCEPTION,? extends RESULT_EXCEPTION> collector) throws COLLECT_EXCEPTION extends Exception, RESULT_EXCEPTION extends Exception
COLLECT_EXCEPTION extends Exception@Pure
default boolean isOrdered(boolean strictly,
boolean ascending)
strictly - whether the ordering is strict (i.e. without equal values).ascending - whether the ordering is ascending (true) or descending (false).true if the elements in this iterable are ordered, false otherwise.@Pure default boolean isAscending()
@Pure default boolean isStrictlyAscending()
@Pure default boolean isDescending()
@Pure default boolean isStrictlyDescending()
@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> sorted(@Nonnull @Nonnull Comparator<? super ELEMENT> comparator)
@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> sorted()
ClassCastException - if the elements of this iterable are not comparable.@Pure @Nonnull default @Nonnull FiniteIterable<ELEMENT> reversed()
@Pure @NonCapturable default ELEMENT min(@Nonnull @Nonnull Comparator<? super ELEMENT> comparator, @NonCaptured @Unmodified ELEMENT defaultElement)
@Pure @NonCapturable @Nullable default ELEMENT min(@Nonnull @Nonnull Comparator<? super ELEMENT> comparator)
@Pure @NonCapturable default ELEMENT min(@NonCaptured @Unmodified ELEMENT defaultElement)
ClassCastException - if the elements of this iterable are not comparable.@Pure @NonCapturable @Nullable default ELEMENT min()
ClassCastException - if the elements of this iterable are not comparable.@Pure @NonCapturable default ELEMENT max(@Nonnull @Nonnull Comparator<? super ELEMENT> comparator, @NonCaptured @Unmodified ELEMENT defaultElement)
@Pure @NonCapturable @Nullable default ELEMENT max(@Nonnull @Nonnull Comparator<? super ELEMENT> comparator)
@Pure @NonCapturable default ELEMENT max(@NonCaptured @Unmodified ELEMENT defaultElement)
ClassCastException - if the elements of this iterable are not comparable.@Pure @NonCapturable @Nullable default ELEMENT max()
ClassCastException - if the elements of this iterable are not comparable.@Pure default long sumAsLong()
numbers in this iterable as a long.@Pure default double sumAsDouble()
numbers in this iterable as a double.@Pure default double average()
numbers in this iterable.@Pure @Nonnull default @Nonnull String join(@Nonnull @Nonnull CharSequence prefix, @Nonnull @Nonnull CharSequence suffix, @Nonnull @Nonnull CharSequence empty, @Nonnull @Nonnull CharSequence delimiter)
@Pure @Nonnull default @Nonnull String join(@Nonnull @Nonnull CharSequence prefix, @Nonnull @Nonnull CharSequence suffix, @Nonnull @Nonnull CharSequence empty)
@Pure @Nonnull default @Nonnull String join(@Nonnull @Nonnull CharSequence prefix, @Nonnull @Nonnull CharSequence suffix)
@Pure @Nonnull default @Nonnull String join(@Nullable @Nullable net.digitalid.utility.circumfixes.Circumfix fixes, @Nonnull @Nonnull CharSequence empty, @Nonnull @Nonnull CharSequence delimiter)
@Pure @Nonnull default @Nonnull String join(@Nullable @Nullable net.digitalid.utility.circumfixes.Circumfix fixes, @Nonnull @Nonnull CharSequence empty)
@Pure @Nonnull default @Nonnull String join(@Nullable @Nullable net.digitalid.utility.circumfixes.Circumfix fixes)
@Pure @Nonnull default @Nonnull String join(@Nonnull @Nonnull CharSequence delimiter)
@Pure @Nonnull default @Nonnull String join()
@Pure @Capturable @Nonnull default @Nonnull Object[] toArray()
@Pure @Capturable @Nonnull default ELEMENT[] toGenericArray()
@Pure @Capturable @Nonnull default <TYPE> TYPE[] toArray(@NonCaptured @Modified @Nonnull TYPE[] array)
If this iterable fits in the given array with room to spare (i.e. the array has more elements than this iterable), the element in the array immediately following the end of the iterable is set to null.
@Pure @Capturable @Modifiable @Nonnull default @Modifiable @Nonnull List<ELEMENT> toList()
@Pure @Capturable @Modifiable @Nonnull default @Modifiable @Nonnull Set<ELEMENT> toSet()
@Pure @Capturable @Modifiable @Nonnull default <KEY,EXCEPTION extends Exception> @Modifiable @Nonnull Map<KEY,ELEMENT> toMap(@Nonnull @Nonnull FailableUnaryFunction<? super ELEMENT,? extends KEY,? extends EXCEPTION> function) throws EXCEPTION extends Exception
groupBy(net.digitalid.utility.functional.failable.FailableUnaryFunction) instead.EXCEPTION extends Exception@Pure @Capturable @Modifiable @Nonnull default <KEY,EXCEPTION extends Exception> @Modifiable @Nonnull Map<KEY,List<ELEMENT>> groupBy(@Nonnull @Nonnull FailableUnaryFunction<? super ELEMENT,? extends KEY,? extends EXCEPTION> function) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Capturable @Nonnull default <EXCEPTION extends Exception> @Nonnull FiniteIterable<ELEMENT> evaluate() throws EXCEPTION extends Exception
EXCEPTION extends ExceptionCopyright © 2017. All rights reserved.