com.ochafik.util
Class CompoundCollection<U>
java.lang.Object
com.ochafik.util.CompoundCollection<U>
- All Implemented Interfaces:
- Iterable<U>, Collection<U>
public class CompoundCollection<U>
- extends Object
- implements Collection<U>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundCollection
public CompoundCollection()
CompoundCollection
public CompoundCollection(Collection<Collection<? extends U>> lists)
CompoundCollection
public CompoundCollection(Collection<? extends U>... lists)
addComponent
public void addComponent(Collection<U> col)
removeComponent
public boolean removeComponent(Collection<U> col)
size
public int size()
- Specified by:
size
in interface Collection<U>
clearComponents
public void clearComponents()
clear
public void clear()
- Specified by:
clear
in interface Collection<U>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<U>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<U>
toArray
public <T> T[] toArray(T[] objects)
- Specified by:
toArray
in interface Collection<U>
add
@Deprecated
public boolean add(U object)
- Deprecated.
- Specified by:
add
in interface Collection<U>
contains
public boolean contains(Object object)
- Specified by:
contains
in interface Collection<U>
remove
public boolean remove(Object object)
- Specified by:
remove
in interface Collection<U>
addAll
@Deprecated
public boolean addAll(Collection<? extends U> col)
- Deprecated.
- Specified by:
addAll
in interface Collection<U>
containsAll
public boolean containsAll(Collection<?> col)
- Specified by:
containsAll
in interface Collection<U>
removeAll
public boolean removeAll(Collection<?> col)
- Specified by:
removeAll
in interface Collection<U>
retainAll
public boolean retainAll(Collection<?> col)
- Specified by:
retainAll
in interface Collection<U>
iterator
public Iterator<U> iterator()
- Specified by:
iterator
in interface Iterable<U>
- Specified by:
iterator
in interface Collection<U>
Copyright © 2009. All Rights Reserved.