| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LazyIterable | asLazy()
Overrides org. Implements org. Returns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this). |
| public LazyIterable | chunk(int size)
Implements org. Creates a deferred chunk iterable. |
| public <V> LazyIterable | collect(Function<? super T, ? extends V> function)
Implements org. Creates a deferred iterable for collecting elements from the current iterable. |
| public LazyBooleanIterable | collectBoolean(BooleanFunction<? super T> booleanFunction)
Implements org. Returns a lazy BooleanIterable which will transform the underlying iterable data to boolean values based on the booleanFunction. |
| public LazyByteIterable | collectByte(ByteFunction<? super T> byteFunction)
Implements org. Returns a lazy ByteIterable which will transform the underlying iterable data to byte values based on the byteFunction. |
| public LazyCharIterable | collectChar(CharFunction<? super T> charFunction)
Implements org. Returns a lazy CharIterable which will transform the underlying iterable data to char values based on the charFunction. |
| public LazyDoubleIterable | collectDouble(DoubleFunction<? super T> doubleFunction)
Implements org. Returns a lazy DoubleIterable which will transform the underlying iterable data to double values based on the doubleFunction. |
| public LazyFloatIterable | collectFloat(FloatFunction<? super T> floatFunction)
Implements org. Returns a lazy FloatIterable which will transform the underlying iterable data to float values based on the floatFunction. |
| public <V> LazyIterable | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Implements org. Creates a deferred iterable for selecting and collecting elements from the current iterable. |
| public LazyIntIterable | collectInt(IntFunction<? super T> intFunction)
Implements org. Returns a lazy IntIterable which will transform the underlying iterable data to int values based on the intFunction. |
| public LazyLongIterable | collectLong(LongFunction<? super T> longFunction)
Implements org. Returns a lazy LongIterable which will transform the underlying iterable data to long values based on the longFunction. |
| public LazyShortIterable | collectShort(ShortFunction<? super T> shortFunction)
Implements org. Returns a lazy ShortIterable which will transform the underlying iterable data to short values based on the shortFunction. |
| public <P, V> LazyIterable | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public LazyIterable | concatenate(Iterable<T> iterable)
Implements org. Creates a deferred iterable that will join this iterable with the specified iterable. |
| public LazyIterable | distinct()
Implements org. Creates a deferred distinct iterable to get distinct elements from the current iterable. |
| public LazyIterable | drop(int count)
Implements org. Creates a deferred drop iterable for the current iterable using the specified count as the limit. |
| public LazyIterable | dropWhile(Predicate<? super T> predicate)
Implements org.
|
| public <V> LazyIterable | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Implements org. Creates a deferred flattening iterable for the current iterable. |
| public T | getFirst()
Implements org. Returns the first element of an iterable. |
| public T | getLast()
Implements org. Returns the last element of an iterable. |
| public T | getOnly()
Overrides default org. Returns the element if the iterable has exactly one element. |
| public <V> Multimap | groupBy(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> Multimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public <V> MapIterable | groupByUniqueKey(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public <R extends Collection | into(R target)
Overrides org. Implements org. Iterates over this iterable adding all elements into the target collection. |
| public boolean | isEmpty()
Overrides org. Implements org. Returns true if this iterable has zero items. |
| public <V extends Comparable | maxByOptional(Function<? super T, ? extends V> function)
Overrides default org. Returns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional. |
| public Optional | maxOptional(Comparator<? super T> comparator)
Overrides default org. Returns the maximum element out of this container based on the comparator as an Optional. |
| public Optional | maxOptional()
Overrides default org. Returns the maximum element out of this container based on the natural order as an Optional. |
| public <V extends Comparable | minByOptional(Function<? super T, ? extends V> function)
Overrides default org. Returns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional. |
| public Optional | minOptional(Comparator<? super T> comparator)
Overrides default org. Returns the minimum element out of this container based on the comparator as an Optional. |
| public Optional | minOptional()
Overrides default org. Returns the minimum element out of this container based on the natural order as an Optional. |
| public PartitionMutableList | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionMutableList | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public LazyIterable | reject(Predicate<? super T> predicate)
Implements org. Creates a deferred iterable for rejecting elements from the current iterable. |
| public <P> LazyIterable | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public LazyIterable | select(Predicate<? super T> predicate)
Implements org. Creates a deferred iterable for selecting elements from the current iterable. |
| public <S> LazyIterable | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> LazyIterable | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| public <V> ObjectDoubleMap | sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ObjectDoubleMap | sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ObjectLongMap | sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ObjectLongMap | sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public LazyIterable | take(int count)
Implements org. Creates a deferred take iterable for the current iterable using the specified count as the limit. |
| public LazyIterable | takeWhile(Predicate<? super T> predicate)
Implements org.
|
| public LazyIterable | tap(Procedure<? super T> procedure)
Implements org. Creates a deferred tap iterable. |
| public MutableStack | |
| public <S> LazyIterable | zip(Iterable<S> that)
Implements org. Creates a deferred zip iterable. |
| public LazyIterable | zipWithIndex()
Implements org. Creates a deferred zipWithIndex iterable. |