Class EntryPair.ObjectFloat<K>
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 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()floatgetKey()inthashCode()keySet()left()toString()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, 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
-
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
-
left
- Specified by:
leftin interfaceKeyValue<K, PrimitiveNumber>
-
toString
-