alun.util
Class MapAsCollection<K,V>
java.lang.Object
alun.util.MapAsCollection<K,V>
- All Implemented Interfaces:
- java.lang.Iterable<K>, java.util.Collection<K>
public class MapAsCollection<K,V>
- extends java.lang.Object
- implements java.util.Collection<K>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
equals, hashCode |
MapAsCollection
public MapAsCollection()
put
public V put(K k,
V v)
get
public V get(java.lang.Object k)
values
public java.util.Collection<V> values()
add
public boolean add(K x)
- Specified by:
add in interface java.util.Collection<K>
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll in interface java.util.Collection<K>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<K>
addAll
public boolean addAll(java.util.Collection<? extends K> c)
- Specified by:
addAll in interface java.util.Collection<K>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll in interface java.util.Collection<K>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.Collection<K>
remove
public boolean remove(java.lang.Object x)
- Specified by:
remove in interface java.util.Collection<K>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<K>
toArray
public <T> T[] toArray(T[] x)
- Specified by:
toArray in interface java.util.Collection<K>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection<K>
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iterator in interface java.lang.Iterable<K>- Specified by:
iterator in interface java.util.Collection<K>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<K>
size
public int size()
- Specified by:
size in interface java.util.Collection<K>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object