java.io.Serializable, DoubleIterable, CharDoubleMap, DoubleValuesMap, MutableCharDoubleMap, MutableDoubleValuesMap, PrimitiveIterablepublic class SynchronizedCharDoubleMap extends java.lang.Object implements MutableCharDoubleMap, java.io.Serializable
MutableCharDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
 MutableDoubleIterator as per Collections.synchronizedCollection(Collection).
 This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableCharDoubleMap.asSynchronized(), 
MutableMap.asSynchronized(), 
Serialized Form| Constructor | Description | 
|---|---|
| SynchronizedCharDoubleMap(MutableCharDoubleMap map) | |
| SynchronizedCharDoubleMap(MutableCharDoubleMap map,
                         java.lang.Object newLock) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| double | addToValue(char key,
          double toBeAdded) | |
| boolean | allSatisfy(DoublePredicate predicate) | Returns true if all of the elements in the DoubleIterable return true for the
 specified predicate, otherwise returns false. | 
| boolean | anySatisfy(DoublePredicate predicate) | Returns true if any of the elements in the DoubleIterable return true for the
 specified predicate, otherwise returns false. | 
| void | appendString(java.lang.Appendable appendable) | Prints a string representation of this collection onto the given  Appendable. | 
| void | appendString(java.lang.Appendable appendable,
            java.lang.String separator) | Prints a string representation of this collection onto the given  Appendable. | 
| void | appendString(java.lang.Appendable appendable,
            java.lang.String start,
            java.lang.String separator,
            java.lang.String end) | Prints a string representation of this collection onto the given  Appendable. | 
| LazyDoubleIterable | asLazy() | Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable. | 
| MutableCharDoubleMap | asSynchronized() | |
| MutableCharDoubleMap | asUnmodifiable() | |
| double | average() | |
| RichIterable<DoubleIterable> | chunk(int size) | Partitions elements in fixed size chunks. | 
| void | clear() | |
| <V> MutableBag<V> | collect(DoubleToObjectFunction<? extends V> function) | Returns a new collection with the results of applying the specified function on each element of the source
 collection. | 
| boolean | contains(double value) | Returns true if the value is contained in the DoubleIterable, and false if it is not. | 
| boolean | containsAll(double... source) | Returns true if the all of the values specified in the source array are contained
 in the DoubleIterable, and false if they are not. | 
| boolean | containsAll(DoubleIterable source) | Returns true if the all of the values specified in the source DoubleIterable are contained
 in the DoubleIterable, and false if they are not. | 
| boolean | containsKey(char key) | |
| boolean | containsValue(double value) | |
| int | count(DoublePredicate predicate) | Returns a count of the number of elements in the DoubleIterable that return true for the
 specified predicate. | 
| double | detectIfNone(DoublePredicate predicate,
            double ifNone) | |
| MutableDoubleIterator | doubleIterator() | This must be manually synchronized by the developer. | 
| void | each(DoubleProcedure procedure) | A synonym for forEach. | 
| boolean | equals(java.lang.Object otherMap) | Follows the same general contract as  Map.equals(Object). | 
| MutableDoubleCharMap | flipUniqueValues() | Return the DoubleCharMap that is obtained by flipping the direction of this map and making the associations
 from value to key. | 
| void | forEach(DoubleProcedure procedure) | Applies the DoubleProcedure to each element in the DoubleIterable. | 
| void | forEachKey(CharProcedure procedure) | |
| void | forEachKeyValue(CharDoubleProcedure procedure) | |
| void | forEachValue(DoubleProcedure procedure) | |
| double | get(char key) | |
| double | getIfAbsent(char key,
           double ifAbsent) | |
| double | getIfAbsentPut(char key,
              double value) | |
| double | getIfAbsentPut(char key,
              DoubleFunction0 function) | |
| <P> double | getIfAbsentPutWith(char key,
                  DoubleFunction<? super P> function,
                  P parameter) | |
| double | getIfAbsentPutWithKey(char key,
                     CharToDoubleFunction function) | |
| double | getOrThrow(char key) | |
| int | hashCode() | Follows the same general contract as  Map.hashCode(). | 
| <T> T | injectInto(T injectedValue,
          ObjectDoubleToObjectFunction<? super T,? extends T> function) | |
| boolean | isEmpty() | Returns true if this iterable has zero items. | 
| MutableCharSet | keySet() | |
| LazyCharIterable | keysView() | |
| RichIterable<CharDoublePair> | keyValuesView() | |
| java.lang.String | makeString() | Returns a string representation of this collection by delegating to  PrimitiveIterable.makeString(String)and defaulting
 the separator parameter to the characters ", " (comma and space). | 
| java.lang.String | makeString(java.lang.String separator) | Returns a string representation of this collection by delegating to  PrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to "" (the empty String). | 
| java.lang.String | makeString(java.lang.String start,
          java.lang.String separator,
          java.lang.String end) | Returns a string representation of this collection with the elements separated by the specified
 separator and enclosed between the start and end strings. | 
