java.io.Serializable, ByteIterable, ByteValuesMap, CharByteMap, MutableByteValuesMap, MutableCharByteMap, PrimitiveIterablepublic class SynchronizedCharByteMap extends java.lang.Object implements MutableCharByteMap, java.io.Serializable
MutableCharByteMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
 MutableByteIterator as per Collections.synchronizedCollection(Collection).
 This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableCharByteMap.asSynchronized(), 
MutableMap.asSynchronized(), 
Serialized Form| Constructor | Description | 
|---|---|
| SynchronizedCharByteMap(MutableCharByteMap map) | |
| SynchronizedCharByteMap(MutableCharByteMap map,
                       java.lang.Object newLock) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| byte | addToValue(char key,
          byte toBeAdded) | |
| boolean | allSatisfy(BytePredicate predicate) | Returns true if all of the elements in the ByteIterable return true for the
 specified predicate, otherwise returns false. | 
| boolean | anySatisfy(BytePredicate predicate) | Returns true if any of the elements in the ByteIterable 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. | 
| LazyByteIterable | asLazy() | Returns a LazyByteIterable adapter wrapping the source ByteIterable. | 
| MutableCharByteMap | asSynchronized() | |
| MutableCharByteMap | asUnmodifiable() | |
| double | average() | |
| MutableByteIterator | byteIterator() | This must be manually synchronized by the developer. | 
| RichIterable<ByteIterable> | chunk(int size) | Partitions elements in fixed size chunks. | 
| void | clear() | |
| <V> MutableBag<V> | collect(ByteToObjectFunction<? extends V> function) | Returns a new collection with the results of applying the specified function on each element of the source
 collection. | 
| boolean | contains(byte value) | Returns true if the value is contained in the ByteIterable, and false if it is not. | 
| boolean | containsAll(byte... source) | Returns true if the all of the values specified in the source array are contained
 in the ByteIterable, and false if they are not. | 
| boolean | containsAll(ByteIterable source) | Returns true if the all of the values specified in the source ByteIterable are contained
 in the ByteIterable, and false if they are not. | 
| boolean | containsKey(char key) | |
| boolean | containsValue(byte value) | |
| int | count(BytePredicate predicate) | Returns a count of the number of elements in the ByteIterable that return true for the
 specified predicate. | 
| byte | detectIfNone(BytePredicate predicate,
            byte ifNone) | |
| void | each(ByteProcedure procedure) | A synonym for forEach. | 
| boolean | equals(java.lang.Object otherMap) | Follows the same general contract as  Map.equals(Object). | 
| MutableByteCharMap | flipUniqueValues() | Return the ByteCharMap that is obtained by flipping the direction of this map and making the associations
 from value to key. | 
| void | forEach(ByteProcedure procedure) | Applies the ByteProcedure to each element in the ByteIterable. | 
| void | forEachKey(CharProcedure procedure) | |
| void | forEachKeyValue(CharByteProcedure procedure) | |
| void | forEachValue(ByteProcedure procedure) | |
| byte | get(char key) | |
| byte | getIfAbsent(char key,
           byte ifAbsent) | |
| byte | getIfAbsentPut(char key,
              byte value) | |
| byte | getIfAbsentPut(char key,
              ByteFunction0 function) | |
| <P> byte | getIfAbsentPutWith(char key,
                  ByteFunction<? super P> function,
                  P parameter) | |
| byte | getIfAbsentPutWithKey(char key,
                     CharToByteFunction function) | |
| byte | getOrThrow(char key) | |
| int | hashCode() | Follows the same general contract as  Map.hashCode(). | 
| <T> T | injectInto(T injectedValue,
          ObjectByteToObjectFunction<? super T,? extends T> function) | |
| boolean | isEmpty() | Returns true if this iterable has zero items. | 
| MutableCharSet | keySet() | |
| LazyCharIterable | keysView() | |
| RichIterable<CharBytePair> | 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. | 
| byte | max() | |
| byte | maxIfEmpty(byte defaultValue) | |
| double | median() | |
| byte | min() | |
| byte | minIfEmpty(byte defaultValue) | |
| boolean | noneSatisfy(BytePredicate predicate) | Returns true if none of the elements in the ByteIterable return true for the
 specified predicate, otherwise returns false. | 
