java.lang.Iterable<K>
, java.util.Collection<K>
ConvertingSet
public class ConvertingCollection<L,K>
extends java.lang.Object
implements java.util.Collection<K>
Constructor | Description |
---|---|
ConvertingCollection(java.util.Collection<L> l,
Converter<L,K> conv) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(K arg0) |
|
boolean |
addAll(java.util.Collection<? extends K> arg0) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
boolean |
isEmpty() |
|
java.util.Iterator<K> |
iterator() |
|
boolean |
remove(java.lang.Object arg0) |
|
boolean |
removeAll(java.util.Collection<?> arg0) |
|
boolean |
retainAll(java.util.Collection<?> arg0) |
|
int |
size() |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] a) |
public boolean addAll(java.util.Collection<? extends K> arg0)
addAll
in interface java.util.Collection<L>
public void clear()
clear
in interface java.util.Collection<L>
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<L>
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<L>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<L>
public java.util.Iterator<K> iterator()
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<L>
public boolean removeAll(java.util.Collection<?> arg0)
removeAll
in interface java.util.Collection<L>
public boolean retainAll(java.util.Collection<?> arg0)
retainAll
in interface java.util.Collection<L>
public int size()
size
in interface java.util.Collection<L>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<L>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<L>