com.ochafik.util
Class CompoundCollection<U>

java.lang.Object
  extended by com.ochafik.util.CompoundCollection<U>
All Implemented Interfaces:
Iterable<U>, Collection<U>

public class CompoundCollection<U>
extends Object
implements Collection<U>


Constructor Summary
CompoundCollection()
           
CompoundCollection(Collection<? extends U>... lists)
           
CompoundCollection(Collection<Collection<? extends U>> lists)
           
 
Method Summary
 boolean add(U object)
          Deprecated. 
 boolean addAll(Collection<? extends U> col)
          Deprecated. 
 void addComponent(Collection<U> col)
           
 void clear()
           
 void clearComponents()
           
 boolean contains(Object object)
           
 boolean containsAll(Collection<?> col)
           
 boolean isEmpty()
           
 Iterator<U> iterator()
           
 boolean remove(Object object)
           
 boolean removeAll(Collection<?> col)
           
 boolean removeComponent(Collection<U> col)
           
 boolean retainAll(Collection<?> col)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] objects)
           
 
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
 

Constructor Detail

CompoundCollection

public CompoundCollection()

CompoundCollection

public CompoundCollection(Collection<Collection<? extends U>> lists)

CompoundCollection

public CompoundCollection(Collection<? extends U>... lists)
Method Detail

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.