AbstractMapEntry

Undocumented in source.

Constructors

this
this(K key, V value)
Undocumented in source.

Members

Aliases

opCmp
alias opCmp = Object.opCmp
Undocumented in source.

Functions

getKey
K getKey()

Returns the key.

getValue
V getValue()

Returns the value associated with the key.

opCmp
int opCmp(MapEntry!(K, V) o)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(IObject o)

Compares the specified object with this entry for equality. Returns {@code true} if the given object is also a map entry and the two entries represent the same mapping. More formally, two entries {@code e1} and {@code e2} represent the same mapping if<pre> (e1.getKey()==null ? e2.getKey()==null : e1.getKey().equals(e2.getKey())) &amp;&amp; (e1.getValue()==null ? e2.getValue()==null : e1.getValue().equals(e2.getValue()))</pre> This ensures that the {@code equals} method works properly across different implementations of the {@code MapEntry} interface.

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
setValue
V setValue(V value)

Replaces the value currently associated with the key with the given value.

toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns a string representation of this map entry. This implementation returns the string representation of this entry's key followed by the equals character ("<tt>=</tt>") followed by the string representation of this entry's value.

Variables

key
K key;
Undocumented in source.
value
V value;
Undocumented in source.

Meta