- generate(Supplier<T>) - Static method in class com.annimon.stream.Stream
-
Creates a Stream by elements that generated by Supplier.
- get() - Method in class com.annimon.stream.Exceptional
-
Returns inner value.
- get() - Method in interface com.annimon.stream.function.Supplier
-
Gets a result.
- get() - Method in interface com.annimon.stream.function.ThrowableSupplier
-
Gets a result.
- get() - Method in class com.annimon.stream.Optional
-
Returns inner value if present, otherwise throws NoSuchElementException.
- getException() - Method in class com.annimon.stream.Exceptional
-
Returns exception.
- getIterator() - Method in class com.annimon.stream.Stream
-
Returns internal stream iterator.
- getOptional() - Method in class com.annimon.stream.Exceptional
-
Wraps inner value with Optional container
- getOrElse(T) - Method in class com.annimon.stream.Exceptional
-
Returns inner value if there were no exceptions, otherwise returns other.
- getOrThrow() - Method in class com.annimon.stream.Exceptional
-
Returns inner value if there were no exceptions, otherwise throws an exception.
- getOrThrow(E) - Method in class com.annimon.stream.Exceptional
-
Returns inner value if there were no exceptions, otherwise throws the given exception.
- getOrThrowRuntimeException() - Method in class com.annimon.stream.Exceptional
-
Returns inner value if there were no exceptions, otherwise throws RuntimeException.
- groupBy(Function<? super T, ? extends K>) - Method in class com.annimon.stream.Stream
-
Partitions Stream into Map entries according to the given classifier function.
- groupingBy(Function<? super T, ? extends K>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that performs grouping operation by given classifier.
- groupingBy(Function<? super T, ? extends K>, Collector<? super T, A, D>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that performs grouping operation by given classifier.
- groupingBy(Function<? super T, ? extends K>, Supplier<M>, Collector<? super T, A, D>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that performs grouping operation by given classifier.
- Objects - Class in com.annimon.stream
-
Common operations with Object.
- of(ThrowableSupplier<T, Throwable>) - Static method in class com.annimon.stream.Exceptional
-
Returns an Exceptional with value provided by given ThrowableSupplier function.
- of(T) - Static method in class com.annimon.stream.Optional
-
Returns an Optional with the specified present non-null value.
- of(Map<K, V>) - Static method in class com.annimon.stream.Stream
-
Creates a Stream from Map entries.
- of(List<? extends T>) - Static method in class com.annimon.stream.Stream
-
Creates a Stream from List.
- of(Iterator<? extends T>) - Static method in class com.annimon.stream.Stream
-
Creates a Stream from any class that implements Iterator interface.
- of(Iterable<? extends T>) - Static method in class com.annimon.stream.Stream
-
Creates a Stream from any class that implements Iterable interface.
- of(T...) - Static method in class com.annimon.stream.Stream
-
Creates a Stream from the specified values.
- ofNullable(T) - Static method in class com.annimon.stream.Optional
-
Returns an Optional with the specified value, or empty Optional if value is null.
- ofRange(int, int) - Static method in class com.annimon.stream.Stream
-
- ofRange(long, long) - Static method in class com.annimon.stream.Stream
-
- ofRangeClosed(int, int) - Static method in class com.annimon.stream.Stream
-
- ofRangeClosed(long, long) - Static method in class com.annimon.stream.Stream
-
- Optional<T> - Class in com.annimon.stream
-
A container object which may or may not contain a non-null value.
- or(Predicate<? super T>, Predicate<? super T>) - Static method in class com.annimon.stream.function.Predicate.Util
-
Applies logical OR to predicates.
- orElse(T) - Method in class com.annimon.stream.Optional
-
Returns inner value if present, otherwise returns other.
- orElseGet(Supplier<? extends T>) - Method in class com.annimon.stream.Optional
-
Returns inner value if present, otherwise returns value produced by supplier function.
- orElseThrow(Supplier<? extends X>) - Method in class com.annimon.stream.Optional
-
Returns inner value if present, otherwise throws the exception provided by supplier function.
- safe(ThrowableConsumer<? super T, Throwable>) - Static method in class com.annimon.stream.function.Consumer.Util
-
Creates a safe Consumer.
- safe(ThrowableConsumer<? super T, Throwable>, Consumer<? super T>) - Static method in class com.annimon.stream.function.Consumer.Util
-
Creates a safe Consumer.
- safe(ThrowableFunction<? super T, ? extends R, Throwable>) - Static method in class com.annimon.stream.function.Function.Util
-
Creates a safe Function,
- safe(ThrowableFunction<? super T, ? extends R, Throwable>, R) - Static method in class com.annimon.stream.function.Function.Util
-
Creates a safe Function,
- safe(ThrowablePredicate<? super T, Throwable>) - Static method in class com.annimon.stream.function.Predicate.Util
-
Creates a safe Predicate.
- safe(ThrowablePredicate<? super T, Throwable>, boolean) - Static method in class com.annimon.stream.function.Predicate.Util
-
Creates a safe Predicate.
- sample(int) - Method in class com.annimon.stream.Stream
-
Samples the Stream by emitting every n-th element.
- select(Class<R>) - Method in class com.annimon.stream.Optional
-
Keeps inner value only if is present and instance of given class.
- select(Class<TT>) - Method in class com.annimon.stream.Stream
-
Returns a stream consisting of the elements of this stream which are
instances of given class.
- skip(long) - Method in class com.annimon.stream.Stream
-
Skips first n elements and returns Stream with remaining elements.
- slidingWindow(int) - Method in class com.annimon.stream.Stream
-
Partitions Stream into Lists of fixed size by sliding over the elements of the stream.
- slidingWindow(int, int) - Method in class com.annimon.stream.Stream
-
Partitions Stream into Lists of fixed size by sliding over the elements of the stream.
- sortBy(Function<? super T, ? extends R>) - Method in class com.annimon.stream.Stream
-
Returns Stream with sorted elements (as determinated by Comparable interface).
- sorted() - Method in class com.annimon.stream.Stream
-
Returns Stream with sorted elements (as determinated by Comparable interface).
- sorted(Comparator<? super T>) - Method in class com.annimon.stream.Stream
-
Returns Stream with sorted elements (as determinated by provided Comparator).
- Stream<T> - Class in com.annimon.stream
-
A sequence of elements supporting aggregate operations.
- supplier() - Method in interface com.annimon.stream.Collector
-
Function provides new containers.
- Supplier<T> - Interface in com.annimon.stream.function
-
Represents a function which supply a result.
- takeWhile(Predicate<? super T>) - Method in class com.annimon.stream.Stream
-
Takes elements while the predicate is true.
- test(T) - Method in interface com.annimon.stream.function.Predicate
-
Tests the value for satisfying predicate.
- test(T) - Method in interface com.annimon.stream.function.ThrowablePredicate
-
Tests the value for satisfying predicate.
- ThrowableConsumer<T,E extends Throwable> - Interface in com.annimon.stream.function
-
Represents an operation on input argument and can throw an exception.
- ThrowableFunction<I,R,E extends Throwable> - Interface in com.annimon.stream.function
-
Represents a function which produces result from input arguments and can throw an exception.
- ThrowablePredicate<T,E extends Throwable> - Interface in com.annimon.stream.function
-
Represents a predicate, i.e. function with boolean type result which can throw an exception.
- ThrowableSupplier<T,E extends Throwable> - Interface in com.annimon.stream.function
-
Represents a function for supplying result which can throw an exception.
- toArray() - Method in class com.annimon.stream.Stream
-
Collects elements to an array.
- toArray(IntFunction<R[]>) - Method in class com.annimon.stream.Stream
-
Collects elements to an array, the generator constructor of provided.
- toCollection(Supplier<R>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that fills new Collection, provided by collectionSupplier, with input elements.
- toList() - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that fills new List with input elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that fills new Map with input elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>, Supplier<M>) - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that fills new List with input elements.
- toSet() - Static method in class com.annimon.stream.Collectors
-
Returns a Collector that fills new Set with input elements.
- toString() - Method in class com.annimon.stream.Exceptional
-
- toString(Object, String) - Static method in class com.annimon.stream.Objects
-
Returns result of calling toString on object or nullDefault if object is null.
- toString() - Method in class com.annimon.stream.Optional
-