Class SingletonMap.SingletonValues<V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<V>
-
- org.apache.commons.collections4.map.SingletonMap.SingletonValues<V>
-
- All Implemented Interfaces:
Serializable,Iterable<V>,Collection<V>,Set<V>
- Enclosing class:
- SingletonMap<K,V>
static class SingletonMap.SingletonValues<V> extends AbstractSet<V> implements Serializable
Values implementation for the SingletonMap. This class is needed as values is a view that must update as the map updates.
-
-
Constructor Summary
Constructors Constructor Description SingletonValues(SingletonMap<?,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(Object object)booleanisEmpty()Iterator<V>iterator()intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, remove, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, containsAll, remove, retainAll, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
SingletonValues
SingletonValues(SingletonMap<?,V> parent)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<V>- Specified by:
sizein interfaceSet<V>- Specified by:
sizein classAbstractCollection<V>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<V>- Specified by:
isEmptyin interfaceSet<V>- Overrides:
isEmptyin classAbstractCollection<V>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceCollection<V>- Specified by:
containsin interfaceSet<V>- Overrides:
containsin classAbstractCollection<V>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<V>- Specified by:
clearin interfaceSet<V>- Overrides:
clearin classAbstractCollection<V>
-
-