public interface ExCollection<T> extends Collection<T>
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
addAll(T... values)
Add values to this collection
|
default ExStream<T> |
filter(java.util.function.Predicate<? super T> predicate)
Returns a stream consisting of the elements of this stream that match the given predicate.
|
default Collection<T> |
immutable()
Create immutable view of this Set.
|
default String |
join()
Join element to String
|
default String |
join(String delimiter)
Join element to String
|
default String |
join(String delimiter,
String prefix,
String suffix)
Join element to String
|
default <R> ExStream<R> |
map(java.util.function.Function<? super T,? extends R> mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
|
default ExDoubleStream |
mapToDouble(java.util.function.ToDoubleFunction<? super T> mapper)
Returns an
DoubleStream consisting of the results of applying the
given function to the elements of this stream. |
default ExIntStream |
mapToInt(java.util.function.ToIntFunction<? super T> mapper)
Returns an
IntStream consisting of the results of applying the
given function to the elements of this stream. |
default ExLongStream |
mapToLong(java.util.function.ToLongFunction<? super T> mapper)
Returns an
LongStream consisting of the results of applying the
given function to the elements of this stream. |
default ExStream<T> |
parallelStream() |
default ExStream<T> |
stream() |
default T[] |
toArray(Class<T> cls)
Convert to array
|
static <T> net.dongliu.commons.collection.ForwardingCollection<T> |
wrap(Collection<T> c)
If c is not EnhancedCollection, wrap to EnhancedCollection
|
static <T> net.dongliu.commons.collection.ForwardingCollection<T> wrap(Collection<T> c)
default ExStream<T> stream()
stream 在接口中 Collection<T>default ExStream<T> parallelStream()
parallelStream 在接口中 Collection<T>default Collection<T> immutable()
default void addAll(T... values)
default String join()
default <R> ExStream<R> map(java.util.function.Function<? super T,? extends R> mapper)
default ExIntStream mapToInt(java.util.function.ToIntFunction<? super T> mapper)
IntStream consisting of the results of applying the
given function to the elements of this stream.default ExLongStream mapToLong(java.util.function.ToLongFunction<? super T> mapper)
LongStream consisting of the results of applying the
given function to the elements of this stream.default ExDoubleStream mapToDouble(java.util.function.ToDoubleFunction<? super T> mapper)
DoubleStream consisting of the results of applying the
given function to the elements of this stream.default ExStream<T> filter(java.util.function.Predicate<? super T> predicate)
Copyright © 2015. All rights reserved.