Package nl.vpro.util
Interface TransformingCollection<T,S,U extends Collection<T>,V extends Collection<S>>
-
- All Superinterfaces:
Collection<T>
,Iterable<T>
- All Known Implementing Classes:
TransformingList
,TransformingSortedSet
public interface TransformingCollection<T,S,U extends Collection<T>,V extends Collection<S>> extends Collection<T>
- Since:
- 4.3
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
add(T toAdd)
default U
filter()
default @NonNull Iterator<T>
iterator()
U
newFiltered()
V
newWrap()
default V
produce()
S
produce(T entry)
default boolean
remove(Object toRemove)
default int
size()
default T
transform(int index, S entry)
T
transform(S entry)
V
unwrap()
-
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
newWrap
V newWrap()
-
newFiltered
U newFiltered()
-
unwrap
V unwrap()
-
size
default int size()
- Specified by:
size
in interfaceCollection<T>
-
add
default boolean add(T toAdd)
- Specified by:
add
in interfaceCollection<T>
-
remove
default boolean remove(Object toRemove)
- Specified by:
remove
in interfaceCollection<T>
-
filter
default U filter()
-
produce
default V produce()
-
-