Class UnmodifiableKeyValueList<K,V>
java.lang.Object
net.thevpc.common.collections.UnmodifiableCollection<V>
net.thevpc.common.collections.UnmodifiableList<V>
net.thevpc.common.collections.UnmodifiableKeyValueList<K,V>
- All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>, List<V>, SequencedCollection<V>, Collection2, KeyValueList<K,V>
Created by vpc on 8/25/16.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) booleancontainsMappedValue(V value) Returns true if this map maps one or more keys to the specified value.booleancontainsValue(Object value) Returns true if this list contains the specified element.getByValue(V value) returns, it it exists, the value in this list with the same key for value paramkeySet()removeByKey(K k) Methods inherited from class UnmodifiableList
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subListMethods inherited from class UnmodifiableCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface KeyValueList
append, appendAllMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
getByKey
-
removeByKey
- Specified by:
removeByKeyin interfaceKeyValueList<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceKeyValueList<K,V>
-
containsMappedValue
Description copied from interface:KeyValueListReturns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface.- Specified by:
containsMappedValuein interfaceKeyValueList<K,V> - Parameters:
value- value whose presence in this map is to be tested- Returns:
- true if this map maps one or more keys to the specified value
-
getByValue
Description copied from interface:KeyValueListreturns, it it exists, the value in this list with the same key for value param- Specified by:
getByValuein interfaceKeyValueList<K,V> - Parameters:
value- value whose key presence in this map is to be tested- Returns:
- value of the list equivalent to the given value
-
containsValue
Description copied from interface:KeyValueListReturns true if this list contains the specified element. More formally, returns true if and only if this list contains at least one element e such that (o==null ? e==null : o.equals(e)).- Specified by:
containsValuein interfaceKeyValueList<K,V> - Parameters:
value- element whose presence in this list is to be tested- Returns:
- true if this list contains the specified element
-
keySet
-