Class TiedMapEntry
java.lang.Object
org.apache.commons.collections.keyvalue.TiedMapEntry
- All Implemented Interfaces:
Serializable,Map.Entry,KeyValue
@Deprecated(since="2021-04-30")
public class TiedMapEntry
extends Object
implements Map.Entry, KeyValue, Serializable
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
A
Map.Entry tied to a map underneath.
This can be used to enable a map entry to make changes on the underlying map, however this will probably mess up any iterators.
- Since:
- Commons Collections 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTiedMapEntry(Map map, Object key) Deprecated.Constructs a new entry with the given Map and key. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Compares thisMap.Entrywith anotherMap.Entry.getKey()Deprecated.Gets the key of this entrygetValue()Deprecated.Gets the value of this entry direct from the map.inthashCode()Deprecated.Gets a hashCode compatible with the equals method.Deprecated.Sets the value associated with the key direct onto the map.toString()Deprecated.Gets a string version of the entry.
-
Constructor Details
-
TiedMapEntry
Deprecated.Constructs a new entry with the given Map and key.- Parameters:
map- the mapkey- the key
-
-
Method Details
-
getKey
Deprecated.Gets the key of this entry -
getValue
Deprecated.Gets the value of this entry direct from the map. -
setValue
Deprecated.Sets the value associated with the key direct onto the map.- Specified by:
setValuein interfaceMap.Entry- Parameters:
value- the new value- Returns:
- the old value
- Throws:
IllegalArgumentException- if the value is set to this map entry
-
equals
Deprecated.Compares thisMap.Entrywith anotherMap.Entry.Implemented per API documentation of
Map.Entry.equals(Object) -
hashCode
public int hashCode()Deprecated.Gets a hashCode compatible with the equals method.Implemented per API documentation of
Map.Entry.hashCode() -
toString
Deprecated.Gets a string version of the entry.
-