Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
static ContiguousSet<Integer> |
ContiguousSet.closed(int lower,
int upper)
Returns a nonempty contiguous set containing all
int values from lower
(inclusive) to upper (inclusive). |
static ContiguousSet<Long> |
ContiguousSet.closed(long lower,
long upper)
Returns a nonempty contiguous set containing all
long values from lower
(inclusive) to upper (inclusive). |
static ContiguousSet<Integer> |
ContiguousSet.closedOpen(int lower,
int upper)
Returns a contiguous set containing all
int values from lower (inclusive) to
upper (exclusive). |
static ContiguousSet<Long> |
ContiguousSet.closedOpen(long lower,
long upper)
Returns a contiguous set containing all
long values from lower (inclusive) to
upper (exclusive). |
static <C extends Comparable> |
ContiguousSet.create(Range<C> range,
DiscreteDomain<C> domain)
Returns a
ContiguousSet containing the same values in the given domain contained by the range. |
ContiguousSet<C> |
ContiguousSet.headSet(C toElement) |
ContiguousSet<C> |
ContiguousSet.headSet(C toElement,
boolean inclusive) |
abstract ContiguousSet<C> |
ContiguousSet.intersection(ContiguousSet<C> other)
Returns the set of values that are contained in both this set and the other.
|
ContiguousSet<C> |
ContiguousSet.subSet(C fromElement,
boolean fromInclusive,
C toElement,
boolean toInclusive) |
ContiguousSet<C> |
ContiguousSet.subSet(C fromElement,
C toElement) |
ContiguousSet<C> |
ContiguousSet.tailSet(C fromElement) |
ContiguousSet<C> |
ContiguousSet.tailSet(C fromElement,
boolean inclusive) |
Modifier and Type | Method and Description |
---|---|
abstract ContiguousSet<C> |
ContiguousSet.intersection(ContiguousSet<C> other)
Returns the set of values that are contained in both this set and the other.
|
Copyright © 2010–2018. All rights reserved.