Package org.ojalgo.type
Class PrimitiveNumber.BoxedInt
java.lang.Object
org.ojalgo.type.PrimitiveNumber.BoxedInt
- All Implemented Interfaces:
Comparable<PrimitiveNumber>
,ComparableNumber<PrimitiveNumber>
,NumberDefinition
,PrimitiveNumber
- Enclosing interface:
PrimitiveNumber
-
Nested Class Summary
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 TypeMethodDescriptionint
compareTo
(PrimitiveNumber other) double
float
int
intValue()
long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
value
public final int value
-
-
Constructor Details
-
BoxedInt
BoxedInt(int value)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PrimitiveNumber>
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
floatValue
public float floatValue()- Specified by:
floatValue
in interfaceNumberDefinition
-
intValue
public int intValue()- Specified by:
intValue
in interfaceNumberDefinition
-
longValue
public long longValue()- Specified by:
longValue
in interfaceNumberDefinition
-