Top Fields Constructors Methods
com.mchange.v1.util

public Class SimpleMapEntry

extends AbstractMapEntry
implements Entry
Class Inheritance
All Implemented Interfaces
java.util.Map.Entry
Imports
java.util.Map

Field Summary

Modifier and TypeField and Description
pack-priv Object
pack-priv Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getKey()

Implements abstract com.mchange.v1.util.AbstractMapEntry.getKey.

Implements java.util.Map.Entry.getKey.

Returns the key corresponding to this entry.

public Object
getValue()

Implements abstract com.mchange.v1.util.AbstractMapEntry.getValue.

Implements java.util.Map.Entry.getValue.

Returns the value corresponding to this entry.

public Object
setValue(Object
new value to be stored in this entry
value
)

Implements abstract com.mchange.v1.util.AbstractMapEntry.setValue.

Implements java.util.Map.Entry.setValue.

Replaces the value corresponding to this entry with the specified value (optional operation).

Inherited from com.mchange.v1.util.AbstractMapEntry:
equalshashCode

Field Detail

keyback to summary
pack-priv Object key
valueback to summary
pack-priv Object value

Constructor Detail

SimpleMapEntryback to summary
public SimpleMapEntry(Object key, Object value)

Method Detail

getKeyback to summary
public Object getKey()

Implements abstract com.mchange.v1.util.AbstractMapEntry.getKey.

Implements java.util.Map.Entry.getKey.

Doc from java.util.Map.Entry.getKey.

Returns the key corresponding to this entry.

Returns:Object

the key corresponding to this entry

getValueback to summary
public Object getValue()

Implements abstract com.mchange.v1.util.AbstractMapEntry.getValue.

Implements java.util.Map.Entry.getValue.

Doc from java.util.Map.Entry.getValue.

Returns the value corresponding to this entry. If the mapping has been removed from the backing map (by the iterator's remove operation), the results of this call are undefined.

Returns:Object

the value corresponding to this entry

setValueback to summary
public Object setValue(Object value)

Implements abstract com.mchange.v1.util.AbstractMapEntry.setValue.

Implements java.util.Map.Entry.setValue.

Doc from java.util.Map.Entry.setValue.

Replaces the value corresponding to this entry with the specified value (optional operation). (Writes through to the map.) The behavior of this call is undefined if the mapping has already been removed from the map (by the iterator's remove operation).

Parameters
value:Object

new value to be stored in this entry

Returns:Object

old value corresponding to the entry