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:
java.io.Serializable,java.lang.Iterable<V>,java.util.Collection<V>,java.util.Set<V>
- Enclosing class:
- SingletonMap<K,V>
static class SingletonMap.SingletonValues<V> extends java.util.AbstractSet<V> implements java.io.SerializableValues implementation for the SingletonMap. This class is needed as values is a view that must update as the map updates.
-
-
Field Summary
Fields Modifier and Type Field Description private SingletonMap<?,V>parentprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SingletonValues(SingletonMap<?,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(java.lang.Object object)booleanisEmpty()java.util.Iterator<V>iterator()intsize()-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, remove, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
parent
private final SingletonMap<?,V> parent
-
-
Constructor Detail
-
SingletonValues
SingletonValues(SingletonMap<?,V> parent)
-
-