Package org.eclipse.epsilon.eol.types
Class EolCollection<T>
- java.lang.Object
-
- org.eclipse.epsilon.eol.types.EolCollection<T>
-
- Type Parameters:
T
- Type of elements.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
- Direct Known Subclasses:
EolBag
,EolConcurrentBag
,EolConcurrentSet
,EolOrderedSet
,EolSequence
,EolSet
public abstract class EolCollection<T> extends Object implements Collection<T>
Base class for all EOL collections.- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<T>
wrapped
-
Constructor Summary
Constructors Modifier Constructor Description protected
EolCollection(Collection<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T e)
boolean
addAll(Collection<? extends T> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
equals(Object obj)
void
forEach(Consumer<? super T> action)
int
hashCode()
boolean
isEmpty()
Iterator<T>
iterator()
Stream<T>
parallelStream()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
removeIf(Predicate<? super T> filter)
boolean
retainAll(Collection<?> c)
int
size()
Spliterator<T>
spliterator()
Stream<T>
stream()
Object[]
toArray()
Object[]
toArray(Object[] a)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
toArray
-
-
-
-
Field Detail
-
wrapped
protected Collection<T> wrapped
-
-
Constructor Detail
-
EolCollection
protected EolCollection(Collection<T> delegate)
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<T>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<T>
- Overrides:
hashCode
in classObject
-
add
public boolean add(T e)
- Specified by:
add
in interfaceCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll
in interfaceCollection<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<T>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<T>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T>
-
remove
public boolean remove(Object o)
- Specified by:
remove
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>
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interfaceCollection<T>
-
removeIf
public boolean removeIf(Predicate<? super T> filter)
- Specified by:
removeIf
in interfaceCollection<T>
-
parallelStream
public Stream<T> parallelStream()
- Specified by:
parallelStream
in interfaceCollection<T>
-
stream
public Stream<T> stream()
- Specified by:
stream
in interfaceCollection<T>
-
spliterator
public Spliterator<T> spliterator()
- Specified by:
spliterator
in interfaceCollection<T>
- Specified by:
spliterator
in interfaceIterable<T>
-
-