| Package | Description |
|---|---|
| com.io7m.junsigned.ranges |
An extension of the
jranges package for unsigned integers. |
| Modifier and Type | Field | Description |
|---|---|---|
static UnsignedRangeInclusiveI |
UnsignedRanges.UNSIGNED_NATURAL_INTEGER |
The inclusive range of natural unsigned integers,
[0, 4294967295]. |
static UnsignedRangeInclusiveI |
UnsignedRanges.UNSIGNED_POSITIVE_INTEGER |
The inclusive range of positive integers,
[1, 4294967295]. |
| Modifier and Type | Method | Description |
|---|---|---|
UnsignedRangeInclusiveI |
UnsignedRangeInclusiveI.Builder.build() |
Builds a new
UnsignedRangeInclusiveI. |
static UnsignedRangeInclusiveI |
UnsignedRangeCheck.checkRangeIncludedInInteger(UnsignedRangeInclusiveI inner,
String inner_name,
UnsignedRangeInclusiveI outer,
String outer_name) |
Assert that
inner (named inner_name) is included in the
given range outer (named outer_name). |
static UnsignedRangeInclusiveI |
UnsignedRangeInclusiveI.copyOf(UnsignedRangeInclusiveIType instance) |
Creates an immutable copy of a
UnsignedRangeInclusiveIType value. |
static UnsignedRangeInclusiveI |
UnsignedRangeInclusiveI.of(int lower,
int upper) |
Construct a new immutable
UnsignedRangeInclusiveI instance. |
UnsignedRangeInclusiveI |
UnsignedRangeInclusiveI.withLower(int value) |
Copy the current immutable object by setting a value for the
lower attribute. |
UnsignedRangeInclusiveI |
UnsignedRangeInclusiveI.withUpper(int value) |
Copy the current immutable object by setting a value for the
upper attribute. |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
UnsignedRangeCheck.checkIncludedInInteger(int x,
String x_name,
UnsignedRangeInclusiveI range,
String range_name) |
Assert that
x (named x_name) is included in the given
range range (named range_name). |
static UnsignedRangeInclusiveI |
UnsignedRangeCheck.checkRangeIncludedInInteger(UnsignedRangeInclusiveI inner,
String inner_name,
UnsignedRangeInclusiveI outer,
String outer_name) |
Assert that
inner (named inner_name) is included in the
given range outer (named outer_name). |
default boolean |
UnsignedRangeInclusiveIType.isIncludedIn(UnsignedRangeInclusiveI other) |
Determine if the given range is included in this range.
|
Copyright © 2017 <code@io7m.com> http://io7m.com