| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final Object | |
| protected transient int | |
| private static final long | |
| protected transient Object[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T key)
Overrides org. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | addAllIterable(Iterable<? extends T> iterable)
Overrides org. Implements org.
|
| private void | |
| private void | |
| private void | |
| protected void | allocateTable(int sizeToAllocate)
Implements abstract org.
|
| public ParallelUnsortedSetIterable | asParallel(ExecutorService executorService, int batchSize)
Implements org. Returns a parallel iterable of this SetIterable. |
| public void | batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount)
Implements org.
|
| private boolean | |
| private boolean | |
| private void | |
| private Object | |
| private void | |
| private <P> void | chainedForEachWith(UnifiedSet.
|
| private int | chainedForEachWithIndex(UnifiedSet.
|
| private T | |
| private int | |
| private T | |
| private boolean | chainedShortCircuit(UnifiedSet.
|
| private <P> boolean | chainedShortCircuitWith(UnifiedSet.
|
| private void | |
| public void | clear()
Implements java. Removes all of the elements from this set (optional operation). |
| public UnifiedSet | clone()
Implements abstract org. Implements org. Creates and returns a copy of this object. |
| public boolean | contains(Object key)
Overrides org. Implements org. Returns true if the iterable has an element which responds true to element.equals(object). |
| private int | |
| private boolean | |
| protected boolean | |
| private void | |
| protected T | detect(Predicate<? super T> predicate, int start, int end)
Implements abstract org.
|
| protected Optional | detectOptional(Predicate<? super T> predicate, int start, int end)
Implements abstract org.
|
| public void | each(Procedure<? super T> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| protected void | |
| private void | |
| public boolean | equals(Object object)
Overrides java. Implements org. Follows the same general contract as |
| private int | |
| public <P> void | forEachWith(Procedure2<? super T, ? super P> procedure, P parameter)
Overrides org. Implements org. The procedure2 is evaluated for each element in the iterable with the specified parameter provided as the second argument. |
| public void | forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
Overrides org. Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| public T | get(T key)
Implements org. Locates an object in the pool which is equal to |
| public T | getFirst()
Implements org. Returns the first element of an iterable. |
| public T | getLast()
Implements org. Returns the last element of an iterable. |
| private T | |
| protected Object[] | |
| public <V> UnifiedSetMultimap | groupBy(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> UnifiedSetMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| protected int | |
| public Iterator | iterator()
Implements java. Returns an iterator over elements of type |
| public UnifiedSet | newEmpty()
Implements org. Creates a new empty mutable version of the same collection type. |
| public UnifiedSet | |
| public static <K> UnifiedSet | |
| public static <K> UnifiedSet | |
| public static <K> UnifiedSet | |
| public static <K> UnifiedSet | |
| public static <K> UnifiedSet | |
| private boolean | |
| private T | |
| public PartitionMutableSet | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionMutableSet | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public T | |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| protected void | rehash(int newCapacity)
Implements abstract org.
|
| public UnifiedSet | reject(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> UnifiedSet | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public boolean | remove(Object key)
Overrides org. Implements java. Removes the specified element from this set if it is present (optional operation). |
| private boolean | |
| private T | |
| private boolean | |
| private T | |
| public T | removeFromPool(T key)
Implements org. Locates an object in the pool which is equal to |
| private boolean | |
| private boolean | |
| public boolean | |
| public UnifiedSet | select(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <P> Twin | selectAndRejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Filters a collection into two separate collections based on a predicate returned via a Pair. |
| public <S> UnifiedSet | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> UnifiedSet | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| protected boolean | shortCircuit(Predicate<? super T> predicate, boolean expected, boolean onShortCircuit, boolean atEnd, int start, int end)
Implements abstract org.
|
| protected <P> boolean | shortCircuitWith(Predicate2<? super T, ? super P> predicate2, P parameter, boolean expected, boolean onShortCircuit, boolean atEnd)
Implements abstract org.
|
| public int | size()
Implements org. Returns the number of items in this iterable. |
| public MutableSet | tap(Procedure<? super T> procedure)
Implements org. Executes the Procedure for each element in the iterable and returns |
| public Object[] | toArray()
Overrides default org. Converts this iterable to an array. |
| public <T> T[] | toArray(T[] array)
Overrides default org. Converts this iterable to an array using the specified target array, assuming the target array is as long or longer than the iterable. |
| public ImmutableSet | toImmutable()
Implements org. Returns an immutable copy of this set. |
| private static Object | |
| public boolean | |
| public UnifiedSet | with(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public UnifiedSet | |
| public UnifiedSet | |
| public UnifiedSet | with(T... elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public UnifiedSet | withAll(Iterable<? extends T> iterable)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add multiple elements to their existing elements. |
| public UnifiedSet | without(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| public UnifiedSet | withoutAll(Iterable<? extends T> elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove multiple elements from their existing elements. |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| private void |