Class UnmodifiableTreeMap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.UnmodifiableMap<K,V>
-
- org.eclipse.collections.impl.map.sorted.mutable.UnmodifiableSortedMap<K,V>
-
- org.eclipse.collections.impl.map.sorted.mutable.UnmodifiableTreeMap<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<V>
,Map<K,V>
,SortedMap<K,V>
,InternalIterable<V>
,MapIterable<K,V>
,MutableMapIterable<K,V>
,MutableSortedMap<K,V>
,SortedMapIterable<K,V>
,OrderedIterable<V>
,ReversibleIterable<V>
,RichIterable<V>
public class UnmodifiableTreeMap<K,V> extends UnmodifiableSortedMap<K,V> implements MutableSortedMap<K,V>
An unmodifiable view of a map.- See Also:
MutableSortedMap.asUnmodifiable()
, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description V
add(Pair<? extends K,? extends V> keyValuePair)
boolean
allSatisfy(Predicate<? super V> predicate)
<P> boolean
allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
boolean
anySatisfy(Predicate<? super V> predicate)
<P> boolean
anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
void
appendString(Appendable appendable)
void
appendString(Appendable appendable, String separator)
void
appendString(Appendable appendable, String start, String separator, String end)
LazyIterable<V>
asLazy()
MutableSortedMap<K,V>
asSynchronized()
MutableSortedMap<K,V>
asUnmodifiable()
RichIterable<RichIterable<V>>
chunk(int size)
MutableSortedMap<K,V>
clone()
<R> MutableList<R>
collect(Function<? super V,? extends R> function)
<R,C extends Collection<R>>
Ccollect(Function<? super V,? extends R> function, C target)
<K2,V2>
MutableMap<K2,V2>collect(Function2<? super K,? super V,Pair<K2,V2>> function)
MutableBooleanList
collectBoolean(BooleanFunction<? super V> booleanFunction)
<R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super V> booleanFunction, R target)
MutableByteList
collectByte(ByteFunction<? super V> byteFunction)
<R extends MutableByteCollection>
RcollectByte(ByteFunction<? super V> byteFunction, R target)
MutableCharList
collectChar(CharFunction<? super V> charFunction)
<R extends MutableCharCollection>
RcollectChar(CharFunction<? super V> charFunction, R target)
MutableDoubleList
collectDouble(DoubleFunction<? super V> doubleFunction)
<R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super V> doubleFunction, R target)
MutableFloatList
collectFloat(FloatFunction<? super V> floatFunction)
<R extends MutableFloatCollection>
RcollectFloat(FloatFunction<? super V> floatFunction, R target)
<R> MutableList<R>
collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
<R,C extends Collection<R>>
CcollectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function, C target)
MutableIntList
collectInt(IntFunction<? super V> intFunction)
<R extends MutableIntCollection>
RcollectInt(IntFunction<? super V> intFunction, R target)
<E> MutableSortedMap<K,V>
collectKeysAndValues(Iterable<E> iterable, Function<? super E,? extends K> keyFunction, Function<? super E,? extends V> valueFunction)
MutableLongList
collectLong(LongFunction<? super V> longFunction)
<R extends MutableLongCollection>
RcollectLong(LongFunction<? super V> longFunction, R target)
MutableShortList
collectShort(ShortFunction<? super V> shortFunction)
<R extends MutableShortCollection>
RcollectShort(ShortFunction<? super V> shortFunction, R target)
<R> MutableSortedMap<K,R>
collectValues(Function2<? super K,? super V,? extends R> function)
<P,R,C extends Collection<R>>
CcollectWith(Function2<? super V,? super P,? extends R> function, P parameter, C targetCollection)
<P,VV>
MutableList<VV>collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
<R> MutableList<R>
collectWithIndex(ObjectIntToObjectFunction<? super V,? extends R> function)
<V1,R extends Collection<V1>>
RcollectWithIndex(ObjectIntToObjectFunction<? super V,? extends V1> function, R target)
boolean
contains(Object object)
boolean
containsAll(Collection<?> source)
boolean
containsAllArguments(Object... elements)
boolean
containsAllIterable(Iterable<?> source)
<S> boolean
corresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)
int
count(Predicate<? super V> predicate)
<P> int
countWith(Predicate2<? super V,? super P> predicate, P parameter)
V
detect(Predicate<? super V> predicate)
Pair<K,V>
detect(Predicate2<? super K,? super V> predicate)
V
detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
int
detectIndex(Predicate<? super V> predicate)
int
detectLastIndex(Predicate<? super V> predicate)
Optional<V>
detectOptional(Predicate<? super V> predicate)
Optional<Pair<K,V>>
detectOptional(Predicate2<? super K,? super V> predicate)
<P> V
detectWith(Predicate2<? super V,? super P> predicate, P parameter)
<P> V
detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
<P> Optional<V>
detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
MutableList<V>
distinct()
MutableSortedMap<K,V>
drop(int count)
MutableSortedMap<K,V>
dropWhile(Predicate<? super V> predicate)
void
each(Procedure<? super V> procedure)
MutableSet<Map.Entry<K,V>>
entrySet()
boolean
equals(Object obj)
<R> MutableList<R>
flatCollect(Function<? super V,? extends Iterable<R>> function)
<R,C extends Collection<R>>
CflatCollect(Function<? super V,? extends Iterable<R>> function, C target)
<R extends MutableBooleanCollection>
RflatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
<R extends MutableByteCollection>
RflatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
<R extends MutableCharCollection>
RflatCollectChar(Function<? super V,? extends CharIterable> function, R target)
<R extends MutableDoubleCollection>
RflatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
<R extends MutableFloatCollection>
RflatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
<R extends MutableIntCollection>
RflatCollectInt(Function<? super V,? extends IntIterable> function, R target)
<R extends MutableLongCollection>
RflatCollectLong(Function<? super V,? extends LongIterable> function, R target)
<R extends MutableShortCollection>
RflatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
MutableSortedSetMultimap<V,K>
flip()
MutableMapIterable<V,K>
flipUniqueValues()
void
forEach(int startIndex, int endIndex, Procedure<? super V> procedure)
void
forEachKey(Procedure<? super K> procedure)
void
forEachKeyValue(Procedure2<? super K,? super V> procedure)
void
forEachValue(Procedure<? super V> procedure)
<P> void
forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
void
forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)
void
forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
V
getFirst()
V
getIfAbsent(K key, Function0<? extends V> function)
V
getIfAbsentPut(K key, Function0<? extends V> function)
V
getIfAbsentPut(K key, V value)
<P> V
getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
V
getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
V
getIfAbsentValue(K key, V value)
<P> V
getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
V
getLast()
V
getOnly()
<R> MutableListMultimap<R,V>
groupBy(Function<? super V,? extends R> function)
<R,C extends MutableMultimap<R,V>>
CgroupBy(Function<? super V,? extends R> function, C target)
<R> MutableListMultimap<R,V>
groupByEach(Function<? super V,? extends Iterable<R>> function)
<R,C extends MutableMultimap<R,V>>
CgroupByEach(Function<? super V,? extends Iterable<R>> function, C target)
<VV> MutableMap<VV,V>
groupByUniqueKey(Function<? super V,? extends VV> function)
<VV,R extends MutableMapIterable<VV,V>>
RgroupByUniqueKey(Function<? super V,? extends VV> function, R target)
int
hashCode()
MutableSortedMap<K,V>
headMap(K toKey)
<A> A
ifPresentApply(K key, Function<? super V,? extends A> function)
double
injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
float
injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
int
injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
long
injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
<IV> IV
injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)
<R extends Collection<V>>
Rinto(R target)
Iterator<V>
iterator()
MutableSet<K>
keySet()
RichIterable<K>
keysView()
RichIterable<Pair<K,V>>
keyValuesView()
String
makeString()
String
makeString(String separator)
String
makeString(String start, String separator, String end)
V
max()
V
max(Comparator<? super V> comparator)
<R extends Comparable<? super R>>
VmaxBy(Function<? super V,? extends R> function)
V
min()
V
min(Comparator<? super V> comparator)
<R extends Comparable<? super R>>
VminBy(Function<? super V,? extends R> function)
MutableSortedMap<K,V>
newEmpty()
boolean
noneSatisfy(Predicate<? super V> predicate)
<P> boolean
noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
boolean
notEmpty()
static <K,V,M extends SortedMap<K,V>>
UnmodifiableTreeMap<K,V>of(M map)
This method will take a MutableSortedMap and wrap it directly in a UnmodifiableMutableMap.PartitionMutableList<V>
partition(Predicate<? super V> predicate)
PartitionMutableList<V>
partitionWhile(Predicate<? super V> predicate)
<P> PartitionMutableList<V>
partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
void
putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
V
putPair(Pair<? extends K,? extends V> keyValuePair)
MutableList<V>
reject(Predicate<? super V> predicate)
<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)
MutableSortedMap<K,V>
reject(Predicate2<? super K,? super V> predicate)
<P> MutableList<V>
rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
<P,R extends Collection<V>>
RrejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
boolean
removeAllKeys(Set<? extends K> keys)
boolean
removeIf(Predicate2<? super K,? super V> predicate)
V
removeKey(K key)
MutableList<V>
select(Predicate<? super V> predicate)
<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)
MutableSortedMap<K,V>
select(Predicate2<? super K,? super V> predicate)
<S> MutableList<S>
selectInstancesOf(Class<S> clazz)
<P> MutableList<V>
selectWith(Predicate2<? super V,? super P> predicate, P parameter)
<P,R extends Collection<V>>
RselectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
MutableSortedMap<K,V>
subMap(K fromKey, K toKey)
<V1> MutableObjectDoubleMap<V1>
sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
<V1> MutableObjectDoubleMap<V1>
sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
<V1> MutableObjectLongMap<V1>
sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
<V1> MutableObjectLongMap<V1>
sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
double
sumOfDouble(DoubleFunction<? super V> function)
double
sumOfFloat(FloatFunction<? super V> function)
long
sumOfInt(IntFunction<? super V> function)
long
sumOfLong(LongFunction<? super V> function)
MutableSortedMap<K,V>
tailMap(K fromKey)
MutableSortedMap<K,V>
take(int count)
MutableSortedMap<K,V>
takeWhile(Predicate<? super V> predicate)
MutableSortedMap<K,V>
tap(Procedure<? super V> procedure)
Object[]
toArray()
<T> T[]
toArray(T[] a)
MutableBag<V>
toBag()
<NK,NV>
MutableBiMap<NK,NV>toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
ImmutableSortedMap<K,V>
toImmutable()
MutableList<V>
toList()
<NK,NV>
MutableMap<NK,NV>toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
<NK,NV,R extends Map<NK,NV>>
RtoMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)
MutableSortedMap<K,V>
toReversed()
MutableSet<V>
toSet()
MutableSortedBag<V>
toSortedBag()
MutableSortedBag<V>
toSortedBag(Comparator<? super V> comparator)
MutableList<V>
toSortedList()
MutableList<V>
toSortedList(Comparator<? super V> comparator)
<NK,NV>
MutableSortedMap<NK,NV>toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
<NK,NV>
MutableSortedMap<NK,NV>toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
MutableSortedSet<V>
toSortedSet()
MutableSortedSet<V>
toSortedSet(Comparator<? super V> comparator)
MutableStack<V>
toStack()
V
updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
<P> V
updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
MutableCollection<V>
values()
RichIterable<V>
valuesView()
MutableSortedMap<K,V>
with(Pair<K,V>... pairs)
MutableSortedMap<K,V>
withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
MutableSortedMap<K,V>
withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
MutableSortedMap<K,V>
withKeyValue(K key, V value)
MutableSortedMap<K,V>
withMap(Map<? extends K,? extends V> map)
MutableSortedMap<K,V>
withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
MutableSortedMap<K,V>
withoutAllKeys(Iterable<? extends K> keys)
MutableSortedMap<K,V>
withoutKey(K key)
<S> MutableList<Pair<V,S>>
zip(Iterable<S> that)
<S,R extends Collection<Pair<V,S>>>
Rzip(Iterable<S> that, R target)
MutableList<Pair<V,Integer>>
zipWithIndex()
<R extends Collection<Pair<V,Integer>>>
RzipWithIndex(R target)
-
Methods inherited from class org.eclipse.collections.impl.map.sorted.mutable.UnmodifiableSortedMap
comparator, firstKey, lastKey
-
Methods inherited from class org.eclipse.collections.impl.UnmodifiableMap
clear, containsKey, containsValue, get, isEmpty, put, putAll, remove, size, toString
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
containsKey, containsValue, get, injectIntoKeyValue, parallelStream, spliterator, stream, toString
-
Methods inherited from interface org.eclipse.collections.api.map.MutableMapIterable
aggregateBy, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, forEach, getOrDefault
-
Methods inherited from interface org.eclipse.collections.api.map.sorted.MutableSortedMap
flatCollectWith
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
getFirstOptional, getLastOptional, indexOf, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed, reverseForEach, reverseForEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, isEmpty, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetBy
-
Methods inherited from interface java.util.SortedMap
comparator, firstKey, lastKey
-
Methods inherited from interface org.eclipse.collections.api.map.sorted.SortedMapIterable
comparator
-
-
-
-
Method Detail
-
of
public static <K,V,M extends SortedMap<K,V>> UnmodifiableTreeMap<K,V> of(M map)
This method will take a MutableSortedMap and wrap it directly in a UnmodifiableMutableMap. It will take any other non-Eclipse-Collections SortedMap and first adapt it will a SortedMapAdapter, and then return a UnmodifiableSortedMap that wraps the adapter.
-
putPair
public V putPair(Pair<? extends K,? extends V> keyValuePair)
- Specified by:
putPair
in interfaceMutableMapIterable<K,V>
-
add
public V add(Pair<? extends K,? extends V> keyValuePair)
- Specified by:
add
in interfaceMutableMapIterable<K,V>
-
removeAllKeys
public boolean removeAllKeys(Set<? extends K> keys)
- Specified by:
removeAllKeys
in interfaceMutableMapIterable<K,V>
-
removeIf
public boolean removeIf(Predicate2<? super K,? super V> predicate)
- Specified by:
removeIf
in interfaceMutableMapIterable<K,V>
-
with
public MutableSortedMap<K,V> with(Pair<K,V>... pairs)
- Specified by:
with
in interfaceMutableSortedMap<K,V>
-
withKeyValue
public MutableSortedMap<K,V> withKeyValue(K key, V value)
- Specified by:
withKeyValue
in interfaceMutableMapIterable<K,V>
- Specified by:
withKeyValue
in interfaceMutableSortedMap<K,V>
-
withMap
public MutableSortedMap<K,V> withMap(Map<? extends K,? extends V> map)
- Specified by:
withMap
in interfaceMutableMapIterable<K,V>
- Specified by:
withMap
in interfaceMutableSortedMap<K,V>
-
withMapIterable
public MutableSortedMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
withMapIterable
in interfaceMutableMapIterable<K,V>
- Specified by:
withMapIterable
in interfaceMutableSortedMap<K,V>
-
putAllMapIterable
public void putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
putAllMapIterable
in interfaceMutableMapIterable<K,V>
-
withAllKeyValues
public MutableSortedMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
- Specified by:
withAllKeyValues
in interfaceMutableMapIterable<K,V>
- Specified by:
withAllKeyValues
in interfaceMutableSortedMap<K,V>
-
withAllKeyValueArguments
public MutableSortedMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
- Specified by:
withAllKeyValueArguments
in interfaceMutableMapIterable<K,V>
- Specified by:
withAllKeyValueArguments
in interfaceMutableSortedMap<K,V>
-
withoutKey
public MutableSortedMap<K,V> withoutKey(K key)
- Specified by:
withoutKey
in interfaceMutableMapIterable<K,V>
- Specified by:
withoutKey
in interfaceMutableSortedMap<K,V>
-
withoutAllKeys
public MutableSortedMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeys
in interfaceMutableMapIterable<K,V>
- Specified by:
withoutAllKeys
in interfaceMutableSortedMap<K,V>
-
updateValue
public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValue
in interfaceMutableMapIterable<K,V>
-
updateValueWith
public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWith
in interfaceMutableMapIterable<K,V>
-
collectKeysAndValues
public <E> MutableSortedMap<K,V> collectKeysAndValues(Iterable<E> iterable, Function<? super E,? extends K> keyFunction, Function<? super E,? extends V> valueFunction)
- Specified by:
collectKeysAndValues
in interfaceMutableSortedMap<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentPut
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, V value)
- Specified by:
getIfAbsentPut
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableMapIterable<K,V>
- Specified by:
getIfAbsentPutWith
in interfaceMutableSortedMap<K,V>
-
getIfAbsent
public V getIfAbsent(K key, Function0<? extends V> function)
- Specified by:
getIfAbsent
in interfaceMapIterable<K,V>
-
getIfAbsentValue
public V getIfAbsentValue(K key, V value)
- Specified by:
getIfAbsentValue
in interfaceMapIterable<K,V>
-
getIfAbsentWith
public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentWith
in interfaceMapIterable<K,V>
-
flip
public MutableSortedSetMultimap<V,K> flip()
- Specified by:
flip
in interfaceMapIterable<K,V>
- Specified by:
flip
in interfaceMutableMapIterable<K,V>
- Specified by:
flip
in interfaceMutableSortedMap<K,V>
- Specified by:
flip
in interfaceSortedMapIterable<K,V>
-
clone
public MutableSortedMap<K,V> clone()
- Specified by:
clone
in interfaceMutableSortedMap<K,V>
-
asUnmodifiable
public MutableSortedMap<K,V> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableMapIterable<K,V>
- Specified by:
asUnmodifiable
in interfaceMutableSortedMap<K,V>
-
asSynchronized
public MutableSortedMap<K,V> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableMapIterable<K,V>
- Specified by:
asSynchronized
in interfaceMutableSortedMap<K,V>
-
toImmutable
public ImmutableSortedMap<K,V> toImmutable()
- Specified by:
toImmutable
in interfaceMapIterable<K,V>
- Specified by:
toImmutable
in interfaceMutableMapIterable<K,V>
- Specified by:
toImmutable
in interfaceSortedMapIterable<K,V>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
keysView
public RichIterable<K> keysView()
- Specified by:
keysView
in interfaceMapIterable<K,V>
-
valuesView
public RichIterable<V> valuesView()
- Specified by:
valuesView
in interfaceMapIterable<K,V>
-
keyValuesView
public RichIterable<Pair<K,V>> keyValuesView()
- Specified by:
keyValuesView
in interfaceMapIterable<K,V>
-
newEmpty
public MutableSortedMap<K,V> newEmpty()
- Specified by:
newEmpty
in interfaceMutableMapIterable<K,V>
- Specified by:
newEmpty
in interfaceMutableSortedMap<K,V>
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfaceRichIterable<K>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValue
in interfaceMapIterable<K,V>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKey
in interfaceMapIterable<K,V>
-
forEachKeyValue
public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
- Specified by:
forEachKeyValue
in interfaceMapIterable<K,V>
-
flipUniqueValues
public MutableMapIterable<V,K> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMapIterable<K,V>
- Specified by:
flipUniqueValues
in interfaceMutableMapIterable<K,V>
-
ifPresentApply
public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
- Specified by:
ifPresentApply
in interfaceMapIterable<K,V>
-
tap
public MutableSortedMap<K,V> tap(Procedure<? super V> procedure)
- Specified by:
tap
in interfaceMapIterable<K,V>
- Specified by:
tap
in interfaceMutableMapIterable<K,V>
- Specified by:
tap
in interfaceMutableSortedMap<K,V>
- Specified by:
tap
in interfaceOrderedIterable<K>
- Specified by:
tap
in interfaceReversibleIterable<K>
- Specified by:
tap
in interfaceRichIterable<K>
- Specified by:
tap
in interfaceSortedMapIterable<K,V>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
each
in interfaceRichIterable<K>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceInternalIterable<K>
- Specified by:
forEachWithIndex
in interfaceOrderedIterable<K>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWith
in interfaceInternalIterable<K>
-
collectValues
public <R> MutableSortedMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectValues
in interfaceMapIterable<K,V>
- Specified by:
collectValues
in interfaceMutableMapIterable<K,V>
- Specified by:
collectValues
in interfaceMutableSortedMap<K,V>
- Specified by:
collectValues
in interfaceSortedMapIterable<K,V>
-
collect
public <K2,V2> MutableMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collect
in interfaceMapIterable<K,V>
- Specified by:
collect
in interfaceMutableMapIterable<K,V>
- Specified by:
collect
in interfaceMutableSortedMap<K,V>
- Specified by:
collect
in interfaceSortedMapIterable<K,V>
-
select
public MutableSortedMap<K,V> select(Predicate2<? super K,? super V> predicate)
- Specified by:
select
in interfaceMapIterable<K,V>
- Specified by:
select
in interfaceMutableMapIterable<K,V>
- Specified by:
select
in interfaceMutableSortedMap<K,V>
- Specified by:
select
in interfaceSortedMapIterable<K,V>
-
reject
public MutableSortedMap<K,V> reject(Predicate2<? super K,? super V> predicate)
- Specified by:
reject
in interfaceMapIterable<K,V>
- Specified by:
reject
in interfaceMutableMapIterable<K,V>
- Specified by:
reject
in interfaceMutableSortedMap<K,V>
- Specified by:
reject
in interfaceSortedMapIterable<K,V>
-
detect
public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
- Specified by:
detect
in interfaceMapIterable<K,V>
-
detectOptional
public Optional<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
- Specified by:
detectOptional
in interfaceMapIterable<K,V>
-
anySatisfy
public boolean anySatisfy(Predicate<? super V> predicate)
- Specified by:
anySatisfy
in interfaceRichIterable<K>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
anySatisfyWith
in interfaceRichIterable<K>
-
allSatisfy
public boolean allSatisfy(Predicate<? super V> predicate)
- Specified by:
allSatisfy
in interfaceRichIterable<K>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
allSatisfyWith
in interfaceRichIterable<K>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super V> predicate)
- Specified by:
noneSatisfy
in interfaceRichIterable<K>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWith
in interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfaceRichIterable<K>
-
toBag
public MutableBag<V> toBag()
- Specified by:
toBag
in interfaceRichIterable<K>
-
toSortedBag
public MutableSortedBag<V> toSortedBag()
- Specified by:
toSortedBag
in interfaceRichIterable<K>
-
toSortedBag
public MutableSortedBag<V> toSortedBag(Comparator<? super V> comparator)
- Specified by:
toSortedBag
in interfaceRichIterable<K>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazy
in interfaceRichIterable<K>
-
into
public <R extends Collection<V>> R into(R target)
- Specified by:
into
in interfaceRichIterable<K>
-
toList
public MutableList<V> toList()
- Specified by:
toList
in interfaceRichIterable<K>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toMap
in interfaceRichIterable<K>
-
toMap
public <NK,NV,R extends Map<NK,NV>> R toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)
- Specified by:
toMap
in interfaceRichIterable<K>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMap
in interfaceRichIterable<K>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMap
in interfaceRichIterable<K>
-
toBiMap
public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toBiMap
in interfaceRichIterable<K>
-
toSet
public MutableSet<V> toSet()
- Specified by:
toSet
in interfaceRichIterable<K>
-
toSortedList
public MutableList<V> toSortedList()
- Specified by:
toSortedList
in interfaceRichIterable<K>
-
toSortedList
public MutableList<V> toSortedList(Comparator<? super V> comparator)
- Specified by:
toSortedList
in interfaceRichIterable<K>
-
toSortedSet
public MutableSortedSet<V> toSortedSet()
- Specified by:
toSortedSet
in interfaceRichIterable<K>
-
toSortedSet
public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
- Specified by:
toSortedSet
in interfaceRichIterable<K>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunk
in interfaceRichIterable<K>
-
collect
public <R,C extends Collection<R>> C collect(Function<? super V,? extends R> function, C target)
- Specified by:
collect
in interfaceRichIterable<K>
-
collectIf
public <R,C extends Collection<R>> C collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function, C target)
- Specified by:
collectIf
in interfaceRichIterable<K>
-
collectWith
public <P,VV> MutableList<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWith
in interfaceMutableSortedMap<K,V>
- Specified by:
collectWith
in interfaceOrderedIterable<K>
- Specified by:
collectWith
in interfaceReversibleIterable<K>
- Specified by:
collectWith
in interfaceRichIterable<K>
- Specified by:
collectWith
in interfaceSortedMapIterable<K,V>
-
collectWith
public <P,R,C extends Collection<R>> C collectWith(Function2<? super V,? super P,? extends R> function, P parameter, C targetCollection)
- Specified by:
collectWith
in interfaceRichIterable<K>
-
collectWithIndex
public <R> MutableList<R> collectWithIndex(ObjectIntToObjectFunction<? super V,? extends R> function)
- Specified by:
collectWithIndex
in interfaceMutableSortedMap<K,V>
- Specified by:
collectWithIndex
in interfaceOrderedIterable<K>
- Specified by:
collectWithIndex
in interfaceReversibleIterable<K>
- Specified by:
collectWithIndex
in interfaceSortedMapIterable<K,V>
- Since:
- 9.1
-
collectWithIndex
public <V1,R extends Collection<V1>> R collectWithIndex(ObjectIntToObjectFunction<? super V,? extends V1> function, R target)
- Specified by:
collectWithIndex
in interfaceOrderedIterable<K>
- Since:
- 9.1
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceRichIterable<K>
-
containsAllArguments
public boolean containsAllArguments(Object... elements)
- Specified by:
containsAllArguments
in interfaceRichIterable<K>
-
containsAllIterable
public boolean containsAllIterable(Iterable<?> source)
- Specified by:
containsAllIterable
in interfaceRichIterable<K>
-
containsAll
public boolean containsAll(Collection<?> source)
- Specified by:
containsAll
in interfaceRichIterable<K>
-
count
public int count(Predicate<? super V> predicate)
- Specified by:
count
in interfaceRichIterable<K>
-
countWith
public <P> int countWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
countWith
in interfaceRichIterable<K>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detect
in interfaceRichIterable<K>
-
detectWith
public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWith
in interfaceRichIterable<K>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptional
in interfaceRichIterable<K>
-
detectWithOptional
public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithOptional
in interfaceRichIterable<K>
-
detectIfNone
public V detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
- Specified by:
detectIfNone
in interfaceRichIterable<K>
-
detectWithIfNone
public <P> V detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
- Specified by:
detectWithIfNone
in interfaceRichIterable<K>
-
flatCollect
public <R,C extends Collection<R>> C flatCollect(Function<? super V,? extends Iterable<R>> function, C target)
- Specified by:
flatCollect
in interfaceRichIterable<K>
-
getFirst
public V getFirst()
- Specified by:
getFirst
in interfaceOrderedIterable<K>
- Specified by:
getFirst
in interfaceRichIterable<K>
-
getLast
public V getLast()
- Specified by:
getLast
in interfaceOrderedIterable<K>
- Specified by:
getLast
in interfaceRichIterable<K>
-
getOnly
public V getOnly()
- Specified by:
getOnly
in interfaceRichIterable<K>
-
groupBy
public <R> MutableListMultimap<R,V> groupBy(Function<? super V,? extends R> function)
- Specified by:
groupBy
in interfaceMutableMapIterable<K,V>
- Specified by:
groupBy
in interfaceMutableSortedMap<K,V>
- Specified by:
groupBy
in interfaceOrderedIterable<K>
- Specified by:
groupBy
in interfaceReversibleIterable<K>
- Specified by:
groupBy
in interfaceRichIterable<K>
- Specified by:
groupBy
in interfaceSortedMapIterable<K,V>
-
groupBy
public <R,C extends MutableMultimap<R,V>> C groupBy(Function<? super V,? extends R> function, C target)
- Specified by:
groupBy
in interfaceRichIterable<K>
-
groupByEach
public <R> MutableListMultimap<R,V> groupByEach(Function<? super V,? extends Iterable<R>> function)
- Specified by:
groupByEach
in interfaceMutableMapIterable<K,V>
- Specified by:
groupByEach
in interfaceMutableSortedMap<K,V>
- Specified by:
groupByEach
in interfaceOrderedIterable<K>
- Specified by:
groupByEach
in interfaceReversibleIterable<K>
- Specified by:
groupByEach
in interfaceRichIterable<K>
- Specified by:
groupByEach
in interfaceSortedMapIterable<K,V>
-
groupByEach
public <R,C extends MutableMultimap<R,V>> C groupByEach(Function<? super V,? extends Iterable<R>> function, C target)
- Specified by:
groupByEach
in interfaceRichIterable<K>
-
groupByUniqueKey
public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKey
in interfaceMutableMapIterable<K,V>
- Specified by:
groupByUniqueKey
in interfaceMutableSortedMap<K,V>
- Specified by:
groupByUniqueKey
in interfaceRichIterable<K>
-
groupByUniqueKey
public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByUniqueKey
in interfaceRichIterable<K>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)
- Specified by:
injectInto
in interfaceRichIterable<K>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<K>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<K>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<K>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<K>
-
sumOfInt
public long sumOfInt(IntFunction<? super V> function)
- Specified by:
sumOfInt
in interfaceRichIterable<K>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super V> function)
- Specified by:
sumOfFloat
in interfaceRichIterable<K>
-
sumOfLong
public long sumOfLong(LongFunction<? super V> function)
- Specified by:
sumOfLong
in interfaceRichIterable<K>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super V> function)
- Specified by:
sumOfDouble
in interfaceRichIterable<K>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByInt
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByInt
in interfaceRichIterable<K>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloat
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByFloat
in interfaceRichIterable<K>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLong
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByLong
in interfaceRichIterable<K>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDouble
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByDouble
in interfaceRichIterable<K>
-
makeString
public String makeString()
- Specified by:
makeString
in interfaceRichIterable<K>
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfaceRichIterable<K>
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfaceRichIterable<K>
-
max
public V max()
- Specified by:
max
in interfaceOrderedIterable<K>
- Specified by:
max
in interfaceRichIterable<K>
-
max
public V max(Comparator<? super V> comparator)
- Specified by:
max
in interfaceRichIterable<K>
-
maxBy
public <R extends Comparable<? super R>> V maxBy(Function<? super V,? extends R> function)
- Specified by:
maxBy
in interfaceRichIterable<K>
-
min
public V min()
- Specified by:
min
in interfaceOrderedIterable<K>
- Specified by:
min
in interfaceRichIterable<K>
-
min
public V min(Comparator<? super V> comparator)
- Specified by:
min
in interfaceRichIterable<K>
-
minBy
public <R extends Comparable<? super R>> V minBy(Function<? super V,? extends R> function)
- Specified by:
minBy
in interfaceRichIterable<K>
-
select
public MutableList<V> select(Predicate<? super V> predicate)
- Specified by:
select
in interfaceMutableMapIterable<K,V>
- Specified by:
select
in interfaceMutableSortedMap<K,V>
- Specified by:
select
in interfaceOrderedIterable<K>
- Specified by:
select
in interfaceReversibleIterable<K>
- Specified by:
select
in interfaceRichIterable<K>
- Specified by:
select
in interfaceSortedMapIterable<K,V>
-
select
public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
- Specified by:
select
in interfaceRichIterable<K>
-
selectWith
public <P> MutableList<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceMutableMapIterable<K,V>
- Specified by:
selectWith
in interfaceMutableSortedMap<K,V>
- Specified by:
selectWith
in interfaceOrderedIterable<K>
- Specified by:
selectWith
in interfaceReversibleIterable<K>
- Specified by:
selectWith
in interfaceRichIterable<K>
- Specified by:
selectWith
in interfaceSortedMapIterable<K,V>
-
selectWith
public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
selectWith
in interfaceRichIterable<K>
-
reject
public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
- Specified by:
reject
in interfaceRichIterable<K>
-
reject
public MutableList<V> reject(Predicate<? super V> predicate)
- Specified by:
reject
in interfaceMutableMapIterable<K,V>
- Specified by:
reject
in interfaceMutableSortedMap<K,V>
- Specified by:
reject
in interfaceOrderedIterable<K>
- Specified by:
reject
in interfaceReversibleIterable<K>
- Specified by:
reject
in interfaceRichIterable<K>
- Specified by:
reject
in interfaceSortedMapIterable<K,V>
-
rejectWith
public <P> MutableList<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceMutableMapIterable<K,V>
- Specified by:
rejectWith
in interfaceMutableSortedMap<K,V>
- Specified by:
rejectWith
in interfaceOrderedIterable<K>
- Specified by:
rejectWith
in interfaceReversibleIterable<K>
- Specified by:
rejectWith
in interfaceRichIterable<K>
- Specified by:
rejectWith
in interfaceSortedMapIterable<K,V>
-
rejectWith
public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
rejectWith
in interfaceRichIterable<K>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceRichIterable<K>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceRichIterable<K>
-
zip
public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
- Specified by:
zip
in interfaceOrderedIterable<K>
- Specified by:
zip
in interfaceRichIterable<K>
-
zipWithIndex
public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
- Specified by:
zipWithIndex
in interfaceOrderedIterable<K>
- Specified by:
zipWithIndex
in interfaceRichIterable<K>
-
collect
public <R> MutableList<R> collect(Function<? super V,? extends R> function)
- Specified by:
collect
in interfaceMutableSortedMap<K,V>
- Specified by:
collect
in interfaceOrderedIterable<K>
- Specified by:
collect
in interfaceReversibleIterable<K>
- Specified by:
collect
in interfaceRichIterable<K>
- Specified by:
collect
in interfaceSortedMapIterable<K,V>
-
collectBoolean
public MutableBooleanList collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBoolean
in interfaceMutableSortedMap<K,V>
- Specified by:
collectBoolean
in interfaceOrderedIterable<K>
- Specified by:
collectBoolean
in interfaceReversibleIterable<K>
- Specified by:
collectBoolean
in interfaceRichIterable<K>
- Specified by:
collectBoolean
in interfaceSortedMapIterable<K,V>
-
collectBoolean
public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super V> booleanFunction, R target)
- Specified by:
collectBoolean
in interfaceRichIterable<K>
-
flatCollectBoolean
public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
- Specified by:
flatCollectBoolean
in interfaceRichIterable<K>
-
collectByte
public MutableByteList collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectByte
in interfaceMutableSortedMap<K,V>
- Specified by:
collectByte
in interfaceOrderedIterable<K>
- Specified by:
collectByte
in interfaceReversibleIterable<K>
- Specified by:
collectByte
in interfaceRichIterable<K>
- Specified by:
collectByte
in interfaceSortedMapIterable<K,V>
-
collectByte
public <R extends MutableByteCollection> R collectByte(ByteFunction<? super V> byteFunction, R target)
- Specified by:
collectByte
in interfaceRichIterable<K>
-
flatCollectByte
public <R extends MutableByteCollection> R flatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
- Specified by:
flatCollectByte
in interfaceRichIterable<K>
-
collectChar
public MutableCharList collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectChar
in interfaceMutableSortedMap<K,V>
- Specified by:
collectChar
in interfaceOrderedIterable<K>
- Specified by:
collectChar
in interfaceReversibleIterable<K>
- Specified by:
collectChar
in interfaceRichIterable<K>
- Specified by:
collectChar
in interfaceSortedMapIterable<K,V>
-
collectChar
public <R extends MutableCharCollection> R collectChar(CharFunction<? super V> charFunction, R target)
- Specified by:
collectChar
in interfaceRichIterable<K>
-
flatCollectChar
public <R extends MutableCharCollection> R flatCollectChar(Function<? super V,? extends CharIterable> function, R target)
- Specified by:
flatCollectChar
in interfaceRichIterable<K>
-
collectDouble
public MutableDoubleList collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDouble
in interfaceMutableSortedMap<K,V>
- Specified by:
collectDouble
in interfaceOrderedIterable<K>
- Specified by:
collectDouble
in interfaceReversibleIterable<K>
- Specified by:
collectDouble
in interfaceRichIterable<K>
- Specified by:
collectDouble
in interfaceSortedMapIterable<K,V>
-
collectDouble
public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super V> doubleFunction, R target)
- Specified by:
collectDouble
in interfaceRichIterable<K>
-
flatCollectDouble
public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
- Specified by:
flatCollectDouble
in interfaceRichIterable<K>
-
collectFloat
public MutableFloatList collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloat
in interfaceMutableSortedMap<K,V>
- Specified by:
collectFloat
in interfaceOrderedIterable<K>
- Specified by:
collectFloat
in interfaceReversibleIterable<K>
- Specified by:
collectFloat
in interfaceRichIterable<K>
- Specified by:
collectFloat
in interfaceSortedMapIterable<K,V>
-
collectFloat
public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super V> floatFunction, R target)
- Specified by:
collectFloat
in interfaceRichIterable<K>
-
flatCollectFloat
public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
- Specified by:
flatCollectFloat
in interfaceRichIterable<K>
-
collectInt
public MutableIntList collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectInt
in interfaceMutableSortedMap<K,V>
- Specified by:
collectInt
in interfaceOrderedIterable<K>
- Specified by:
collectInt
in interfaceReversibleIterable<K>
- Specified by:
collectInt
in interfaceRichIterable<K>
- Specified by:
collectInt
in interfaceSortedMapIterable<K,V>
-
collectInt
public <R extends MutableIntCollection> R collectInt(IntFunction<? super V> intFunction, R target)
- Specified by:
collectInt
in interfaceRichIterable<K>
-
flatCollectInt
public <R extends MutableIntCollection> R flatCollectInt(Function<? super V,? extends IntIterable> function, R target)
- Specified by:
flatCollectInt
in interfaceRichIterable<K>
-
collectLong
public MutableLongList collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLong
in interfaceMutableSortedMap<K,V>
- Specified by:
collectLong
in interfaceOrderedIterable<K>
- Specified by:
collectLong
in interfaceReversibleIterable<K>
- Specified by:
collectLong
in interfaceRichIterable<K>
- Specified by:
collectLong
in interfaceSortedMapIterable<K,V>
-
collectLong
public <R extends MutableLongCollection> R collectLong(LongFunction<? super V> longFunction, R target)
- Specified by:
collectLong
in interfaceRichIterable<K>
-
flatCollectLong
public <R extends MutableLongCollection> R flatCollectLong(Function<? super V,? extends LongIterable> function, R target)
- Specified by:
flatCollectLong
in interfaceRichIterable<K>
-
collectShort
public MutableShortList collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShort
in interfaceMutableSortedMap<K,V>
- Specified by:
collectShort
in interfaceOrderedIterable<K>
- Specified by:
collectShort
in interfaceReversibleIterable<K>
- Specified by:
collectShort
in interfaceRichIterable<K>
- Specified by:
collectShort
in interfaceSortedMapIterable<K,V>
-
collectShort
public <R extends MutableShortCollection> R collectShort(ShortFunction<? super V> shortFunction, R target)
- Specified by:
collectShort
in interfaceRichIterable<K>
-
flatCollectShort
public <R extends MutableShortCollection> R flatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
- Specified by:
flatCollectShort
in interfaceRichIterable<K>
-
collectIf
public <R> MutableList<R> collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
- Specified by:
collectIf
in interfaceMutableSortedMap<K,V>
- Specified by:
collectIf
in interfaceOrderedIterable<K>
- Specified by:
collectIf
in interfaceReversibleIterable<K>
- Specified by:
collectIf
in interfaceRichIterable<K>
- Specified by:
collectIf
in interfaceSortedMapIterable<K,V>
-
flatCollect
public <R> MutableList<R> flatCollect(Function<? super V,? extends Iterable<R>> function)
- Specified by:
flatCollect
in interfaceMutableSortedMap<K,V>
- Specified by:
flatCollect
in interfaceOrderedIterable<K>
- Specified by:
flatCollect
in interfaceReversibleIterable<K>
- Specified by:
flatCollect
in interfaceRichIterable<K>
- Specified by:
flatCollect
in interfaceSortedMapIterable<K,V>
-
partition
public PartitionMutableList<V> partition(Predicate<? super V> predicate)
- Specified by:
partition
in interfaceMutableMapIterable<K,V>
- Specified by:
partition
in interfaceMutableSortedMap<K,V>
- Specified by:
partition
in interfaceOrderedIterable<K>
- Specified by:
partition
in interfaceReversibleIterable<K>
- Specified by:
partition
in interfaceRichIterable<K>
- Specified by:
partition
in interfaceSortedMapIterable<K,V>
-
partitionWith
public <P> PartitionMutableList<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWith
in interfaceMutableSortedMap<K,V>
- Specified by:
partitionWith
in interfaceOrderedIterable<K>
- Specified by:
partitionWith
in interfaceReversibleIterable<K>
- Specified by:
partitionWith
in interfaceRichIterable<K>
- Specified by:
partitionWith
in interfaceSortedMapIterable<K,V>
-
selectInstancesOf
public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceMutableMapIterable<K,V>
- Specified by:
selectInstancesOf
in interfaceMutableSortedMap<K,V>
- Specified by:
selectInstancesOf
in interfaceOrderedIterable<K>
- Specified by:
selectInstancesOf
in interfaceReversibleIterable<K>
- Specified by:
selectInstancesOf
in interfaceRichIterable<K>
- Specified by:
selectInstancesOf
in interfaceSortedMapIterable<K,V>
-
zip
public <S> MutableList<Pair<V,S>> zip(Iterable<S> that)
- Specified by:
zip
in interfaceMutableMapIterable<K,V>
- Specified by:
zip
in interfaceMutableSortedMap<K,V>
- Specified by:
zip
in interfaceOrderedIterable<K>
- Specified by:
zip
in interfaceReversibleIterable<K>
- Specified by:
zip
in interfaceRichIterable<K>
- Specified by:
zip
in interfaceSortedMapIterable<K,V>
-
zipWithIndex
public MutableList<Pair<V,Integer>> zipWithIndex()
- Specified by:
zipWithIndex
in interfaceMutableMapIterable<K,V>
- Specified by:
zipWithIndex
in interfaceMutableSortedMap<K,V>
- Specified by:
zipWithIndex
in interfaceOrderedIterable<K>
- Specified by:
zipWithIndex
in interfaceReversibleIterable<K>
- Specified by:
zipWithIndex
in interfaceRichIterable<K>
- Specified by:
zipWithIndex
in interfaceSortedMapIterable<K,V>
-
keySet
public MutableSet<K> keySet()
-
values
public MutableCollection<V> values()
-
headMap
public MutableSortedMap<K,V> headMap(K toKey)
-
tailMap
public MutableSortedMap<K,V> tailMap(K fromKey)
-
subMap
public MutableSortedMap<K,V> subMap(K fromKey, K toKey)
-
entrySet
public MutableSet<Map.Entry<K,V>> entrySet()
-
toReversed
public MutableSortedMap<K,V> toReversed()
- Specified by:
toReversed
in interfaceMutableSortedMap<K,V>
- Specified by:
toReversed
in interfaceReversibleIterable<K>
- Specified by:
toReversed
in interfaceSortedMapIterable<K,V>
-
take
public MutableSortedMap<K,V> take(int count)
- Specified by:
take
in interfaceMutableSortedMap<K,V>
- Specified by:
take
in interfaceReversibleIterable<K>
- Specified by:
take
in interfaceSortedMapIterable<K,V>
-
takeWhile
public MutableSortedMap<K,V> takeWhile(Predicate<? super V> predicate)
- Specified by:
takeWhile
in interfaceMutableSortedMap<K,V>
- Specified by:
takeWhile
in interfaceOrderedIterable<K>
- Specified by:
takeWhile
in interfaceReversibleIterable<K>
- Specified by:
takeWhile
in interfaceSortedMapIterable<K,V>
-
drop
public MutableSortedMap<K,V> drop(int count)
- Specified by:
drop
in interfaceMutableSortedMap<K,V>
- Specified by:
drop
in interfaceReversibleIterable<K>
- Specified by:
drop
in interfaceSortedMapIterable<K,V>
-
dropWhile
public MutableSortedMap<K,V> dropWhile(Predicate<? super V> predicate)
- Specified by:
dropWhile
in interfaceMutableSortedMap<K,V>
- Specified by:
dropWhile
in interfaceOrderedIterable<K>
- Specified by:
dropWhile
in interfaceReversibleIterable<K>
- Specified by:
dropWhile
in interfaceSortedMapIterable<K,V>
-
partitionWhile
public PartitionMutableList<V> partitionWhile(Predicate<? super V> predicate)
- Specified by:
partitionWhile
in interfaceMutableSortedMap<K,V>
- Specified by:
partitionWhile
in interfaceOrderedIterable<K>
- Specified by:
partitionWhile
in interfaceReversibleIterable<K>
- Specified by:
partitionWhile
in interfaceSortedMapIterable<K,V>
-
distinct
public MutableList<V> distinct()
- Specified by:
distinct
in interfaceMutableSortedMap<K,V>
- Specified by:
distinct
in interfaceOrderedIterable<K>
- Specified by:
distinct
in interfaceReversibleIterable<K>
- Specified by:
distinct
in interfaceSortedMapIterable<K,V>
-
detectLastIndex
public int detectLastIndex(Predicate<? super V> predicate)
- Specified by:
detectLastIndex
in interfaceReversibleIterable<K>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)
- Specified by:
corresponds
in interfaceOrderedIterable<K>
-
forEach
public void forEach(int startIndex, int endIndex, Procedure<? super V> procedure)
- Specified by:
forEach
in interfaceOrderedIterable<K>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceOrderedIterable<K>
-
toStack
public MutableStack<V> toStack()
- Specified by:
toStack
in interfaceOrderedIterable<K>
-
detectIndex
public int detectIndex(Predicate<? super V> predicate)
- Specified by:
detectIndex
in interfaceOrderedIterable<K>
-
-