Package org.ojalgo.type.keyvalue
Class EntryPair.ObjectByte<K>
- java.lang.Object
-
- org.ojalgo.type.keyvalue.EntryPair.ObjectByte<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.ObjectByte<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 ObjectByte(K key, byte value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(PrimitiveNumber other)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
double
doubleValue()
boolean
equals(java.lang.Object obj)
K
first()
PrimitiveNumber
get(java.lang.Object key)
K
getKey()
int
hashCode()
int
intValue()
java.util.Set<K>
keySet()
K
left()
long
longValue()
java.lang.String
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, floatValue, shortValue
-
-
-
-
Field Detail
-
myKey
private final K myKey
-
myValue
private final byte myValue
-
-
Constructor Detail
-
ObjectByte
ObjectByte(K key, byte value)
-
-
Method Detail
-
byteValue
public byte byteValue()
- Specified by:
byteValue
in interfaceNumberDefinition
-
compareTo
public int compareTo(PrimitiveNumber other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<K>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<K,PrimitiveNumber>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<K,PrimitiveNumber>
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interfaceNumberDefinition
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Map<K,PrimitiveNumber>
- Specified by:
equals
in interfacejava.util.Map.Entry<K,PrimitiveNumber>
- Overrides:
equals
in classjava.lang.Object
-
first
public K first()
- Specified by:
first
in interfaceKeyValue<K,PrimitiveNumber>
-
get
public PrimitiveNumber get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<K,PrimitiveNumber>
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceKeyValue<K,PrimitiveNumber>
- Specified by:
getKey
in interfacejava.util.Map.Entry<K,PrimitiveNumber>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<K,PrimitiveNumber>
- Specified by:
hashCode
in interfacejava.util.Map.Entry<K,PrimitiveNumber>
- Overrides:
hashCode
in classjava.lang.Object
-
intValue
public int intValue()
- Specified by:
intValue
in interfaceNumberDefinition
-
keySet
public java.util.Set<K> keySet()
- Specified by:
keySet
in interfacejava.util.Map<K,PrimitiveNumber>
-
left
public K left()
- Specified by:
left
in interfaceKeyValue<K,PrimitiveNumber>
-
longValue
public long longValue()
- Specified by:
longValue
in interfaceNumberDefinition
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-