Package de.xima.fc.common
Class Unit
- java.lang.Object
-
- de.xima.fc.common.Unit
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Unit>
public final class Unit extends Object implements Serializable, Cloneable, Comparable<Unit>
TheUnit
class represents the unit datatype with only one member (one possible value).The unit type is the terminal object in the category of types and typed functions. It should not be confused with the zero or empty type
Void
, which allows no values and is the initial object in this category. Similarly,Boolean
is the type with two values.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Detail
-
UNIT
public static final Unit UNIT
The one and only instance of the unit data type.
-
-
Method Detail
-
compareTo
public int compareTo(Unit other)
- Specified by:
compareTo
in interfaceComparable<Unit>
-
-