Class MapToolkit.IntEntry<K>
- java.lang.Object
-
- org.openjdk.jmc.common.collection.EntryHashMap.Entry<K>
-
- org.openjdk.jmc.common.collection.MapToolkit.IntEntry<K>
-
- Type Parameters:
K
- key type
- All Implemented Interfaces:
java.lang.Comparable<MapToolkit.IntEntry<K>>
- Enclosing class:
- MapToolkit
public static class MapToolkit.IntEntry<K> extends EntryHashMap.Entry<K> implements java.lang.Comparable<MapToolkit.IntEntry<K>>
A map entry used to store integer values. Used by maps created withMapToolkit.createIntMap(int, float)
.
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MapToolkit.IntEntry<K> o)
boolean
equals(java.lang.Object obj)
int
getValue()
Get the entry value.int
hashCode()
void
setValue(int value)
Set the entry value.-
Methods inherited from class org.openjdk.jmc.common.collection.EntryHashMap.Entry
getKey
-
-
-
-
Constructor Detail
-
IntEntry
private IntEntry(K key)
-
-
Method Detail
-
compareTo
public int compareTo(MapToolkit.IntEntry<K> o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<K>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getValue
public int getValue()
Get the entry value.- Returns:
- the value corresponding to this entry
-
setValue
public void setValue(int value)
Set the entry value.- Parameters:
value
- the value corresponding to this entry
-
-