public class Units extends Quantity
Unit
represents everything which can be counted. It
has a default Metric
of "Unit" and default
RoundDownStrategy
which rounds to the nearest integer value.Modifier and Type | Field and Description |
---|---|
static Metric |
METRIC
Convenience instance, which can be used for countable objects.
|
static Units |
ONE
Convenience instance of 1 unit.
|
static Units |
TEN
Convenience instance of 10 units.
|
static Units |
ZERO
Convenience instance of 0 units.
|
Modifier and Type | Method and Description |
---|---|
static Units |
of(long amount) |
public static final Metric METRIC
public static final Units ZERO
public static final Units ONE
public static final Units TEN
public static Units of(long amount)