| boolean | notEmpty() | The English equivalent of !this.isEmpty() | 
| void | put(char key,
   byte value) | |
| void | putAll(CharByteMap map) | |
| void | putPair(CharBytePair keyValuePair) | This method allows MutableCharByteMap the ability to add an element in the form of CharBytePair. | 
| MutableByteBag | reject(BytePredicate predicate) | Returns a new ByteIterable with all of the elements in the ByteIterable that
 return false for the specified predicate. | 
| MutableCharByteMap | reject(CharBytePredicate predicate) | |
| void | remove(char key) | |
| void | removeKey(char key) | |
| byte | removeKeyIfAbsent(char key,
                 byte value) | |
| MutableByteBag | select(BytePredicate predicate) | Returns a new ByteIterable with all of the elements in the ByteIterable that
 return true for the specified predicate. | 
| MutableCharByteMap | select(CharBytePredicate predicate) | |
| int | size() | Returns the number of items in this iterable. | 
| long | sum() | |
| byte[] | toArray() | Converts the ByteIterable to a primitive byte array. | 
| MutableByteBag | toBag() | Converts the ByteIterable to a new MutableByteBag. | 
| ImmutableCharByteMap | toImmutable() | |
| MutableByteList | toList() | Converts the ByteIterable to a new MutableByteList. | 
| MutableByteSet | toSet() | Converts the ByteIterable to a new MutableByteSet. | 
| byte[] | toSortedArray() | |
| MutableByteList | toSortedList() | |
| java.lang.String | toString() | Follows the same general contract as  AbstractMap.toString() | 
| byte | updateValue(char key,
           byte initialValueIfAbsent,
           ByteToByteFunction function) | |
| MutableByteCollection | values() | |
| MutableCharByteMap | withKeyValue(char key,
            byte value) | |
| MutableCharByteMap | withoutAllKeys(CharIterable keys) | |
| MutableCharByteMap | withoutKey(char key) | 
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticstappublic SynchronizedCharByteMap(MutableCharByteMap map)
public SynchronizedCharByteMap(MutableCharByteMap map, java.lang.Object newLock)
public void clear()
clear in interface MutableByteValuesMappublic void put(char key,
                byte value)
put in interface MutableCharByteMappublic void putPair(CharBytePair keyValuePair)
MutableCharByteMapputPair in interface MutableCharByteMapMutableCharByteMap.put(char, byte)public void putAll(CharByteMap map)
putAll in interface MutableCharByteMappublic void removeKey(char key)
removeKey in interface MutableCharByteMappublic void remove(char key)
remove in interface MutableCharByteMappublic byte removeKeyIfAbsent(char key,
                              byte value)
removeKeyIfAbsent in interface MutableCharByteMappublic byte getIfAbsentPut(char key,
                           byte value)
getIfAbsentPut in interface MutableCharByteMappublic byte getIfAbsentPut(char key,
                           ByteFunction0 function)
getIfAbsentPut in interface MutableCharByteMappublic byte getIfAbsentPutWithKey(char key,
                                  CharToByteFunction function)
getIfAbsentPutWithKey in interface MutableCharByteMappublic <P> byte getIfAbsentPutWith(char key,
                                   ByteFunction<? super P> function,
                                   P parameter)
getIfAbsentPutWith in interface MutableCharByteMappublic byte updateValue(char key,
                        byte initialValueIfAbsent,
                        ByteToByteFunction function)
updateValue in interface MutableCharByteMappublic byte get(char key)
get in interface CharByteMappublic byte getIfAbsent(char key,
                        byte ifAbsent)
