| Package | Description |
|---|---|
| com.io7m.jranges |
Core functions and types.
|
| Modifier and Type | Field | Description |
|---|---|---|
static RangeInclusiveI |
Ranges.NATURAL_INTEGER |
The inclusive range of natural integers,
[0, {@link
Integer#MAX_VALUE}]. |
static RangeInclusiveI |
Ranges.POSITIVE_INTEGER |
The inclusive range of positive integers,
[1, {@link
Integer#MAX_VALUE}]. |
| Modifier and Type | Method | Description |
|---|---|---|
RangeInclusiveI |
RangeInclusiveI.Builder.build() |
Builds a new
RangeInclusiveI. |
static RangeInclusiveI |
RangeCheck.checkRangeIncludedInInteger(RangeInclusiveI inner,
String inner_name,
RangeInclusiveI outer,
String outer_name) |
Assert that
inner (named inner_name) is included in the
given range outer (named outer_name). |
static RangeInclusiveI |
RangeInclusiveI.copyOf(RangeInclusiveIType instance) |
Creates an immutable copy of a
RangeInclusiveIType value. |
static RangeInclusiveI |
RangeInclusiveI.of(int lower,
int upper) |
Construct a new immutable
RangeInclusiveI instance. |
RangeInclusiveI |
RangeInclusiveI.withLower(int value) |
Copy the current immutable object by setting a value for the
lower attribute. |
RangeInclusiveI |
RangeInclusiveI.withUpper(int value) |
Copy the current immutable object by setting a value for the
upper attribute. |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
RangeCheck.checkIncludedInInteger(int x,
String x_name,
RangeInclusiveI range,
String range_name) |
Assert that
x (named x_name) is included in the given
range range (named range_name). |
static RangeInclusiveI |
RangeCheck.checkRangeIncludedInInteger(RangeInclusiveI inner,
String inner_name,
RangeInclusiveI outer,
String outer_name) |
Assert that
inner (named inner_name) is included in the
given range outer (named outer_name). |
default boolean |
RangeInclusiveIType.isIncludedIn(RangeInclusiveI other) |
Determine if the given range is included in this range.
|
Copyright © 2017 <code@io7m.com> http://io7m.com