| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private static class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private boolean | |
| private static final int | |
| private static final char | |
| private static final int | |
| private static final int | |
| private char[] | |
| private int | |
| private int | |
| private static final char | |
| private CharObjectHashMap. | |
| private static final long | |
| private V[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public <K, VV> MutableMap | aggregateInPlaceBy(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator)
Overrides default org. Implements org. Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function. |
| protected void | |
| public boolean | allSatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to true for every element of the iterable or if the iterable is empty. |
| public <P> boolean | allSatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to true for every element of the collection, or returns false. |
| public boolean | anySatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to true for any element of the iterable. |
| public <P> boolean | anySatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to true for any element of the collection, or return false. |
| public void | appendString(Appendable appendable)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String separator)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Implements org. Prints a string representation of this collection onto the given |
| public LazyIterable | asLazy()
Implements org. Returns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this). |
| public MutableCharObjectMap | asSynchronized()
Implements org. Returns a synchronized view of this map, delegating all operations to this map but ensuring only one caller has access to the map at a time. |
| public MutableCharObjectMap | asUnmodifiable()
Implements org. Returns an unmodifiable view of this map, delegating all read-only operations to this
map and throwing an |
| public RichIterable | chunk(int size)
Implements org. Partitions elements in fixed size chunks. |
| public void | |
| public <VV> MutableBag | collect(Function<? super V, ? extends VV> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public <VV, R extends Collection | collect(Function<? super V, ? extends VV> function, R target)
Implements org. Same as |
| public MutableBooleanBag | collectBoolean(BooleanFunction<? super V> booleanFunction)
Implements org. Returns a new primitive |
| public MutableByteBag | collectByte(ByteFunction<? super V> byteFunction)
Implements org. Returns a new primitive |
| public MutableCharBag | collectChar(CharFunction<? super V> charFunction)
Implements org. Returns a new primitive |
| public MutableDoubleBag | collectDouble(DoubleFunction<? super V> doubleFunction)
Implements org. Returns a new primitive |
| public MutableFloatBag | collectFloat(FloatFunction<? super V> floatFunction)
Implements org. Returns a new primitive |
| public <VV> MutableBag | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate. |
| public <VV, R extends Collection | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function, R target)
Implements org. Same as the collectIf method with two parameters but uses the specified target collection for the results. |
| public MutableIntBag | collectInt(IntFunction<? super V> intFunction)
Implements org. Returns a new primitive |
| public MutableLongBag | collectLong(LongFunction<? super V> longFunction)
Implements org. Returns a new primitive |
| public MutableShortBag | collectShort(ShortFunction<? super V> shortFunction)
Implements org. Returns a new primitive |
| public <P, VV> MutableBag | collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
Implements org. Same as |
| public <P, VV, R extends Collection | collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection)
Implements org. Same as collectWith but with a targetCollection parameter to gather the results. |
| public void | compact()
Deprecated
since 12.0 - Use
trimToSize() instead
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. |
| public boolean | contains(Object object)
Implements org. Returns true if the iterable has an element which responds true to element.equals(object). |
| public boolean | containsAll(Collection<?> source)
Implements org. Returns true if all elements in source are contained in this collection. |
| public boolean | containsAllArguments(Object... elements)
Implements org. Returns true if all elements in the specified var arg array are contained in this collection. |
| public boolean | containsAllIterable(Iterable<?> source)
Implements org. Returns true if all elements in source are contained in this collection. |
| public boolean | containsKey(char key)
Implements org. Returns whether or not the key is present in the map. |
| public boolean | |
| private void | |
| public int | count(Predicate<? super V> predicate)
Implements org. Return the total number of elements that answer true to the specified predicate. |
| public <P> int | countWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the total number of elements that evaluate to true for the specified predicate. |
| public V | detect(Predicate<? super V> predicate)
Implements org. Returns the first element of the iterable for which the predicate evaluates to true or null in the case where no element returns true. |
| public V | detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
Overrides default org. Returns the first element of the iterable for which the predicate evaluates to true. |
| public Optional | detectOptional(Predicate<? super V> predicate)
Implements org. Returns the first element of the iterable for which the predicate evaluates to true as an Optional. |
| public <P> V | detectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter, or null if none evaluate to true. |
| public <P> V | detectWithIfNone(Predicate2<? super V, ? super P> predicate, P parameter, Function0<? extends V> function)
Implements org. Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, or returns the value of evaluating the specified function. |
| public <P> Optional | detectWithOptional(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter as an Optional. |
| public void | each(Procedure<? super V> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public boolean | equals(Object obj)
Overrides java. Implements org. Follows the same general contract as |
| private int | |
| public <VV> MutableBag | flatCollect(Function<? super V, ? extends Iterable<VV>> function)
Implements org.
|
| public <VV, R extends Collection | flatCollect(Function<? super V, ? extends Iterable<VV>> function, R target)
Implements org. Same as flatCollect, only the results are collected into the target collection. |
| public MutableObjectCharMap | flipUniqueValues()
Implements org. Return the ObjectCharMap that is obtained by flipping the direction of this map and making the associations from value to key. |
| public void | forEachKey(CharProcedure procedure)
Implements org. Iterates through each key in the map, invoking the procedure for each. |
| public void | forEachKeyValue(CharObjectProcedure<? super V> procedure)
Implements org. Iterates through each key/value pair in the map, invoking the procedure for each. |
| public void | forEachValue(Procedure<? super V> procedure)
Implements org.
|
| public <P> void | forEachWith(Procedure2<? super V, ? super P> procedure, P parameter)
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 V> objectIntProcedure)
Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| public V | get(char key)
Implements org. Retrieves the value associated with the key. |
| public V | getFirst()
Implements org. Returns the first element of an iterable. |
| public V | getIfAbsent(char key, Function0<? extends V> ifAbsent)
Implements org. Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier. |
| public V | getIfAbsentPut(char key, V value)
Implements org. Retrieves the value associated with the key if one exists; if it does not, associates a value with the key. |
| public V | getIfAbsentPut(char key, Function0<? extends V> function)
Implements org. Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key. |
| public <P> V | getIfAbsentPutWith(char key, Function<? super P, ? extends V> function, P parameter)
Implements org. Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key. |
| public V | getIfAbsentPutWithKey(char key, CharToObjectFunction<? extends V> function)
Implements org. Retrieves the value associated with the key if one exists; if it does not, associates the result of invoking the value function with the key. |
| public V | getLast()
Implements org. Returns the last element of an iterable. |
| public V | getOnly()
Overrides default org. Returns the element if the iterable has exactly one element. |
| public <VV> MutableBagMultimap | groupBy(Function<? super V, ? extends VV> 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 <VV, R extends MutableMultimap | groupBy(Function<? super V, ? extends VV> function, R target)
Implements org. Same as |
| public <VV> MutableBagMultimap | groupByEach(Function<? super V, ? extends Iterable<VV>> function)
Implements org. Similar to |
| public <VV, R extends MutableMultimap | groupByEach(Function<? super V, ? extends Iterable<VV>> function, R target)
Implements org. Same as |
| public <VV> MutableMap | groupByUniqueKey(Function<? super V, ? extends VV> function)
Overrides default org. Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public <VV, R extends MutableMapIterable | groupByUniqueKey(Function<? super V, ? extends VV> function, R target)
Implements org. Same as |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public <IV> IV | injectInto(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function)
Implements org. Returns the final result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public int | injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
Implements org. Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public long | injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
Implements org. Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public float | injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
Implements org. Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public double | injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
Implements org. Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public <R extends Collection | into(R target)
Implements org. Adds all the elements in this iterable to the specific target Collection. |
| public boolean | isEmpty()
Implements org. Returns true if this iterable has zero items. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public Iterator | |
| public MutableCharSet | keySet()
Implements org. Returns a set containing all the keys in this map. |
| public LazyCharIterable | keysView()
Implements org. Returns a view of the keys in this map. |
| public RichIterable | keyValuesView()
Implements org. Returns a view of the key/value pairs in this map. |
| public String | makeString()
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String separator)
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String start, String separator, String end)
Overrides default org. Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings. |
| private int | |
| public V | max(Comparator<? super V> comparator)
Implements org. Returns the maximum element out of this container based on the comparator. |
| public V | max()
Implements org. Returns the maximum element out of this container based on the natural order. |
| public <VV extends Comparable | maxBy(Function<? super V, ? extends VV> function)
Implements org. Returns the maximum elements out of this container based on the natural order of the attribute returned by Function. |
| private int | |
| public V | min(Comparator<? super V> comparator)
Implements org. Returns the minimum element out of this container based on the comparator. |
| public V | min()
Implements org. Returns the minimum element out of this container based on the natural order. |
| public <VV extends Comparable | minBy(Function<? super V, ? extends VV> function)
Implements org. Returns the minimum elements out of this container based on the natural order of the attribute returned by Function. |
| public static <V> CharObjectHashMap | |
| public static <V> CharObjectHashMap | |
| public static <V> CharObjectHashMap | |
| public static <V> CharObjectHashMap | |
| public static <V> CharObjectHashMap | |
| public static <V> CharObjectHashMap | newWithKeysValues(char key1, V value1, char key2, V value2, char key3, V value3, char key4, V value4)
|
| public boolean | noneSatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to false for every element of the iterable or if the iterable is empty. |
| public <P> boolean | noneSatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to false for every element of the collection, or return false. |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| private static boolean | |
| public PartitionMutableBag | partition(Predicate<? super V> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionMutableBag | partitionWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public V | put(char key, V value)
Implements org. Associates a value with the specified key. |
| public void | putAll(CharObjectMap<? extends V> map)
Implements org. Puts all of the key/value mappings from the specified map into this map. |
| 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. |
| private void | |
| private void | |
| public CharObjectHashMap | reject(CharObjectPredicate<? super V> predicate)
Implements org. Return a copy of this map containing only the key/value pairs that do not match the predicate. |
| public MutableBag | reject(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <R extends Collection | reject(Predicate<? super V> predicate, R target)
Implements org. Same as the reject method with one parameter but uses the specified target collection for the results. |
| public <P> MutableBag | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public <P, R extends Collection | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter, R targetCollection)
Implements org. Similar to |
| public V | remove(char key)
Implements org. Removes the mapping associated with the key, if one exists, from the map. |
| public boolean | removeIf(CharObjectPredicate<? super V> predicate)
Implements org. Remove an entry from the map if the |
| public V | removeKey(char key)
Implements org. Removes the mapping associated with the key, if one exists, from the map. |
| private void | |
| public CharObjectHashMap | select(CharObjectPredicate<? super V> predicate)
Implements org. Return a copy of this map containing only the key/value pairs that match the predicate. |
| public MutableBag | select(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <R extends Collection | select(Predicate<? super V> predicate, R target)
Implements org. Same as the select method with one parameter but uses the specified target collection for the results. |
| public <S> MutableBag | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> MutableBag | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public <P, R extends Collection | selectWith(Predicate2<? super V, ? super P> predicate, P parameter, R targetCollection)
Implements org. Similar to |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| private int | |
| pack-priv int | |
| pack-priv int | |
| public <V1> MutableObjectDoubleMap | sumByDouble(Function<? super V, ? extends V1> groupBy, DoubleFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectDoubleMap | sumByFloat(Function<? super V, ? extends V1> groupBy, FloatFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByInt(Function<? super V, ? extends V1> groupBy, IntFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByLong(Function<? super V, ? extends V1> groupBy, LongFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public double | sumOfDouble(DoubleFunction<? super V> function)
Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public double | sumOfFloat(FloatFunction<? super V> function)
Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfInt(IntFunction<? super V> function)
Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfLong(LongFunction<? super V> function)
Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public CharObjectHashMap | tap(Procedure<? super V> 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[] a)
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 MutableBag | toBag()
Implements org. Converts the collection to the default MutableBag implementation. |
| public <NK, NV> MutableBiMap | toBiMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a BiMap implementation using the specified key and value functions. |
| public ImmutableCharObjectMap | toImmutable()
Implements org. Returns a copy of this map that is immutable (if this map is mutable) or itself if it is already immutable. |
| public MutableList | toList()
Implements org. Converts the collection to a MutableList implementation. |
| public <NK, NV> MutableMap | toMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableMap implementation using the specified key and value functions. |
| public MutableSet | toSet()
Implements org. Converts the collection to a MutableSet implementation. |
| public MutableSortedBag | toSortedBag()
Implements org. Converts the collection to a MutableSortedBag implementation and sorts it using the natural order of the elements. |
| public MutableSortedBag | toSortedBag(Comparator<? super V> comparator)
Implements org. Converts the collection to the MutableSortedBag implementation and sorts it using the specified comparator. |
| public <NK, NV> MutableSortedMap | toSortedMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the key elements' natural ordering. |
| public <NK, NV> MutableSortedMap | toSortedMap(Comparator<? super NK> comparator, Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the given comparator. |
| public MutableSortedSet | toSortedSet()
Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the natural order of the elements. |
| public MutableSortedSet | toSortedSet(Comparator<? super V> comparator)
Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the specified comparator. |
| public String | toString()
Overrides java. Implements org. Returns a string with the keys and values of this map separated by commas with spaces and enclosed in curly braces. |
| public boolean | |
| public V | updateValue(char key, Function0<? extends V> factory, Function<? super V, ? extends V> function)
Implements org. Look up the value associated with |
| public <P> V | updateValueWith(char key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter)
Implements org. Updates or sets the value associated with the key by applying the function to the existing value, if one exists, or the initial value supplied by the factory if one does not. |
| public Collection | |
| public CharObjectHashMap | |
| public CharObjectHashMap | |
| public CharObjectHashMap | |
| public CharObjectHashMap | withKeyValue(char key, V value)
Implements org. Associates a value with the specified key. |
| public MutableCharObjectMap | withoutAllKeys(CharIterable keys)
Implements org. Removes the mappings associated with all the keys, if they exist, from this map. |
| public MutableCharObjectMap | withoutKey(char key)
Implements org. Removes the mapping associated with the key, if one exists, from this map. |
| 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. |
| public <S> MutableBag | zip(Iterable<S> that)
Implements org.
Deprecated
in 7.0.
Returns a |
| public <S, R extends Collection | zip(Iterable<S> that, R target)
Implements org. Same as |
| public MutableSet | zipWithIndex()
Implements org.
Deprecated
in 7.0.
Zips this |
| public <R extends Collection | zipWithIndex(R target)
Implements org. Same as |