Class EntryPair.ObjectLong<K>
java.lang.Object
org.ojalgo.type.keyvalue.EntryPair.ObjectLong<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.ObjectLong<K>
extends Object
implements EntryPair.KeyedPrimitive<K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 KeyValue
KeyValue.Dual<T>Nested classes/interfaces inherited from interface PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PrimitiveNumber other) booleancontainsKey(Object key) booleancontainsValue(Object value) doublebooleanfirst()getKey()inthashCode()intintValue()keySet()left()longtoString()Methods inherited from interface EntryPair
asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asValueTo, clear, entrySet, isEmpty, put, putAll, remove, setValue, sizeMethods inherited from interface EntryPair.KeyedPrimitive
getValue, right, second, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface NumberDefinition
booleanValue, byteValue, floatValue, shortValue
-
Field Details
-
myKey
-
myValue
private final long myValue
-
-
Constructor Details
-
ObjectLong
ObjectLong(K key, long value)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<K>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K, PrimitiveNumber>
-
containsValue
- Specified by:
containsValuein interfaceMap<K, PrimitiveNumber>
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceNumberDefinition
-
equals
-
first
- Specified by:
firstin interfaceKeyValue<K, PrimitiveNumber>
-
get
- Specified by:
getin interfaceMap<K, PrimitiveNumber>
-
getKey
- Specified by:
getKeyin interfaceKeyValue<K, PrimitiveNumber>- Specified by:
getKeyin interfaceMap.Entry<K, PrimitiveNumber>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMap<K, PrimitiveNumber>- Specified by:
hashCodein interfaceMap.Entry<K, PrimitiveNumber>- Overrides:
hashCodein classObject
-
intValue
public int intValue()- Specified by:
intValuein interfaceNumberDefinition
-
keySet
-
left
- Specified by:
leftin interfaceKeyValue<K, PrimitiveNumber>
-
longValue
public long longValue()- Specified by:
longValuein interfaceNumberDefinition
-
toString
-