Top Description Methods
org.apache.commons.collections4

public Interface Get<K, V>

Known Direct Subinterfaces
org.apache.commons.collections4.IterableGet
Type Parameters
<K>
the type of the keys in this map
<V>
the type of the values in this map
Imports
java.util.Collection, .Set

The "read" subset of the java.util.Map interface.
Since
4.0
See Also
Put

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this map contains a mapping for the specified key
containsKey
(Object
key whose presence in this map is to be tested
key
)

public boolean

Returns:

true if this map maps one or more keys to the specified value
containsValue
(Object
value whose presence in this map is to be tested
value
)

public Set<Map.Entry<K, V>>

Returns:

a set view of the mappings contained in this map
entrySet
()

public V

Returns:

the value to which the specified key is mapped, or null if this map contains no mapping for the key
get
(Object
the key whose associated value is to be returned
key
)

public boolean

Returns:

true if this map contains no key-value mappings
isEmpty
()

public Set<K>

Returns:

a set view of the keys contained in this map
keySet
()

public V

Returns:

the previous value associated with key, or null if there was no mapping for key.
remove
(Object
key whose mapping is to be removed from the map
key
)

public int

Returns:

the number of key-value mappings in this map
size
()

public Collection<V>

Returns:

a collection view of the values contained in this map
values
()

Method Detail

containsKeyback to summary
public boolean containsKey(Object key)
Parameters
key:Object

key whose presence in this map is to be tested

Returns:boolean

true if this map contains a mapping for the specified key

See Also
java.util.Map#containsKey(Object)
containsValueback to summary
public boolean containsValue(Object value)
Parameters
value:Object

value whose presence in this map is to be tested

Returns:boolean

true if this map maps one or more keys to the specified value

See Also
java.util.Map#containsValue(Object)
entrySetback to summary
public Set<Map.Entry<K, V>> entrySet()
Returns:Set<Map.Entry<K, V>>

a set view of the mappings contained in this map

See Also
java.util.Map#entrySet()
getback to summary
public V get(Object key)
Parameters
key:Object

the key whose associated value is to be returned

Returns:V

the value to which the specified key is mapped, or null if this map contains no mapping for the key

See Also
java.util.Map#get(Object)
isEmptyback to summary
public boolean isEmpty()
Returns:boolean

true if this map contains no key-value mappings

See Also
java.util.Map#isEmpty()
keySetback to summary
public Set<K> keySet()
Returns:Set<K>

a set view of the keys contained in this map

See Also
java.util.Map#keySet()
removeback to summary
public V remove(Object key)
Parameters
key:Object

key whose mapping is to be removed from the map

Returns:V

the previous value associated with key, or null if there was no mapping for key.

See Also
java.util.Map#remove(Object)
sizeback to summary
public int size()
Returns:int

the number of key-value mappings in this map

See Also
java.util.Map#size()
valuesback to summary
public Collection<V> values()
Returns:Collection<V>

a collection view of the values contained in this map

See Also
java.util.Map#values()