Package org.ojalgo.type.keyvalue
Class EntryPair.ObjectInt<K>
java.lang.Object
org.ojalgo.type.keyvalue.EntryPair.ObjectInt<K>
- All Implemented Interfaces:
Comparable<PrimitiveNumber>
,Map<K,
,PrimitiveNumber> Map.Entry<K,
,PrimitiveNumber> ComparableNumber<PrimitiveNumber>
,EntryPair<K,
,PrimitiveNumber> EntryPair.KeyedPrimitive<K>
,KeyValue<K,
,PrimitiveNumber> NumberDefinition
,PrimitiveNumber
public static final class EntryPair.ObjectInt<K>
extends Object
implements EntryPair.KeyedPrimitive<K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.type.keyvalue.EntryPair
EntryPair.KeyedPrimitive<K>, EntryPair.ObjectByte<K>, EntryPair.ObjectDouble<K>, EntryPair.ObjectFloat<K>, EntryPair.ObjectInt<K>, EntryPair.ObjectLong<K>, EntryPair.ObjectObject<K,
V>, EntryPair.ObjectShort<K> Nested classes/interfaces inherited from interface org.ojalgo.type.keyvalue.KeyValue
KeyValue.Dual<T>
Nested classes/interfaces inherited from interface org.ojalgo.type.PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(PrimitiveNumber other) boolean
containsKey
(Object key) boolean
containsValue
(Object value) double
boolean
first()
getKey()
int
hashCode()
int
intValue()
keySet()
left()
long
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.type.keyvalue.EntryPair
asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asValueTo, clear, entrySet, isEmpty, put, putAll, remove, setValue, size
Methods inherited from interface org.ojalgo.type.keyvalue.EntryPair.KeyedPrimitive
getValue, right, second, values
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, floatValue, shortValue
-
Field Details
-
myKey
-
myValue
private final int myValue
-
-
Constructor Details
-
ObjectInt
ObjectInt(K key, int value)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<K>
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
PrimitiveNumber>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
PrimitiveNumber>
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
equals
- Specified by:
equals
in interfaceMap<K,
PrimitiveNumber> - Specified by:
equals
in interfaceMap.Entry<K,
PrimitiveNumber> - Overrides:
equals
in classObject
-
first
- Specified by:
first
in interfaceKeyValue<K,
PrimitiveNumber>
-
get
- Specified by:
get
in interfaceMap<K,
PrimitiveNumber>
-
getKey
- Specified by:
getKey
in interfaceKeyValue<K,
PrimitiveNumber> - Specified by:
getKey
in interfaceMap.Entry<K,
PrimitiveNumber>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceMap<K,
PrimitiveNumber> - Specified by:
hashCode
in interfaceMap.Entry<K,
PrimitiveNumber> - Overrides:
hashCode
in classObject
-
intValue
public int intValue()- Specified by:
intValue
in interfaceNumberDefinition
-
keySet
- Specified by:
keySet
in interfaceMap<K,
PrimitiveNumber>
-
left
- Specified by:
left
in interfaceKeyValue<K,
PrimitiveNumber>
-
longValue
public long longValue()- Specified by:
longValue
in interfaceNumberDefinition
-
toString
-