com.ochafik.util
Class CollectionAdapter<U,V>
java.lang.Object
java.util.AbstractCollection<V>
com.ochafik.util.CollectionAdapter<U,V>
- All Implemented Interfaces:
- Iterable<V>, Collection<V>
public class CollectionAdapter<U,V>
- extends AbstractCollection<V>
collection
protected Collection<U> collection
adapter
protected Adapter<U,V> adapter
CollectionAdapter
public CollectionAdapter(Collection<U> collection,
Adapter<U,V> adapter)
iterator
public Iterator<V> iterator()
- Specified by:
iterator
in interface Iterable<V>
- Specified by:
iterator
in interface Collection<V>
- Specified by:
iterator
in class AbstractCollection<V>
size
public int size()
- Specified by:
size
in interface Collection<V>
- Specified by:
size
in class AbstractCollection<V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<V>
- Overrides:
isEmpty
in class AbstractCollection<V>
clear
public void clear()
- Specified by:
clear
in interface Collection<V>
- Overrides:
clear
in class AbstractCollection<V>
add
public boolean add(V o)
- Specified by:
add
in interface Collection<V>
- Overrides:
add
in class AbstractCollection<V>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<V>
- Overrides:
contains
in class AbstractCollection<V>
Copyright © 2009. All Rights Reserved.