Class SuggestionStream<T>
java.lang.Object
dev.rollczi.litecommands.suggestion.SuggestionStream<T>
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()concat(SuggestionStream<T> other) concat(Collection<T> other) final SuggestionStream<T>distinct()<R> SuggestionStream<R>flatMap(Function<? super T, ? extends Collection<? extends R>> mapper) <R> SuggestionStream<R>flatMapStream(Function<? super T, ? extends Stream<? extends R>> mapper) limit(long maxSize) <R> SuggestionStream<R>static <T> SuggestionStream<T>of(Collection<T> suggestions) static <T> SuggestionStream<T>of(T... suggestions) @NotNull SuggestionStream<T>original()skip(long n) sorted()sorted(Comparator<? super T> comparator) @NotNull SuggestionStream<T>
-
Method Details
-
concat
-
concat
-
concat
-
collect
-
filter
-
map
-
flatMapStream
public <R> SuggestionStream<R> flatMapStream(Function<? super T, ? extends Stream<? extends R>> mapper) -
flatMap
public <R> SuggestionStream<R> flatMap(Function<? super T, ? extends Collection<? extends R>> mapper) -
distinct
-
sorted
-
sorted
-
peek
-
limit
-
skip
-
unordered
-
onClose
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
original
-
of
-
of
-