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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
Methods inherited from interface java.util.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:
size
in interfaceCollection<V>
- Specified by:
size
in interfaceSet<V>
- Specified by:
size
in classAbstractCollection<V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<V>
- Specified by:
isEmpty
in interfaceSet<V>
- Overrides:
isEmpty
in classAbstractCollection<V>
-
contains
- Specified by:
contains
in interfaceCollection<V>
- Specified by:
contains
in interfaceSet<V>
- Overrides:
contains
in classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<V>
- Specified by:
clear
in interfaceSet<V>
- Overrides:
clear
in classAbstractCollection<V>
-
iterator
-