- java.lang.Object
-
- edu.uci.ics.jung.algorithms.util.BasicMapEntry<K,V>
-
- Type Parameters:
K - the key type
V - the value type
- All Implemented Interfaces:
- java.util.Map.Entry<K,V>
public class BasicMapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>
An simple minimal implementation of Map.Entry.
-
-
Constructor Summary
Constructors
| Constructor and Description |
BasicMapEntry(K k,
V v)
Create new entry.
|
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map.Entry
comparingByKey, comparingByKey, comparingByValue, comparingByValue
-
-
Method Detail
-
getKey
public K getKey()
- Specified by:
getKey in interface java.util.Map.Entry<K,V>
-
getValue
public V getValue()
- Specified by:
getValue in interface java.util.Map.Entry<K,V>
-
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Map.Entry<K,V>
- Overrides:
hashCode in class java.lang.Object
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence