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.Serializable
Values 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>
parent
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SingletonValues(SingletonMap<?,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object object)
boolean
isEmpty()
java.util.Iterator<V>
iterator()
int
size()
-
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)
-
-