getIfAbsent in interface CharByteMappublic byte getOrThrow(char key)
getOrThrow in interface CharByteMappublic boolean containsKey(char key)
containsKey in interface CharByteMappublic boolean containsValue(byte value)
containsValue in interface ByteValuesMappublic void forEachValue(ByteProcedure procedure)
forEachValue in interface ByteValuesMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharByteMappublic void forEachKeyValue(CharByteProcedure procedure)
forEachKeyValue in interface CharByteMappublic LazyCharIterable keysView()
keysView in interface CharByteMappublic RichIterable<CharBytePair> keyValuesView()
keyValuesView in interface CharByteMappublic MutableByteCharMap flipUniqueValues()
CharByteMapflipUniqueValues in interface CharByteMapflipUniqueValues in interface MutableCharByteMappublic MutableCharByteMap select(CharBytePredicate predicate)
select in interface CharByteMapselect in interface MutableCharByteMappublic MutableCharByteMap reject(CharBytePredicate predicate)
reject in interface CharByteMapreject in interface MutableCharByteMappublic MutableByteIterator byteIterator()
byteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic void forEach(ByteProcedure procedure)
ByteIterableforEach in interface ByteIterablepublic void each(ByteProcedure procedure)
ByteIterableeach in interface ByteIterablepublic int count(BytePredicate predicate)
ByteIterablecount in interface ByteIterablepublic boolean anySatisfy(BytePredicate predicate)
ByteIterableanySatisfy in interface ByteIterablepublic boolean allSatisfy(BytePredicate predicate)
ByteIterableallSatisfy in interface ByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
ByteIterablenoneSatisfy in interface ByteIterablepublic MutableByteBag select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface ByteValuesMapselect in interface MutableByteValuesMappublic MutableByteBag reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteValuesMapreject in interface MutableByteValuesMappublic <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteValuesMapcollect in interface MutableByteValuesMappublic byte detectIfNone(BytePredicate predicate, byte ifNone)
detectIfNone in interface ByteIterablepublic long sum()
sum in interface ByteIterablepublic byte max()
max in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic byte min()
min in interface ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic byte addToValue(char key,
                       byte toBeAdded)
addToValue in interface MutableCharByteMappublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic byte[] toArray()
ByteIterabletoArray in interface ByteIterablepublic boolean contains(byte value)
ByteIterablecontains in interface ByteIterablepublic boolean containsAll(byte... source)
ByteIterablecontainsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
ByteIterablecontainsAll in interface ByteIterablepublic MutableByteList toList()
ByteIterabletoList in interface ByteIterablepublic MutableByteSet toSet()
ByteIterabletoSet in interface ByteIterablepublic MutableByteBag toBag()
ByteIterabletoBag in interface ByteIterablepublic LazyByteIterable asLazy()
ByteIterableasLazy in interface ByteIterablepublic MutableCharByteMap withKeyValue(char key, byte value)
withKeyValue in interface MutableCharByteMappublic MutableCharByteMap withoutKey(char key)
withoutKey in interface MutableCharByteMappublic MutableCharByteMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharByteMappublic MutableCharByteMap asUnmodifiable()
asUnmodifiable in interface MutableCharByteMappublic MutableCharByteMap asSynchronized()
asSynchronized in interface MutableCharByteMappublic ImmutableCharByteMap toImmutable()
toImmutable in interface CharByteMappublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableCharSet keySet()
keySet in interface CharByteMappublic MutableByteCollection values()
values in interface ByteValuesMappublic boolean equals(java.lang.Object otherMap)
CharByteMapMap.equals(Object).equals in interface CharByteMapequals in class java.lang.Objectpublic int hashCode()
CharByteMapMap.hashCode().hashCode in interface CharByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
CharByteMapAbstractMap.toString()toString in interface CharByteMaptoString 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,
                        ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface ByteIterablepublic RichIterable<ByteIterable> chunk(int size)
ByteIterablechunk in interface ByteIterablesize - the number of elements per chunkRichIterable containing ByteIterables of size size, except the last will be
 truncated if the elements don't divide evenly.Copyright © 2004–2018. All rights reserved.