Package org.apache.commons.collections4
Interface Put<K,V>
-
- All Known Subinterfaces:
BidiMap<K,V>,BoundedMap<K,V>,IterableMap<K,V>,IterableSortedMap<K,V>,MultiMap<K,V>,OrderedBidiMap<K,V>,OrderedMap<K,V>,SortedBidiMap<K,V>,Trie<K,V>
- All Known Implementing Classes:
AbstractBidiMapDecorator,AbstractBitwiseTrie,AbstractDualBidiMap,AbstractHashedMap,AbstractIterableMap,AbstractLinkedMap,AbstractMapDecorator,AbstractOrderedBidiMapDecorator,AbstractOrderedMapDecorator,AbstractReferenceMap,AbstractSortedBidiMapDecorator,AbstractSortedMapDecorator,CaseInsensitiveMap,CompositeMap,DefaultedMap,DualHashBidiMap,DualLinkedHashBidiMap,DualTreeBidiMap,DualTreeBidiMap.ViewMap,FixedSizeMap,FixedSizeSortedMap,Flat3Map,HashedMap,LazyMap,LazySortedMap,LinkedMap,ListOrderedMap,LRUMap,MultiKeyMap,MultiValueMap,PassiveExpiringMap,PatriciaTrie,PredicatedMap,PredicatedSortedMap,ReferenceIdentityMap,ReferenceMap,SingletonMap,StaticBucketMap,TransformedMap,TransformedSortedMap,TransformedSplitMap,TreeBidiMap,UnmodifiableBidiMap,UnmodifiableMap,UnmodifiableOrderedBidiMap,UnmodifiableOrderedMap,UnmodifiableSortedBidiMap,UnmodifiableSortedMap,UnmodifiableTrie
public interface Put<K,V>The "write" subset of theMapinterface.NOTE: in the original
Mapinterface,Map.put(Object, Object)is known to have the same return type asMap.get(Object), namelyV.Putmakes no assumptions in this regard (there is no association with, nor even knowledge of, a "reading" interface) and thus definesput(Object, Object)as returningObject.- Since:
- 4.0
- Version:
- $Id: Put.java 1543257 2013-11-19 00:45:55Z ggregory $
- See Also:
Get
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()java.lang.Objectput(K key, V value)Note that the return type is Object, rather than V as in the Map interface.voidputAll(java.util.Map<? extends K,? extends V> t)
-