Package org.meeuw.math.abstractalgebra
Class Cardinality
- java.lang.Object
-
- org.meeuw.math.abstractalgebra.Cardinality
-
- All Implemented Interfaces:
Comparable<Cardinality>
public class Cardinality extends Object implements Comparable<Cardinality>
Represents the concept of 'Cardinality' of anAlgebraicStructure
. i.e. the number of elements, but it also supports the 'infinite' valuesALEPH_0
andALEPH_1
.- Since:
- 0.4
- Author:
- Michiel Meeuwissen
-
-
Field Summary
Fields Modifier and Type Field Description static Cardinality
ALEPH_0
static Cardinality
ALEPH_1
static Cardinality
C
The cardinality of the continuum.
-
Constructor Summary
Constructors Constructor Description Cardinality(long value)
-
-
-
Field Detail
-
ALEPH_0
public static final Cardinality ALEPH_0
-
ALEPH_1
public static final Cardinality ALEPH_1
-
C
public static final Cardinality C
The cardinality of the continuum. According to the continuum hypothesis this equalsALEPH_1
-
-
Method Detail
-
compareTo
public int compareTo(Cardinality o)
- Specified by:
compareTo
in interfaceComparable<Cardinality>
-
-