Class DecoratingCollectionBase<T,Q>
- java.lang.Object
-
- jetbrains.buildServer.dataStructures.DecoratingCollectionBase<T,Q>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
- Direct Known Subclasses:
DecoratingCollection
,DecoratingSetBase
public abstract class DecoratingCollectionBase<T,Q> extends Object implements Collection<T>
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 14.09.11 12:50
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<Q>
myCollection
-
Constructor Summary
Constructors Constructor Description DecoratingCollectionBase(Collection<Q> collection, Mapper<Q,T> mapper)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
add(T t)
boolean
addAll(Collection<? extends T> c)
void
clear()
abstract boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
isEmpty()
Iterator<T>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
Object[]
toArray()
<E> E[]
toArray(E[] a)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream
-
-
-
-
Field Detail
-
myCollection
protected final Collection<Q> myCollection
-
-
Constructor Detail
-
DecoratingCollectionBase
public DecoratingCollectionBase(@NotNull Collection<Q> collection, @NotNull Mapper<Q,T> mapper)
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T>
-
contains
public abstract boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<T>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <E> E[] toArray(E[] a)
- Specified by:
toArray
in interfaceCollection<T>
-
add
public boolean add(T t)
- Specified by:
add
in interfaceCollection<T>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<T>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll
in interfaceCollection<T>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<T>
-
-