public class SynchronizedSortedMap<K,V> extends AbstractSynchronizedMapIterable<K,V> implements MutableSortedMap<K,V>, Serializable
| Constructor and Description |
|---|
SynchronizedSortedMap(MutableSortedMap<K,V> newMap) |
SynchronizedSortedMap(MutableSortedMap<K,V> newMap,
Object lock) |
add, aggregateBy, aggregateBy, aggregateInPlaceBy, clear, containsKey, containsValue, countBy, countByEach, countByWith, detect, detectOptional, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getIfAbsentValue, getIfAbsentWith, ifPresentApply, keysView, keyValuesView, put, putAll, putPair, remove, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWith, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitflatCollectWith, getIfAbsentPutWithadd, aggregateBy, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWithKey, getOrDefault, putPair, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWithcontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewforEachWithIndex, getFirst, getLast, max, min, zip, zipWithIndexaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetByforEach, forEachWithclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic SynchronizedSortedMap(MutableSortedMap<K,V> newMap)
public SynchronizedSortedMap(MutableSortedMap<K,V> newMap, Object lock)
public static <K,V,M extends SortedMap<K,V>> SynchronizedSortedMap<K,V> of(M map)
public static <K,V,M extends SortedMap<K,V>> SynchronizedSortedMap<K,V> of(M map, Object lock)
public Comparator<? super K> comparator()
comparator in interface SortedMap<K,V>comparator in interface SortedMapIterable<K,V>public MutableSortedMap<K,V> withKeyValue(K key, V value)
withKeyValue in interface MutableMapIterable<K,V>withKeyValue in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withMap(Map<? extends K,? extends V> map)
withMap in interface MutableMapIterable<K,V>withMap in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
withMapIterable in interface MutableMapIterable<K,V>withMapIterable in interface MutableSortedMap<K,V>public void putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
putAllMapIterable in interface MutableMapIterable<K,V>@Deprecated public MutableSortedMap<K,V> with(Pair<K,V>... pairs)
withAllKeyValueArguments(Pair[]) instead. Inlineable.with in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
withAllKeyValueArguments in interface MutableMapIterable<K,V>withAllKeyValueArguments in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
withAllKeyValues in interface MutableMapIterable<K,V>withAllKeyValues in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withoutKey(K key)
withoutKey in interface MutableMapIterable<K,V>withoutKey in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface MutableMapIterable<K,V>withoutAllKeys in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> newEmpty()
newEmpty in interface MutableMapIterable<K,V>newEmpty in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> clone()
public <E> MutableSortedMap<K,V> collectKeysAndValues(Iterable<E> iterable, Function<? super E,? extends K> keyFunction, Function<? super E,? extends V> function)
collectKeysAndValues in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> tap(Procedure<? super V> procedure)
tap in interface MapIterable<K,V>tap in interface MutableMapIterable<K,V>tap in interface MutableSortedMap<K,V>tap in interface SortedMapIterable<K,V>tap in interface OrderedIterable<V>tap in interface ReversibleIterable<V>tap in interface RichIterable<V>tap in class AbstractSynchronizedMapIterable<K,V>public MutableList<V> select(Predicate<? super V> predicate)
select in interface MutableMapIterable<K,V>select in interface MutableSortedMap<K,V>select in interface SortedMapIterable<K,V>select in interface OrderedIterable<V>select in interface ReversibleIterable<V>select in interface RichIterable<V>select in class AbstractSynchronizedMapIterable<K,V>public <P> MutableList<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface MutableMapIterable<K,V>selectWith in interface MutableSortedMap<K,V>selectWith in interface SortedMapIterable<K,V>selectWith in interface OrderedIterable<V>selectWith in interface ReversibleIterable<V>selectWith in interface RichIterable<V>selectWith in class AbstractSynchronizedMapIterable<K,V>public MutableList<V> reject(Predicate<? super V> predicate)
reject in interface MutableMapIterable<K,V>reject in interface MutableSortedMap<K,V>reject in interface SortedMapIterable<K,V>reject in interface OrderedIterable<V>reject in interface ReversibleIterable<V>reject in interface RichIterable<V>reject in class AbstractSynchronizedMapIterable<K,V>public <P> MutableList<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface MutableMapIterable<K,V>rejectWith in interface MutableSortedMap<K,V>rejectWith in interface SortedMapIterable<K,V>rejectWith in interface OrderedIterable<V>rejectWith in interface ReversibleIterable<V>rejectWith in interface RichIterable<V>rejectWith in class AbstractSynchronizedMapIterable<K,V>public PartitionMutableList<V> partition(Predicate<? super V> predicate)
partition in interface MutableMapIterable<K,V>partition in interface MutableSortedMap<K,V>partition in interface SortedMapIterable<K,V>partition in interface OrderedIterable<V>partition in interface ReversibleIterable<V>partition in interface RichIterable<V>partition in class AbstractSynchronizedMapIterable<K,V>public MutableList<Pair<V,Integer>> zipWithIndex()
zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface MutableSortedMap<K,V>zipWithIndex in interface SortedMapIterable<K,V>zipWithIndex in interface OrderedIterable<V>zipWithIndex in interface ReversibleIterable<V>zipWithIndex in interface RichIterable<V>zipWithIndex in class AbstractSynchronizedMapIterable<K,V>public <P> PartitionMutableList<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
partitionWith in interface MutableSortedMap<K,V>partitionWith in interface SortedMapIterable<K,V>partitionWith in interface OrderedIterable<V>partitionWith in interface ReversibleIterable<V>partitionWith in interface RichIterable<V>partitionWith in class AbstractSynchronizedRichIterable<V>public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableMapIterable<K,V>selectInstancesOf in interface MutableSortedMap<K,V>selectInstancesOf in interface SortedMapIterable<K,V>selectInstancesOf in interface OrderedIterable<V>selectInstancesOf in interface ReversibleIterable<V>selectInstancesOf in interface RichIterable<V>selectInstancesOf in class AbstractSynchronizedMapIterable<K,V>public <R> MutableList<R> collect(Function<? super V,? extends R> function)
collect in interface MutableSortedMap<K,V>collect in interface SortedMapIterable<K,V>collect in interface OrderedIterable<V>collect in interface ReversibleIterable<V>collect in interface RichIterable<V>collect in class AbstractSynchronizedRichIterable<V>public <R> MutableList<R> collectWithIndex(ObjectIntToObjectFunction<? super V,? extends R> function)
collectWithIndex in interface MutableSortedMap<K,V>collectWithIndex in interface SortedMapIterable<K,V>collectWithIndex in interface OrderedIterable<V>collectWithIndex in interface ReversibleIterable<V>public <V1,R extends Collection<V1>> R collectWithIndex(ObjectIntToObjectFunction<? super V,? extends V1> function, R target)
collectWithIndex in interface OrderedIterable<V>public <R extends Collection<V>> R selectWithIndex(ObjectIntPredicate<? super V> predicate, R target)
selectWithIndex in interface OrderedIterable<V>public <R extends Collection<V>> R rejectWithIndex(ObjectIntPredicate<? super V> predicate, R target)
rejectWithIndex in interface OrderedIterable<V>public MutableBooleanList collectBoolean(BooleanFunction<? super V> booleanFunction)
collectBoolean in interface MutableSortedMap<K,V>collectBoolean in interface SortedMapIterable<K,V>collectBoolean in interface OrderedIterable<V>collectBoolean in interface ReversibleIterable<V>collectBoolean in interface RichIterable<V>collectBoolean in class AbstractSynchronizedRichIterable<V>public MutableByteList collectByte(ByteFunction<? super V> byteFunction)
collectByte in interface MutableSortedMap<K,V>collectByte in interface SortedMapIterable<K,V>collectByte in interface OrderedIterable<V>collectByte in interface ReversibleIterable<V>collectByte in interface RichIterable<V>collectByte in class AbstractSynchronizedRichIterable<V>public MutableCharList collectChar(CharFunction<? super V> charFunction)
collectChar in interface MutableSortedMap<K,V>collectChar in interface SortedMapIterable<K,V>collectChar in interface OrderedIterable<V>collectChar in interface ReversibleIterable<V>collectChar in interface RichIterable<V>collectChar in class AbstractSynchronizedRichIterable<V>public MutableDoubleList collectDouble(DoubleFunction<? super V> doubleFunction)
collectDouble in interface MutableSortedMap<K,V>collectDouble in interface SortedMapIterable<K,V>collectDouble in interface OrderedIterable<V>collectDouble in interface ReversibleIterable<V>collectDouble in interface RichIterable<V>collectDouble in class AbstractSynchronizedRichIterable<V>public MutableFloatList collectFloat(FloatFunction<? super V> floatFunction)
collectFloat in interface MutableSortedMap<K,V>collectFloat in interface SortedMapIterable<K,V>collectFloat in interface OrderedIterable<V>collectFloat in interface ReversibleIterable<V>collectFloat in interface RichIterable<V>collectFloat in class AbstractSynchronizedRichIterable<V>public MutableIntList collectInt(IntFunction<? super V> intFunction)
collectInt in interface MutableSortedMap<K,V>collectInt in interface SortedMapIterable<K,V>collectInt in interface OrderedIterable<V>collectInt in interface ReversibleIterable<V>collectInt in interface RichIterable<V>collectInt in class AbstractSynchronizedRichIterable<V>public MutableLongList collectLong(LongFunction<? super V> longFunction)
collectLong in interface MutableSortedMap<K,V>collectLong in interface SortedMapIterable<K,V>collectLong in interface OrderedIterable<V>collectLong in interface ReversibleIterable<V>collectLong in interface RichIterable<V>collectLong in class AbstractSynchronizedRichIterable<V>public MutableShortList collectShort(ShortFunction<? super V> shortFunction)
collectShort in interface MutableSortedMap<K,V>collectShort in interface SortedMapIterable<K,V>collectShort in interface OrderedIterable<V>collectShort in interface ReversibleIterable<V>collectShort in interface RichIterable<V>collectShort in class AbstractSynchronizedRichIterable<V>public <P,VV> MutableList<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
collectWith in interface MutableSortedMap<K,V>collectWith in interface SortedMapIterable<K,V>collectWith in interface OrderedIterable<V>collectWith in interface ReversibleIterable<V>collectWith in interface RichIterable<V>collectWith in class AbstractSynchronizedRichIterable<V>public <R> MutableList<R> collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
collectIf in interface MutableSortedMap<K,V>collectIf in interface SortedMapIterable<K,V>collectIf in interface OrderedIterable<V>collectIf in interface ReversibleIterable<V>collectIf in interface RichIterable<V>collectIf in class AbstractSynchronizedRichIterable<V>public <R> MutableList<R> flatCollect(Function<? super V,? extends Iterable<R>> function)
flatCollect in interface MutableSortedMap<K,V>flatCollect in interface SortedMapIterable<K,V>flatCollect in interface OrderedIterable<V>flatCollect in interface ReversibleIterable<V>flatCollect in interface RichIterable<V>flatCollect in class AbstractSynchronizedRichIterable<V>public <KK> MutableListMultimap<KK,V> groupBy(Function<? super V,? extends KK> function)
groupBy in interface MutableMapIterable<K,V>groupBy in interface MutableSortedMap<K,V>groupBy in interface SortedMapIterable<K,V>groupBy in interface OrderedIterable<V>groupBy in interface ReversibleIterable<V>groupBy in interface RichIterable<V>groupBy in class AbstractSynchronizedMapIterable<K,V>public <KK> MutableListMultimap<KK,V> groupByEach(Function<? super V,? extends Iterable<KK>> function)
groupByEach in interface MutableMapIterable<K,V>groupByEach in interface MutableSortedMap<K,V>groupByEach in interface SortedMapIterable<K,V>groupByEach in interface OrderedIterable<V>groupByEach in interface ReversibleIterable<V>groupByEach in interface RichIterable<V>groupByEach in class AbstractSynchronizedMapIterable<K,V>public <S> MutableList<Pair<V,S>> zip(Iterable<S> that)
zip in interface MutableMapIterable<K,V>zip in interface MutableSortedMap<K,V>zip in interface SortedMapIterable<K,V>zip in interface OrderedIterable<V>zip in interface ReversibleIterable<V>zip in interface RichIterable<V>zip in class AbstractSynchronizedMapIterable<K,V>public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface MutableMapIterable<K,V>groupByUniqueKey in interface MutableSortedMap<K,V>groupByUniqueKey in interface RichIterable<V>groupByUniqueKey in class AbstractSynchronizedMapIterable<K,V>public MutableMapIterable<V,K> flipUniqueValues()
flipUniqueValues in interface MapIterable<K,V>flipUniqueValues in interface MutableMapIterable<K,V>public MutableSortedSetMultimap<V,K> flip()
flip in interface MapIterable<K,V>flip in interface MutableMapIterable<K,V>flip in interface MutableSortedMap<K,V>flip in interface SortedMapIterable<K,V>public MutableSortedMap<K,V> select(Predicate2<? super K,? super V> predicate)
select in interface MapIterable<K,V>select in interface MutableMapIterable<K,V>select in interface MutableSortedMap<K,V>select in interface SortedMapIterable<K,V>public MutableSortedMap<K,V> reject(Predicate2<? super K,? super V> predicate)
reject in interface MapIterable<K,V>reject in interface MutableMapIterable<K,V>reject in interface MutableSortedMap<K,V>reject in interface SortedMapIterable<K,V>public <K2,V2> MutableMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
collect in interface MapIterable<K,V>collect in interface MutableMapIterable<K,V>collect in interface MutableSortedMap<K,V>collect in interface SortedMapIterable<K,V>public <R> MutableSortedMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
collectValues in interface MapIterable<K,V>collectValues in interface MutableMapIterable<K,V>collectValues in interface MutableSortedMap<K,V>collectValues in interface SortedMapIterable<K,V>public MutableSortedMap<K,V> asUnmodifiable()
asUnmodifiable in interface MutableMapIterable<K,V>asUnmodifiable in interface MutableSortedMap<K,V>public MutableSortedMap<K,V> asSynchronized()
asSynchronized in interface MutableMapIterable<K,V>asSynchronized in interface MutableSortedMap<K,V>public ImmutableSortedMap<K,V> toImmutable()
toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,V>toImmutable in interface SortedMapIterable<K,V>public MutableSet<K> keySet()
public MutableCollection<V> values()
public MutableSet<Map.Entry<K,V>> entrySet()
public MutableSortedMap<K,V> headMap(K toKey)
public MutableSortedMap<K,V> tailMap(K fromKey)
public MutableSortedMap<K,V> subMap(K fromKey, K toKey)
public void reverseForEach(Procedure<? super V> procedure)
reverseForEach in interface ReversibleIterable<V>public void reverseForEachWithIndex(ObjectIntProcedure<? super V> procedure)
reverseForEachWithIndex in interface ReversibleIterable<V>public LazyIterable<V> asReversed()
asReversed in interface ReversibleIterable<V>public int detectLastIndex(Predicate<? super V> predicate)
detectLastIndex in interface ReversibleIterable<V>public int indexOf(Object object)
indexOf in interface OrderedIterable<V>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)
corresponds in interface OrderedIterable<V>public void forEach(int startIndex,
int endIndex,
Procedure<? super V> procedure)
forEach in interface OrderedIterable<V>public void forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super V> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<V>public MutableStack<V> toStack()
toStack in interface OrderedIterable<V>public int detectIndex(Predicate<? super V> predicate)
detectIndex in interface OrderedIterable<V>public MutableSortedMap<K,V> toReversed()
toReversed in interface MutableSortedMap<K,V>toReversed in interface SortedMapIterable<K,V>toReversed in interface ReversibleIterable<V>public MutableSortedMap<K,V> take(int count)
take in interface MutableSortedMap<K,V>take in interface SortedMapIterable<K,V>take in interface ReversibleIterable<V>public MutableSortedMap<K,V> takeWhile(Predicate<? super V> predicate)
takeWhile in interface MutableSortedMap<K,V>takeWhile in interface SortedMapIterable<K,V>takeWhile in interface OrderedIterable<V>takeWhile in interface ReversibleIterable<V>public MutableSortedMap<K,V> drop(int count)
drop in interface MutableSortedMap<K,V>drop in interface SortedMapIterable<K,V>drop in interface ReversibleIterable<V>public MutableSortedMap<K,V> dropWhile(Predicate<? super V> predicate)
dropWhile in interface MutableSortedMap<K,V>dropWhile in interface SortedMapIterable<K,V>dropWhile in interface OrderedIterable<V>dropWhile in interface ReversibleIterable<V>public PartitionMutableList<V> partitionWhile(Predicate<? super V> predicate)
partitionWhile in interface MutableSortedMap<K,V>partitionWhile in interface SortedMapIterable<K,V>partitionWhile in interface OrderedIterable<V>partitionWhile in interface ReversibleIterable<V>public MutableList<V> distinct()
distinct in interface MutableSortedMap<K,V>distinct in interface SortedMapIterable<K,V>distinct in interface OrderedIterable<V>distinct in interface ReversibleIterable<V>public Optional<V> getFirstOptional()
getFirstOptional in interface OrderedIterable<V>public Optional<V> getLastOptional()
getLastOptional in interface OrderedIterable<V>Copyright © 2004–2022. All rights reserved.