| Package | Description |
|---|---|
| com.io7m.jranges |
Core functions and types.
|
| Modifier and Type | Field and 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 and Description |
|---|---|
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). |
| Modifier and Type | Method and 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). |
boolean |
RangeInclusiveI.isIncludedIn(RangeInclusiveI other)
Determine if the given range is included in this range.
|
Copyright © 2015 <code@io7m.com> http://io7m.com