| double | max() | |
| double | maxIfEmpty(double defaultValue) | |
| double | median() | |
| double | min() | |
| double | minIfEmpty(double defaultValue) | |
| boolean | noneSatisfy(DoublePredicate predicate) | Returns true if none of the elements in the DoubleIterable return true for the
 specified predicate, otherwise returns false. | 
| boolean | notEmpty() | The English equivalent of !this.isEmpty() | 
| void | put(char key,
   double value) | |
| void | putAll(CharDoubleMap map) | |
| void | putPair(CharDoublePair keyValuePair) | This method allows MutableCharDoubleMap the ability to add an element in the form of CharDoublePair. | 
| MutableCharDoubleMap | reject(CharDoublePredicate predicate) | |
| MutableDoubleBag | reject(DoublePredicate predicate) | Returns a new DoubleIterable with all of the elements in the DoubleIterable that
 return false for the specified predicate. | 
| void | remove(char key) | |
| void | removeKey(char key) | |
| double | removeKeyIfAbsent(char key,
                 double value) | |
| MutableCharDoubleMap | select(CharDoublePredicate predicate) | |
| MutableDoubleBag | select(DoublePredicate predicate) | Returns a new DoubleIterable with all of the elements in the DoubleIterable that
 return true for the specified predicate. | 
| int | size() | Returns the number of items in this iterable. | 
| double | sum() | |
| double[] | toArray() | Converts the DoubleIterable to a primitive double array. | 
| MutableDoubleBag | toBag() | Converts the DoubleIterable to a new MutableDoubleBag. | 
| ImmutableCharDoubleMap | toImmutable() | |
| MutableDoubleList | toList() | Converts the DoubleIterable to a new MutableDoubleList. | 
| MutableDoubleSet | toSet() | Converts the DoubleIterable to a new MutableDoubleSet. | 
| double[] | toSortedArray() | |
| MutableDoubleList | toSortedList() | |
| java.lang.String | toString() | Follows the same general contract as  AbstractMap.toString() | 
| double | updateValue(char key,
           double initialValueIfAbsent,
           DoubleToDoubleFunction function) | |
| MutableDoubleCollection | values() | |
| MutableCharDoubleMap | withKeyValue(char key,
            double value) | |
| MutableCharDoubleMap | withoutAllKeys(CharIterable keys) | |
| MutableCharDoubleMap | withoutKey(char key) | 
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticstappublic SynchronizedCharDoubleMap(MutableCharDoubleMap map)
public SynchronizedCharDoubleMap(MutableCharDoubleMap map, java.lang.Object newLock)
public void clear()
clear in interface MutableDoubleValuesMappublic void put(char key,
                double value)
put in interface MutableCharDoubleMappublic void putPair(CharDoublePair keyValuePair)
MutableCharDoubleMapputPair in interface MutableCharDoubleMapMutableCharDoubleMap.put(char, double)public void putAll(CharDoubleMap map)
putAll in interface MutableCharDoubleMappublic void removeKey(char key)
removeKey in interface MutableCharDoubleMappublic void remove(char key)
remove in interface MutableCharDoubleMappublic double removeKeyIfAbsent(char key,
                                double value)
removeKeyIfAbsent in interface MutableCharDoubleMappublic double getIfAbsentPut(char key,
                             double value)
getIfAbsentPut in interface MutableCharDoubleMappublic double getIfAbsentPut(char key,
                             DoubleFunction0 function)
