- java.lang.Object
-
- org.ojalgo.type.keyvalue.EntryPair.ObjectFloat<K>
-
- All Implemented Interfaces:
java.lang.Comparable<PrimitiveNumber>,java.util.Map<K,PrimitiveNumber>,java.util.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 java.lang.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 java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.ojalgo.type.PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort
-
-
Constructor Summary
Constructors Constructor Description ObjectFloat(K key, float value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PrimitiveNumber other)booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)doubledoubleValue()booleanequals(java.lang.Object obj)Kfirst()floatfloatValue()PrimitiveNumberget(java.lang.Object key)KgetKey()inthashCode()java.util.Set<K>keySet()Kleft()java.lang.StringtoString()-
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, intValue, longValue, shortValue
-
-
-
-
Field Detail
-
myKey
private final K myKey
-
myValue
private final float myValue
-
-
Constructor Detail
-
ObjectFloat
ObjectFloat(K key, float value)
-
-
Method Detail
-
compareTo
public int compareTo(PrimitiveNumber other)
- Specified by:
compareToin interfacejava.lang.Comparable<K>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map<K,PrimitiveNumber>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map<K,PrimitiveNumber>
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein interfaceNumberDefinition
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Map<K,PrimitiveNumber>- Specified by:
equalsin interfacejava.util.Map.Entry<K,PrimitiveNumber>- Overrides:
equalsin classjava.lang.Object
-
first
public K first()
- Specified by:
firstin interfaceKeyValue<K,PrimitiveNumber>
-
floatValue
public float floatValue()
- Specified by:
floatValuein interfaceNumberDefinition
-
get
public PrimitiveNumber get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map<K,PrimitiveNumber>
-
getKey
public K getKey()
- Specified by:
getKeyin interfaceKeyValue<K,PrimitiveNumber>- Specified by:
getKeyin interfacejava.util.Map.Entry<K,PrimitiveNumber>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<K,PrimitiveNumber>- Specified by:
hashCodein interfacejava.util.Map.Entry<K,PrimitiveNumber>- Overrides:
hashCodein classjava.lang.Object
-
keySet
public java.util.Set<K> keySet()
- Specified by:
keySetin interfacejava.util.Map<K,PrimitiveNumber>
-
left
public K left()
- Specified by:
leftin interfaceKeyValue<K,PrimitiveNumber>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-