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 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) doublefloatintintValue()longMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
value
public final int value
-
-
Constructor Details
-
BoxedInt
BoxedInt(int value)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PrimitiveNumber>
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceNumberDefinition
-
floatValue
public float floatValue()- Specified by:
floatValuein interfaceNumberDefinition
-
intValue
public int intValue()- Specified by:
intValuein interfaceNumberDefinition
-
longValue
public long longValue()- Specified by:
longValuein interfaceNumberDefinition
-