| Package | Description |
|---|---|
| org.atlanmod.commons.collect |
Provides utility classes and methods related to
Collections and arrays. |
| Modifier and Type | Method and Description |
|---|---|
static IntRange |
IntRange.all()
Creates a range that contains every value of type
C. |
static IntRange |
IntRange.and(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by both ranges.
|
static IntRange |
IntRange.atLeast(int lower)
Creates a range that contains all values greater than or equal to
lower. |
static IntRange |
IntRange.atMost(int upper)
Creates a range that contains all values less than or equal to
upper. |
static IntRange |
IntRange.closed(int lower,
int upper)
Creates a range that contains all values greater than or equal to
lower and less than or equal to upper. |
static IntRange |
IntRange.closedOpen(int lower,
int upper)
Creates a range that contains all values greater than or equal to
lower and strictly less than upper. |
static IntRange |
IntRange.empty()
Creates a range that does not contain any value.
|
static IntRange |
IntRange.greaterThan(int lower)
Creates a range that contains all values strictly greater than
lower. |
static IntRange |
IntRange.lessThan(int upper)
Creates a range that contains all values strictly less than
upper. |
static IntRange |
IntRange.open(int lower,
int upper)
Creates a range that contains all values strictly greater than
lower and strictly less than upper. |
static IntRange |
IntRange.openClosed(int lower,
int upper)
Creates a range that contains all values strictly greater than
lower and less than or equal to upper. |
static IntRange |
IntRange.or(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by at least one range.
|
static IntRange |
IntRange.singleton(int value)
Creates a range that contains only the given
value. |
static IntRange |
IntRange.xor(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by one range, but not another.
|
| Modifier and Type | Method and Description |
|---|---|
static IntRange |
IntRange.and(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by both ranges.
|
static IntRange |
IntRange.or(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by at least one range.
|
static IntRange |
IntRange.xor(IntRange r1,
IntRange r2)
Creates a range that contains all values enclosed by one range, but not another.
|
Copyright © 2017–2019 Atlanmod. All rights reserved.