ContiguousSet that contains one or more elements.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Range | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Object
element whose presence in this set is to be tested object)Implements abstract com. Implements java. true if this set contains the specified element.
|
| public boolean | containsAll(Collection<?>
collection to be checked for containment in this set targets)Overrides java. Implements java. true if this set contains all of the elements of the
specified collection.
|
| pack-priv ImmutableList | |
| public UnmodifiableIterator | descendingIterator()
Implements abstract com. Implements java. |
| public boolean | equals(Object
object to be compared for equality with this set object)Overrides com. Implements java. |
| private static boolean | |
| public C | first()
Overrides com. Implements java. |
| public int | hashCode()
Overrides com. Implements java. |
| pack-priv ContiguousSet | headSetImpl(C toElement, boolean inclusive)
Implements abstract com. |
| pack-priv int | indexOf(Object target)
Implements abstract com. |
| public ContiguousSet | intersection(ContiguousSet<C> other)
Implements abstract com. |
| private ContiguousSet | |
| public boolean | isEmpty()
Overrides java. Implements java. true if this set contains no elements.
|
| pack-priv boolean | isPartialView()
Implements abstract com. true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods.
|
| public UnmodifiableIterator | iterator()
Implements abstract com. Implements java. |
| public C | last()
Overrides com. Implements java. |
| public Range | range()
Implements abstract com. |
| public Range | range(BoundType lowerBoundType, BoundType upperBoundType)
Implements abstract com. |
| private void | |
| public int | size()
Implements abstract java. Implements java. |
| pack-priv ContiguousSet | subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive)
Implements abstract com. |
| pack-priv ContiguousSet | tailSetImpl(C fromElement, boolean inclusive)
Implements abstract com. |
| pack-priv Object |
| range | back to summary |
|---|---|
| private final Range<C> range | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RegularContiguousSet | back to summary |
|---|---|
| pack-priv RegularContiguousSet(Range<C> range, DiscreteDomain<C> domain) | |
| contains | back to summary |
|---|---|
| public boolean contains(Object object) Implements abstract com. Implements java. Doc from java. Returns | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<?> targets) Overrides java. Implements java. Doc from java. Returns
| |
| createAsList | back to summary |
|---|---|
| pack-priv ImmutableList Overrides com.
| |
| descendingIterator | back to summary |
|---|---|
| public UnmodifiableIterator Implements abstract com. Implements java. Doc from java. Returns an iterator over the elements in this set, in descending order.
Equivalent in effect to
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides com. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| equalsOrThrow | back to summary |
|---|---|
| private static boolean equalsOrThrow(Comparable<?> left, Comparable<?> right) | |
| first | back to summary |
|---|---|
| public C first() Overrides com. Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| headSetImpl | back to summary |
|---|---|
| pack-priv ContiguousSet Implements abstract com.
| |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(Object target) Implements abstract com. Doc from com. Returns the position of an element within the set, or -1 if not present.
| |
| intersection | back to summary |
|---|---|
| public ContiguousSet Implements abstract com. Doc from com. Returns the set of values that are contained in both this set and the other. This method should always be used instead of
| |
| intersectionInCurrentDomain | back to summary |
|---|---|
| private ContiguousSet | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| iterator | back to summary |
|---|---|
| public UnmodifiableIterator Implements abstract com. Implements java. Doc from java. Returns an iterator over the elements in this set, in ascending order.
| |
| last | back to summary |
|---|---|
| public C last() Overrides com. Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| range | back to summary |
|---|---|
| public Range Implements abstract com. Doc from com. Returns a range, closed on both ends, whose endpoints are the minimum and maximum values
contained in this set. This is equivalent to
| |
| range | back to summary |
|---|---|
| public Range Implements abstract com. Doc from com. Returns the minimal range with the given boundary types for which all values in this set are contained within the range. Note that this method will return ranges with unbounded endpoints if
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws InvalidObjectException Hides com.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| subSetImpl | back to summary |
|---|---|
| pack-priv ContiguousSet Implements abstract com.
| |
| tailSetImpl | back to summary |
|---|---|
| pack-priv ContiguousSet Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DiscreteDomain | |
| pack-priv final Range |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Object |
| domain | back to summary |
|---|---|
| pack-priv final DiscreteDomain<C> domain | |
| range | back to summary |
|---|---|
| pack-priv final Range<C> range | |
| SerializedForm | back to summary |
|---|---|
| private SerializedForm(Range<C> range, DiscreteDomain<C> domain) | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |