cz.cuni.amis.utils.collections
Class LazyMapValuesCollection<VALUE,KEY>
java.lang.Object
cz.cuni.amis.utils.collections.LazyMapValuesCollection<VALUE,KEY>
- All Implemented Interfaces:
- java.lang.Iterable<VALUE>, java.util.Collection<VALUE>
public class LazyMapValuesCollection<VALUE,KEY>
- extends java.lang.Object
- implements java.util.Collection<VALUE>
Read-only Collection used for lazy implementation of Map.values().
The items in this collection are backed by the map and Map.get() is used if an object is required.
| 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 |
LazyMapValuesCollection
public LazyMapValuesCollection(AbstractLazyMap<KEY,VALUE> sourceMap)
getBaseMap
public AbstractLazyMap<KEY,VALUE> getBaseMap()
add
public boolean add(VALUE e)
- Specified by:
add in interface java.util.Collection<VALUE>
addAll
public boolean addAll(java.util.Collection<? extends VALUE> c)
- Specified by:
addAll in interface java.util.Collection<VALUE>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<VALUE>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.Collection<VALUE>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll in interface java.util.Collection<VALUE>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<VALUE>
iterator
public java.util.Iterator<VALUE> iterator()
- Specified by:
iterator in interface java.lang.Iterable<VALUE>- Specified by:
iterator in interface java.util.Collection<VALUE>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<VALUE>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<VALUE>
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll in interface java.util.Collection<VALUE>
size
public int size()
- Specified by:
size in interface java.util.Collection<VALUE>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection<VALUE>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface java.util.Collection<VALUE>