getIfAbsentPut in interface MutableCharDoubleMappublic double getIfAbsentPutWithKey(char key,
                                    CharToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableCharDoubleMappublic <P> double getIfAbsentPutWith(char key,
                                     DoubleFunction<? super P> function,
                                     P parameter)
getIfAbsentPutWith in interface MutableCharDoubleMappublic double updateValue(char key,
                          double initialValueIfAbsent,
                          DoubleToDoubleFunction function)
updateValue in interface MutableCharDoubleMappublic double get(char key)
get in interface CharDoubleMappublic double getIfAbsent(char key,
                          double ifAbsent)
getIfAbsent in interface CharDoubleMappublic double getOrThrow(char key)
getOrThrow in interface CharDoubleMappublic boolean containsKey(char key)
containsKey in interface CharDoubleMappublic boolean containsValue(double value)
containsValue in interface DoubleValuesMappublic void forEachValue(DoubleProcedure procedure)
forEachValue in interface DoubleValuesMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharDoubleMappublic void forEachKeyValue(CharDoubleProcedure procedure)
forEachKeyValue in interface CharDoubleMappublic LazyCharIterable keysView()
keysView in interface CharDoubleMappublic RichIterable<CharDoublePair> keyValuesView()
keyValuesView in interface CharDoubleMappublic MutableDoubleCharMap flipUniqueValues()
CharDoubleMapflipUniqueValues in interface CharDoubleMapflipUniqueValues in interface MutableCharDoubleMappublic MutableCharDoubleMap select(CharDoublePredicate predicate)
select in interface CharDoubleMapselect in interface MutableCharDoubleMappublic MutableCharDoubleMap reject(CharDoublePredicate predicate)
reject in interface CharDoubleMapreject in interface MutableCharDoubleMappublic MutableDoubleIterator doubleIterator()
doubleIterator in interface DoubleIterabledoubleIterator in interface MutableDoubleValuesMappublic void forEach(DoubleProcedure procedure)
DoubleIterableforEach in interface DoubleIterablepublic void each(DoubleProcedure procedure)
DoubleIterableeach in interface DoubleIterablepublic int count(DoublePredicate predicate)
DoubleIterablecount in interface DoubleIterablepublic boolean anySatisfy(DoublePredicate predicate)
DoubleIterableanySatisfy in interface DoubleIterablepublic boolean allSatisfy(DoublePredicate predicate)
DoubleIterableallSatisfy in interface DoubleIterablepublic boolean noneSatisfy(DoublePredicate predicate)
DoubleIterablenoneSatisfy in interface DoubleIterablepublic MutableDoubleBag select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleValuesMapselect in interface MutableDoubleValuesMappublic MutableDoubleBag reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleValuesMapreject in interface MutableDoubleValuesMappublic <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleValuesMapcollect in interface MutableDoubleValuesMappublic double detectIfNone(DoublePredicate predicate, double ifNone)
detectIfNone in interface DoubleIterablepublic double sum()
sum in interface DoubleIterablepublic double max()
max in interface DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface DoubleIterablepublic double min()
min in interface DoubleIterablepublic double minIfEmpty(double defaultValue)
minIfEmpty in interface DoubleIterablepublic double average()
average in interface DoubleIterablepublic double median()
median in interface DoubleIterablepublic double addToValue(char key,
                         double toBeAdded)
addToValue in interface MutableCharDoubleMappublic double[] toSortedArray()
toSortedArray in interface DoubleIterablepublic MutableDoubleList toSortedList()
toSortedList in interface DoubleIterablepublic double[] toArray()
DoubleIterabletoArray in interface DoubleIterablepublic boolean contains(double value)
DoubleIterablecontains in interface DoubleIterablepublic boolean containsAll(double... source)
DoubleIterablecontainsAll in interface DoubleIterablepublic boolean containsAll(DoubleIterable source)
DoubleIterablecontainsAll in interface DoubleIterablepublic MutableDoubleList toList()
DoubleIterabletoList in interface DoubleIterablepublic MutableDoubleSet toSet()
DoubleIterabletoSet in interface DoubleIterablepublic MutableDoubleBag toBag()
DoubleIterabletoBag in interface DoubleIterablepublic LazyDoubleIterable asLazy()
DoubleIterableasLazy in interface DoubleIterablepublic MutableCharDoubleMap withKeyValue(char key, double value)
withKeyValue in interface MutableCharDoubleMappublic MutableCharDoubleMap withoutKey(char key)
withoutKey in interface MutableCharDoubleMappublic MutableCharDoubleMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharDoubleMappublic MutableCharDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableCharDoubleMappublic MutableCharDoubleMap asSynchronized()
asSynchronized in interface MutableCharDoubleMappublic ImmutableCharDoubleMap toImmutable()
toImmutable in interface CharDoubleMappublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableCharSet keySet()
keySet in interface CharDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMappublic boolean equals(java.lang.Object otherMap)
CharDoubleMapMap.equals(Object).equals in interface CharDoubleMapequals in class java.lang.Objectpublic int hashCode()
CharDoubleMapMap.hashCode().hashCode in interface CharDoubleMaphashCode in class java.lang.Objectpublic java.lang.String toString()
CharDoubleMapAbstractMap.toString()toString in interface CharDoubleMaptoString in interface PrimitiveIterabletoString in class java.lang.ObjectAbstractCollection.toString()public java.lang.String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
 the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic java.lang.String makeString(java.lang.String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
 and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic java.lang.String makeString(java.lang.String start,
                                   java.lang.String separator,
                                   java.lang.String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable)
PrimitiveIterableAppendable.  Prints the string returned
 by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
                         java.lang.String separator)
PrimitiveIterableAppendable.  Prints the string returned
 by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
                         java.lang.String start,
                         java.lang.String separator,
                         java.lang.String end)
PrimitiveIterableAppendable.  Prints the string returned
 by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
                        ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface DoubleIterablepublic RichIterable<DoubleIterable> chunk(int size)
DoubleIterablechunk in interface DoubleIterablesize - the number of elements per chunkRichIterable containing DoubleIterables of size size, except the last will be
 truncated if the elements don't divide evenly.Copyright © 2004–2018. All rights reserved.