Package org.core.collection
Interface WrappedCollection<E>
- All Superinterfaces:
Collection<E>
,Iterable<E>
- All Known Implementing Classes:
AbstractWrappedCollection
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
addAll()
Deprecated.default boolean
addAll(@NotNull Collection<? extends E> c)
default boolean
default <T, A, C extends Collection<T>, R extends Collector<? super T, A, C>>
Cdefault void
clear()
default boolean
default boolean
default boolean
containsAll(@NotNull Collection<?> c)
default void
@NotNull Collection<E>
default boolean
isEmpty()
iterator()
default <T, A, C extends Collection<T>, R extends Collector<? super T, A, C>>
Cdefault boolean
default boolean
Deprecated.default boolean
removeAll(@NotNull Collection<?> c)
default boolean
default boolean
default boolean
retainAll(@NotNull Collection<?> c)
default int
size()
default Spliterator<E>
stream()
default @NotNull Object @NotNull []
toArray()
default <T> @NotNull T[]
toArray(@NotNull T... ts)
Methods inherited from interface java.util.Collection
equals, hashCode, toArray
-
Method Details
-
getWrappedCollection
-
addAll
Deprecated. -
addAll
-
removeAll
Deprecated. -
removeAll
-
contains
-
map
default <T, A, C extends Collection<T>, R extends Collector<? super T, A, C>> C map(boolean parallel, Function<? super E,T> function, R collector) -
cast
default <T, A, C extends Collection<T>, R extends Collector<? super T, A, C>> C cast(boolean parallel, Class<T> clazz, R collector) -
size
default int size()- Specified by:
size
in interfaceCollection<E>
-
isEmpty
default boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<E>
-
contains
- Specified by:
contains
in interfaceCollection<E>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
-
toArray
@NotNull default <T> @NotNull T[] toArray(@NotNull @NotNull T... ts)- Specified by:
toArray
in interfaceCollection<E>
-
add
- Specified by:
add
in interfaceCollection<E>
-
remove
- Specified by:
remove
in interfaceCollection<E>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
-
removeIf
- Specified by:
removeIf
in interfaceCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
-
clear
default void clear()- Specified by:
clear
in interfaceCollection<E>
-
spliterator
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
-
stream
- Specified by:
stream
in interfaceCollection<E>
-
parallelStream
- Specified by:
parallelStream
in interfaceCollection<E>
-
forEach
-