Class AbstractNumberType<T extends AbstractNumberType<T>>
java.lang.Object
java.lang.Number
de.espirit.firstspirit.common.number.AbstractNumberType<T>
- All Implemented Interfaces:
ValueOfContractor
,Serializable
,Comparable<T>
- Direct Known Subclasses:
PositiveInteger
@NonExtendable
public abstract class AbstractNumberType<T extends AbstractNumberType<T>>
extends Number
implements ValueOfContractor, Comparable<T>
Generic class for defining number facades.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.common.text.ValueOfContractor
ValueOfContractor.Invoke
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
AbstractNumberType
public AbstractNumberType()
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends AbstractNumberType<T>>
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
equals
-
hashCode
public int hashCode() -
toString
-