Class AbstractObjectCollection<T>
- java.lang.Object
-
- net.anwiba.commons.lang.collection.AbstractObjectCollection<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,IMutableObjectCollection<T>,IObjectCollection<T>,IObjectCollectionReceiver<T>,IObjectIterable<T>
- Direct Known Subclasses:
ObjectCollection
public abstract class AbstractObjectCollection<T> extends java.lang.Object implements IMutableObjectCollection<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractObjectCollection(java.util.List<T> objects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Iterable<T> objects)voidadd(T... objects)booleanisEmpty()IObjectIterator<T>iterator()voidremove(java.lang.Iterable<T> objects)voidremove(T... objects)voidremoveAll()voidset(java.lang.Iterable<T> objects)voidset(T... objects)intsize()IStream<T,java.lang.RuntimeException>stream()java.util.Collection<T>toCollection()java.util.List<T>toList()IObjectIterable<T>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.anwiba.commons.lang.collection.IObjectIterable
foreach
-
-
-
-
Constructor Detail
-
AbstractObjectCollection
public AbstractObjectCollection(java.util.List<T> objects)
-
-
Method Detail
-
toCollection
public java.util.Collection<T> toCollection()
- Specified by:
toCollectionin interfaceIObjectCollection<T>
-
toList
public java.util.List<T> toList()
- Specified by:
toListin interfaceIObjectCollection<T>
-
size
public int size()
- Specified by:
sizein interfaceIObjectCollection<T>
-
set
public void set(T... objects)
- Specified by:
setin interfaceIObjectCollectionReceiver<T>
-
set
public void set(java.lang.Iterable<T> objects)
- Specified by:
setin interfaceIObjectCollectionReceiver<T>
-
add
public void add(T... objects)
- Specified by:
addin interfaceIObjectCollectionReceiver<T>
-
add
public void add(java.lang.Iterable<T> objects)
- Specified by:
addin interfaceIObjectCollectionReceiver<T>
-
remove
public void remove(T... objects)
- Specified by:
removein interfaceIMutableObjectCollection<T>
-
remove
public void remove(java.lang.Iterable<T> objects)
- Specified by:
removein interfaceIMutableObjectCollection<T>
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfaceIMutableObjectCollection<T>
-
values
public final IObjectIterable<T> values()
- Specified by:
valuesin interfaceIObjectCollection<T>
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmptyin interfaceIObjectCollection<T>
-
iterator
public IObjectIterator<T> iterator()
- Specified by:
iteratorin interfaceIObjectIterable<T>- Specified by:
iteratorin interfacejava.lang.Iterable<T>
-
stream
public IStream<T,java.lang.RuntimeException> stream()
- Specified by:
streamin interfaceIObjectCollection<T>
-
-