Class SingletonMap.SingletonValues<V>
java.lang.Object
java.util.AbstractCollection<V>
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>
Values implementation for the SingletonMap.
This class is needed as values is a view that must update as the map updates.
- Since:
- 3.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
add, addAll, containsAll, remove, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface Set
add, addAll, containsAll, remove, retainAll, spliterator, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
parent
-
-
Constructor Details
-
SingletonValues
SingletonValues(SingletonMap<?, V> parent)
-
-
Method Details
-
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
- 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>
-
iterator
-