public class Nat
extends util.object.Wrapper<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<java.lang.Long> |
isValid
Test to check if a
long can be used to instantiate a Nat . |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<Nat> |
from(long value)
Instantiate a
Nat from the given value only if it's not negative. |
static Nat |
of(long nonNegativeValue)
Instantiate a
Nat from a non-negative value. |
public static final java.util.function.Predicate<java.lang.Long> isValid
long
can be used to instantiate a Nat
.