java.lang.Object
org.ojalgo.type.keyvalue.EntryPair.ObjectFloat<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.ObjectFloat<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 TypeMethodDescriptionintcompareTo(PrimitiveNumber other) booleancontainsKey(Object key) booleancontainsValue(Object value) doublebooleanfirst()floatgetKey()inthashCode()keySet()left()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.type.keyvalue.EntryPair
asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asValueTo, clear, entrySet, isEmpty, put, putAll, remove, setValue, sizeMethods inherited from interface org.ojalgo.type.keyvalue.EntryPair.KeyedPrimitive
getValue, right, second, valuesMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, intValue, longValue, shortValue
-
Field Details
-
myKey
-
myValue
private final float myValue
-
-
Constructor Details
-
ObjectFloat
ObjectFloat(K key, float 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
- Specified by:
equalsin interfaceMap<K,PrimitiveNumber> - Specified by:
equalsin interfaceMap.Entry<K,PrimitiveNumber> - Overrides:
equalsin classObject
-
first
- Specified by:
firstin interfaceKeyValue<K,PrimitiveNumber>
-
floatValue
public float floatValue()- Specified by:
floatValuein interfaceNumberDefinition
-
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
-
keySet
- Specified by:
keySetin interfaceMap<K,PrimitiveNumber>
-
left
- Specified by:
leftin interfaceKeyValue<K,PrimitiveNumber>
-
toString
-