protected static class AbstractIntMap.SimpleEntry<V> extends Object implements IntMap.Entry<V>
| Constructor and Description |
|---|
SimpleEntry(IntMap.Entry<V> e) |
SimpleEntry(int key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the specified object with this entry for equality.
|
int |
getKey()
Returns the key corresponding to this entry.
|
V |
getValue()
Returns the value corresponding to this entry.
|
int |
hashCode() |
String |
toString() |
public SimpleEntry(int key,
V value)
public SimpleEntry(IntMap.Entry<V> e)
public int getKey()
IntMap.EntrygetKey in interface IntMap.Entry<V>public V getValue()
IntMap.EntrygetValue in interface IntMap.Entry<V>public boolean equals(Object o)
IntMap.Entry
(e1.getKey()==null ?
e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
(e1.getValue()==null ?
e2.getValue()==null : e1.getValue().equals(e2.getValue()))
This ensures that the equals method works properly across
different implementations of the Map.Entry interface.equals in interface IntMap.Entry<V>equals in class Objecto - object to be compared for equality with this map entry.Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.