net.ontopia.utils
Class CollectionCollection<T>
java.lang.Object
net.ontopia.utils.CollectionCollection<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>
public class CollectionCollection<T>
- extends Object
- implements Collection<T>
INTERNAL: A collection that works as a facade for multiple
collections. This class is a view onto the wrapped collections. The
view is the sum of all the collections.
colls
protected Collection<Collection<T>> colls
CollectionCollection
public CollectionCollection(Collection<Collection<T>> colls)
clear
public void clear()
- Specified by:
clear
in interface Collection<T>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<T>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<T>
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection<T>
- Overrides:
equals
in class Object
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
- Specified by:
iterator
in interface Collection<T>
size
public int size()
- Specified by:
size
in interface Collection<T>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<T>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface Collection<T>
add
public boolean add(T o)
- Specified by:
add
in interface Collection<T>
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll
in interface Collection<T>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<T>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<T>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<T>
Copyright © 2000-2012 Ontopia.