| Modifier and Type | Field and Description |
|---|---|
| private final UnifiedSet | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| delegate | back to summary |
|---|---|
| private final UnifiedSet<T> delegate | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImmutableUnifiedSet | back to summary |
|---|---|
| private ImmutableUnifiedSet(UnifiedSet<T> delegate) | |
| asParallel | back to summary |
|---|---|
| public ParallelUnsortedSetIterable Overrides org. Implements org. Doc from org. Returns a parallel iterable of this SetIterable.
| |
| batchForEach | back to summary |
|---|---|
| public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount) Implements org.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object object) Overrides org. Implements org. Doc from java. Returns
| |
| each | back to summary |
|---|---|
| public void each(Procedure<? super T> procedure) Implements org. Doc from org. The procedure is executed for each element in the iterable. Example using a Java 8 lambda expression: people.each(person -> LOGGER.info(person.getName()));This method is a variant of InternalIterable#forEach(Procedure)
that has a signature conflict with Iterable#forEach(java..
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements org. Doc from java. Compares the specified object with this set for equality. Returns
| |
| getBatchCount | back to summary |
|---|---|
| public int getBatchCount(int batchSize) Implements org.
| |
| getFirst | back to summary |
|---|---|
| public T getFirst() Implements org. Doc from org. Returns the first element of an iterable. In the case of a List it is the element at the first index. In the case of any other Collection, it is the first element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty. The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set.
| |
| getLast | back to summary |
|---|---|
| public T getLast() Implements org. Doc from org. Returns the last element of an iterable. In the case of a List it is the element at the last index. In the case of any other Collection, it is the last element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty. The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set.
| |
| getOnly | back to summary |
|---|---|
| public T getOnly() Overrides default org. Doc from org. Returns the element if the iterable has exactly one element. Otherwise, throw
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. 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
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| newSet | back to summary |
|---|---|
| public static <T> ImmutableSet | |
| newSetWith | back to summary |
|---|---|
| public static <T> ImmutableSet | |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() | |