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