| Package | Description |
|---|---|
| org.datavec.dataframe.util.collections |
| Modifier and Type | Method and Description |
|---|---|
static IntRange |
IntRange.all()
Returns a range that contains every value of type
int. |
static IntRange |
IntRange.atLeast(int endpoint)
Returns a range that contains all values greater than or equal to
endpoint. |
static IntRange |
IntRange.atMost(int endpoint)
Returns a range that contains all values less than or equal to
endpoint. |
IntRange |
IntRange.canonical(org.datavec.dataframe.util.collections.IntegerDomain domain)
Returns the canonical form of this range in the given domain.
|
static IntRange |
IntRange.closed(int lower,
int upper)
Returns 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)
Returns a range that contains all values greater than or equal to
lower and strictly less than upper. |
static IntRange |
IntRange.downTo(int endpoint,
com.google.common.collect.BoundType boundType)
Returns a range from the given endpoint, which may be either inclusive
(closed) or exclusive (open), with no upper bound.
|
static IntRange |
IntRange.encloseAll(it.unimi.dsi.fastutil.ints.IntCollection values)
Returns the minimal range that
contains all of the given values.
|
static IntRange |
IntRange.greaterThan(int endpoint)
Returns a range that contains all values strictly greater than
endpoint. |
IntRange |
IntRange.intersection(IntRange connectedRange)
Returns the maximal range enclosed by both this range and
connectedRange, if such a range exists. |
static IntRange |
IntRange.lessThan(int endpoint)
Returns a range that contains all values strictly less than
endpoint. |
static IntRange |
IntRange.open(int lower,
int upper)
Returns a range that contains all values strictly greater than
lower and strictly less than upper. |
static IntRange |
IntRange.openClosed(int lower,
int upper)
Returns a range that contains all values strictly greater than
lower and less than or equal to upper. |
static IntRange |
IntRange.range(int lower,
com.google.common.collect.BoundType lowerType,
int upper,
com.google.common.collect.BoundType upperType)
Returns a range that contains any value from
lower to upper, where each endpoint may be either inclusive (closed) or exclusive
(open). |
IntRange |
IntRangeSet.rangeContaining(int value)
Returns the unique range from this range set that contains
value, or null if this range set does not contain value. |
IntRange |
IntTreeRangeSet.rangeContaining(int value) |
static IntRange |
IntRange.singleton(int value)
Returns a range that contains only
the given value.
|
IntRange |
IntRangeSet.span()
Returns the minimal range which encloses all ranges
in this range set.
|
IntRange |
IntTreeRangeSet.span() |
IntRange |
IntRange.span(IntRange other)
Returns the minimal range that encloses both this range and
other. |
static IntRange |
IntRange.upTo(int endpoint,
com.google.common.collect.BoundType boundType)
Returns a range with no lower bound up to the given endpoint, which may be
either inclusive (closed) or exclusive (open).
|
| Modifier and Type | Method and Description |
|---|---|
Set<IntRange> |
IntRangeSet.asRanges()
Returns a view of the disconnected ranges that make up this
range set.
|
Set<IntRange> |
IntTreeRangeSet.asRanges() |
| Modifier and Type | Method and Description |
|---|---|
void |
IntRangeSet.add(IntRange range)
Adds the specified range to this
IntRangeSet (optional operation). |
void |
IntTreeRangeSet.add(IntRange rangeToAdd) |
boolean |
IntRange.encloses(IntRange other)
Returns
true if the bounds of other do not extend outside the bounds of this
range. |
boolean |
IntRangeSet.encloses(IntRange otherRange)
Returns
true if there exists a member range in this range set which
encloses the specified range. |
boolean |
IntTreeRangeSet.encloses(IntRange range) |
IntRange |
IntRange.intersection(IntRange connectedRange)
Returns the maximal range enclosed by both this range and
connectedRange, if such a range exists. |
boolean |
IntRangeSet.intersects(IntRange otherRange)
Returns
true if there exists a non-empty range enclosed by both a member range in this
range set and the specified range. |
boolean |
IntRange.isConnected(IntRange other)
Returns
true if there exists a (possibly empty) range which is enclosed by both this range and other. |
void |
IntRangeSet.remove(IntRange range)
Removes the specified range from this
IntRangeSet (optional operation). |
void |
IntTreeRangeSet.remove(IntRange rangeToRemove) |
IntRange |
IntRange.span(IntRange other)
Returns the minimal range that encloses both this range and
other. |
IntRangeSet |
IntRangeSet.subRangeSet(IntRange view)
Returns a view of the intersection of this
IntRangeSet with the specified range. |
IntRangeSet |
IntTreeRangeSet.subRangeSet(IntRange view) |
Copyright © 2017. All rights reserved.