iterators.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static <T> Iterator | |
| public static <T> Iterator | Returns: the remaining elements after droppingthe elements from which to drop. May not be iterator, final Functions.null.the predicate which decides whether to keep dropping elements. May not be predicatenull.Returns an Iterator containing all elements starting from the first element for which the drop-predicate returned false. |
| public static boolean | Returns: true if the two iterators contain equal elements in the same order.an iterator. May not be iterator, Iterator<?> null.an iterator. May not be other)null.Determines whether two iterators contain equal elements in the same order. |
| public static boolean | Returns: true if the two iterators contain equal elements in the same order.an iterator. May not be iterator, Iterable<?> null.an iterable. May not be iterable)null.Determines whether two iterators contain equal elements in the same order. |
| public static <T> boolean | |
| public static <T> Iterator | Returns: an iterator that contains only the elements that fulfill the predicate. Nevernull.the unfiltered iterator. May not be unfiltered, Functions.null.the predicate. May not be predicatenull.Returns the elements of |
| public static <T> Iterator | |
| public static <T> Iterator | Returns: an unmodifiable iterator containing all elements of the original iterator without anynull
references. Never null.the unfiltered iterator. May not be unfiltered)null.Returns a new iterator filtering any null references. |
| public static <T> T | Returns: the first element in the iterator for which the given predicate returnstrue, returns
null if no element matches the predicate or the iterator is empty.the iterator. May not be iterator, Functions.null.the predicate. May not be predicatenull.Finds the first element in the given iterator that fulfills the predicate. |
| public static <T> T | Returns: the last element in the iterator for which the given predicate returnstrue, returns
null if no element matches the predicate or the iterator is empty.the iterator. May not be iterator, Functions.null.the predicate. May not be predicatenull.Finds the last element in the given iterator that fulfills the predicate. |
| public static <T, R> Iterator | Returns: an iterable that provides the result of the transformation. Nevernull.the original iterable. May not be original, Functions.null.the transformation. May not be transformationnull and must not yield null.Returns an iterable that performs the given |
| public static <T> Iterator | |
| public static <T, R> R | Returns: the last result of the applied combinator function orseed for the empty input.the to-be-folded iterator. May not be iterator, R null.the initial value. May be seed, Functions.null.the combinator function. May not be functionnull.
Applies the combinator |
| public static <T> boolean | Returns: true if every element in iterator satisfies the predicate and also if there is no element.the iterator. May not be iterator, Functions.null.the predicate. May not be predicatenull.Returns |
| public static <T> void | forEach(Iterator<T>
the iterator. May not be iterator, Procedures.null.the procedure. May not be procedurenull.Applies |
| public static <T> void | forEach(Iterator<T>
the iterator. May not be iterator, Procedures.null.the procedure. May not be procedurenull.Applies |
| public static <K, V> Map | Returns: a map mapping the result of evaluating the functionkeyFunction on each value in the input
iterator to that value. As there can be more than one value mapped by a key, the mapping result is is a
list of values.the values to use when constructing the values, Functions.Map. May not be null.the function used to produce the key for each value. May not be computeKeysnull.Returns a map for which the |
| public static <T> T | |
| public static <A> Iterator | |
| public static boolean | |
| public static boolean | Returns: true if the iterator is null or contains no elementsthe to-be-queried iterator. May be iterator)null.Determines if the given iterator is |
| public static String | |
| public static String | Returns: the string representation of the iterator's elements. Nevernull.the iterator. May not be iterator, CharSequence null.the separator. May not be separator)null.Returns the concatenated string representation of the elements in the given iterator. |
| public static <T> String | Returns: the string representation of the iterator's elements. Nevernull.the iterator. May not be iterator, CharSequence null.the separator. May not be separator, Functions.null.the function that is used to compute the string representation of a single element. May not be
functionnull.Returns the concatenated string representation of the elements in the given iterator. |
| public static <T> String | Returns: the string representation of the iterator's elements. Nevernull.the iterator. May not be iterator, CharSequence null.prepends the resulting string if the iterator contains at least one element. May be before, CharSequence null which is equivalent to passing an empty string.the separator. May be separator, CharSequence null which is equivalent to passing an empty string.appended to the resulting string if the iterator contain at least one element. May be after, Functions.null which is equivalent to passing an empty string.the function that is used to compute the string representation of a single element. May not be
functionnull.Returns the concatenated string representation of the elements in the given iterator. |
| public static <T> T | Returns: the last element in the iterator ornull.the iterator. May not be iterator)null.
Deprecated
Use
lastOrNull(Iterator<T>) instead.
Returns the last element in the given iterator or |
| public static <T> T | Returns: the last element in the iterator ornull.the iterator. May not be iterator)null.Returns the last element in the given iterator or |
| public static <T, R> Iterator | Returns: an iterator that provides the result of the transformation. Nevernull.the original iterator. May not be original, Functions.null.the transformation. May not be transformationnull.Returns an iterator that performs the given |
| public static <T extends Comparable | |
| public static <T> T | Returns: the maximumthe elements to find the maximum of. May not be iterator, Comparator<? super T> null.the comparison function. May not be comparator)null.Finds the maximum element according to |
| public static <T, C extends Comparable | Returns: the maximumthe elements to find the maximum of. May not be iterator, final Functions.null.a function that returns a comparable characteristic to compare the elements by. May not be compareBynull.Finds the element that yields the maximum value when passed to |
| public static <T extends Comparable | |
| public static <T> T | Returns: the minimumthe elements to find the minimum of. May not be iterator, Comparator<? super T> null.the comparison function. May not be comparator)null.Finds the mininmum element according to |
| public static <T, C extends Comparable | Returns: the minimumthe elements to find the minimum of. May not be iterator, final Functions.null.a function that returns a comparable characteristic to compare the elements by. May not be compareBynull.Finds the element that yields the minimum value when passed to |
| public static <T> Iterator | Returns: a combined iterator. Nevernull.the first iterator. May not be a, Iterator<? extends T> null.the second iterator. May not be b)null.Concatenates two iterators into a single iterator. |
| public static <T> T | Returns: the last result of the applied combinator function ornull for the empty input.the to-be-reduced iterator. May not be iterator, Functions.null.the combinator function. May not be functionnull.
Applies the combinator |
| public static <T> Iterator | Returns: an iterator that contains only the elements that do not fulfill the predicate. Nevernull.the unfiltered iterator. May not be unfiltered, Functions.null.the predicate. May not be predicatenull.Returns the elements of |
| public static int | |
| public static <T> Iterator | |
| public static <T> Iterator | |
| public static <T> Iterator | Returns: the taken elementsthe elements from which to take. May not be iterator, final Functions.null.the predicate which decides whether to keep taking elements. May not be predicatenull.Returns an Iterator containing all elements starting from the head of the source up to and excluding the first element that violates the predicate. |
| public static <K, V> Map | Returns: a map mapping each entry in the given iterator to the corresponding result when evaluating the functioncomputeValues.the keys to use when constructing the keys, Functions.Map. May not be null.the function used to produce the values for each key. May not be computeValuesnull.Returns a map for which the |
| public static <T> Iterable | |
| public static <T> List | |
| public static <K, V> Map | Returns: a map mapping the result of evaluating the functionkeyFunction on each value in the input
iterator to that valuethe values to use when constructing the values, Functions.Map. May not be null.the function used to produce the key for each value. May not be computeKeysnull.Returns a map for which the |
| public static <T, K, V> Map | Returns: a map mapping the result of evaluating the functionskeyFunction and computeValues on each value in the input
iterator to that valuethe elements to use when constructing the inputs, Functions.Map. May not be null.the function used to produce the key for each value. May not be computeKeys,null.the function used to produce the values for each key. May not be computeValuesnull.Returns a map for which the |
| public static <T> Set |