Class ByteObjectHashMap<V>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.ByteObjectHashMap<V>
-
- All Implemented Interfaces:
Externalizable,Serializable,Iterable<V>,InternalIterable<V>,ByteObjectMap<V>,MutableByteObjectMap<V>,MutablePrimitiveObjectMap<V>,PrimitiveObjectMap<V>,RichIterable<V>
public class ByteObjectHashMap<V> extends Object implements MutableByteObjectMap<V>, Externalizable
This file was automatically generated from template file primitiveObjectHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteObjectHashMap()ByteObjectHashMap(int initialCapacity)ByteObjectHashMap(ByteObjectMap<? extends V> map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <K,VV>
MutableMap<K,VV>aggregateInPlaceBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)booleanallSatisfy(Predicate<? super V> predicate)<P> booleanallSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)booleananySatisfy(Predicate<? super V> predicate)<P> booleananySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyIterable<V>asLazy()MutableByteObjectMap<V>asSynchronized()MutableByteObjectMap<V>asUnmodifiable()RichIterable<RichIterable<V>>chunk(int size)voidclear()<VV> MutableBag<VV>collect(Function<? super V,? extends VV> function)<VV,R extends Collection<VV>>
Rcollect(Function<? super V,? extends VV> function, R target)MutableBooleanBagcollectBoolean(BooleanFunction<? super V> booleanFunction)MutableByteBagcollectByte(ByteFunction<? super V> byteFunction)MutableCharBagcollectChar(CharFunction<? super V> charFunction)MutableDoubleBagcollectDouble(DoubleFunction<? super V> doubleFunction)MutableFloatBagcollectFloat(FloatFunction<? super V> floatFunction)<VV> MutableBag<VV>collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)<VV,R extends Collection<VV>>
RcollectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)MutableIntBagcollectInt(IntFunction<? super V> intFunction)MutableLongBagcollectLong(LongFunction<? super V> longFunction)MutableShortBagcollectShort(ShortFunction<? super V> shortFunction)<P,VV>
MutableBag<VV>collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)<P,VV,R extends Collection<VV>>
RcollectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(Object object)booleancontainsAll(Collection<?> source)booleancontainsAllArguments(Object... elements)booleancontainsAllIterable(Iterable<?> source)booleancontainsKey(byte key)booleancontainsValue(Object value)intcount(Predicate<? super V> predicate)<P> intcountWith(Predicate2<? super V,? super P> predicate, P parameter)Vdetect(Predicate<? super V> predicate)VdetectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)Optional<V>detectOptional(Predicate<? super V> predicate)<P> VdetectWith(Predicate2<? super V,? super P> predicate, P parameter)<P> VdetectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)<P> Optional<V>detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)voideach(Procedure<? super V> procedure)booleanequals(Object obj)<VV> MutableBag<VV>flatCollect(Function<? super V,? extends Iterable<VV>> function)<VV,R extends Collection<VV>>
RflatCollect(Function<? super V,? extends Iterable<VV>> function, R target)MutableObjectByteMap<V>flipUniqueValues()voidforEachKey(ByteProcedure procedure)voidforEachKeyValue(ByteObjectProcedure<? super V> procedure)voidforEachValue(Procedure<? super V> procedure)<P> voidforEachWith(Procedure2<? super V,? super P> procedure, P parameter)voidforEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)Vget(byte key)VgetFirst()VgetIfAbsent(byte key, Function0<? extends V> ifAbsent)VgetIfAbsentPut(byte key, Function0<? extends V> function)VgetIfAbsentPut(byte key, V value)<P> VgetIfAbsentPutWith(byte key, Function<? super P,? extends V> function, P parameter)VgetIfAbsentPutWithKey(byte key, ByteToObjectFunction<? extends V> function)VgetLast()VgetOnly()<VV> MutableBagMultimap<VV,V>groupBy(Function<? super V,? extends VV> function)<VV,R extends MutableMultimap<VV,V>>
RgroupBy(Function<? super V,? extends VV> function, R target)<VV> MutableBagMultimap<VV,V>groupByEach(Function<? super V,? extends Iterable<VV>> function)<VV,R extends MutableMultimap<VV,V>>
RgroupByEach(Function<? super V,? extends Iterable<VV>> function, R 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)inthashCode()doubleinjectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)floatinjectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)intinjectInto(int injectedValue, IntObjectToIntFunction<? super V> function)longinjectInto(long injectedValue, LongObjectToLongFunction<? super V> function)<IV> IVinjectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)<R extends Collection<V>>
Rinto(R target)booleanisEmpty()Iterator<V>iterator()MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteObjectPair<V>>keyValuesView()StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)Vmax()Vmax(Comparator<? super V> comparator)<VV extends Comparable<? super VV>>
VmaxBy(Function<? super V,? extends VV> function)Vmin()Vmin(Comparator<? super V> comparator)<VV extends Comparable<? super VV>>
VminBy(Function<? super V,? extends VV> function)static <V> ByteObjectHashMap<V>newMap()static <V> ByteObjectHashMap<V>newMap(ByteObjectMap<? extends V> map)static <V> ByteObjectHashMap<V>newWithKeysValues(byte key, V value)static <V> ByteObjectHashMap<V>newWithKeysValues(byte key1, V value1, byte key2, V value2)static <V> ByteObjectHashMap<V>newWithKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3)static <V> ByteObjectHashMap<V>newWithKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3, byte key4, V value4)booleannoneSatisfy(Predicate<? super V> predicate)<P> booleannoneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)booleannotEmpty()PartitionMutableBag<V>partition(Predicate<? super V> predicate)<P> PartitionMutableBag<V>partitionWith(Predicate2<? super V,? super P> predicate, P parameter)Vput(byte key, V value)voidputAll(ByteObjectMap<? extends V> map)voidreadExternal(ObjectInput in)MutableBag<V>reject(Predicate<? super V> predicate)<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)ByteObjectHashMap<V>reject(ByteObjectPredicate<? super V> predicate)<P> MutableBag<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)Vremove(byte key)booleanremoveIf(ByteObjectPredicate<? super V> predicate)VremoveKey(byte key)MutableBag<V>select(Predicate<? super V> predicate)<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)ByteObjectHashMap<V>select(ByteObjectPredicate<? super V> predicate)<S> MutableBag<S>selectInstancesOf(Class<S> clazz)<P> MutableBag<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)intsize()<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)doublesumOfDouble(DoubleFunction<? super V> function)doublesumOfFloat(FloatFunction<? super V> function)longsumOfInt(IntFunction<? super V> function)longsumOfLong(LongFunction<? super V> function)ByteObjectHashMap<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)ImmutableByteObjectMap<V>toImmutable()MutableList<V>toList()<NK,NV>
MutableMap<NK,NV>toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)MutableSet<V>toSet()MutableSortedBag<V>toSortedBag()MutableSortedBag<V>toSortedBag(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)StringtoString()booleantrimToSize()VupdateValue(byte key, Function0<? extends V> factory, Function<? super V,? extends V> function)<P> VupdateValueWith(byte key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)Collection<V>values()ByteObjectHashMap<V>withKeysValues(byte key1, V value1, byte key2, V value2)ByteObjectHashMap<V>withKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3)ByteObjectHashMap<V>withKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3, byte key4, V value4)ByteObjectHashMap<V>withKeyValue(byte key, V value)MutableByteObjectMap<V>withoutAllKeys(ByteIterable keys)MutableByteObjectMap<V>withoutKey(byte key)voidwriteExternal(ObjectOutput out)<S> MutableBag<Pair<V,S>>zip(Iterable<S> that)Deprecated.in 7.0.<S,R extends Collection<Pair<V,S>>>
Rzip(Iterable<S> that, R target)MutableSet<Pair<V,Integer>>zipWithIndex()Deprecated.in 7.0.<R extends Collection<Pair<V,Integer>>>
RzipWithIndex(R target)-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteObjectMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteObjectMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutablePrimitiveObjectMap
aggregateBy, flatCollectWith
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.PrimitiveObjectMap
parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countBy, countByEach, countByEach, countByWith, countByWith, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toMap, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMapBy, toSortedSetBy
-
-
-
-
Constructor Detail
-
ByteObjectHashMap
public ByteObjectHashMap()
-
ByteObjectHashMap
public ByteObjectHashMap(int initialCapacity)
-
ByteObjectHashMap
public ByteObjectHashMap(ByteObjectMap<? extends V> map)
-
-
Method Detail
-
newMap
public static <V> ByteObjectHashMap<V> newMap()
-
newMap
public static <V> ByteObjectHashMap<V> newMap(ByteObjectMap<? extends V> map)
-
newWithKeysValues
public static <V> ByteObjectHashMap<V> newWithKeysValues(byte key, V value)
-
newWithKeysValues
public static <V> ByteObjectHashMap<V> newWithKeysValues(byte key1, V value1, byte key2, V value2)
-
newWithKeysValues
public static <V> ByteObjectHashMap<V> newWithKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3)
-
newWithKeysValues
public static <V> ByteObjectHashMap<V> newWithKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3, byte key4, V value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacePrimitiveObjectMap<V>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacePrimitiveObjectMap<V>- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveObjectMap<V>- Specified by:
toStringin interfaceRichIterable<V>- Overrides:
toStringin classObject
-
size
public int size()
- Specified by:
sizein interfaceRichIterable<V>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceRichIterable<V>
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfaceRichIterable<V>
-
makeString
public String makeString()
- Specified by:
makeStringin interfaceRichIterable<V>
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfaceRichIterable<V>
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfaceRichIterable<V>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceRichIterable<V>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceRichIterable<V>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceRichIterable<V>
-
containsAllIterable
public boolean containsAllIterable(Iterable<?> source)
- Specified by:
containsAllIterablein interfaceRichIterable<V>
-
containsAll
public boolean containsAll(Collection<?> source)
- Specified by:
containsAllin interfaceRichIterable<V>
-
containsAllArguments
public boolean containsAllArguments(Object... elements)
- Specified by:
containsAllArgumentsin interfaceRichIterable<V>
-
tap
public ByteObjectHashMap<V> tap(Procedure<? super V> procedure)
- Specified by:
tapin interfaceByteObjectMap<V>- Specified by:
tapin interfaceMutableByteObjectMap<V>- Specified by:
tapin interfaceRichIterable<V>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
eachin interfaceRichIterable<V>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<V>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<V>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValuein interfacePrimitiveObjectMap<V>
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteObjectMap<V>
-
forEachKeyValue
public void forEachKeyValue(ByteObjectProcedure<? super V> procedure)
- Specified by:
forEachKeyValuein interfaceByteObjectMap<V>
-
select
public ByteObjectHashMap<V> select(ByteObjectPredicate<? super V> predicate)
- Specified by:
selectin interfaceByteObjectMap<V>- Specified by:
selectin interfaceMutableByteObjectMap<V>
-
reject
public ByteObjectHashMap<V> reject(ByteObjectPredicate<? super V> predicate)
- Specified by:
rejectin interfaceByteObjectMap<V>- Specified by:
rejectin interfaceMutableByteObjectMap<V>
-
select
public MutableBag<V> select(Predicate<? super V> predicate)
- Specified by:
selectin interfaceMutablePrimitiveObjectMap<V>- Specified by:
selectin interfacePrimitiveObjectMap<V>- Specified by:
selectin interfaceRichIterable<V>
-
select
public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
- Specified by:
selectin interfaceRichIterable<V>
-
selectWith
public <P> MutableBag<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceMutablePrimitiveObjectMap<V>- Specified by:
selectWithin interfacePrimitiveObjectMap<V>- Specified by:
selectWithin interfaceRichIterable<V>
-
selectWith
public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
selectWithin interfaceRichIterable<V>
-
reject
public MutableBag<V> reject(Predicate<? super V> predicate)
- Specified by:
rejectin interfaceMutablePrimitiveObjectMap<V>- Specified by:
rejectin interfacePrimitiveObjectMap<V>- Specified by:
rejectin interfaceRichIterable<V>
-
reject
public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
- Specified by:
rejectin interfaceRichIterable<V>
-
rejectWith
public <P> MutableBag<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceMutablePrimitiveObjectMap<V>- Specified by:
rejectWithin interfacePrimitiveObjectMap<V>- Specified by:
rejectWithin interfaceRichIterable<V>
-
rejectWith
public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
rejectWithin interfaceRichIterable<V>
-
partition
public PartitionMutableBag<V> partition(Predicate<? super V> predicate)
- Specified by:
partitionin interfaceMutablePrimitiveObjectMap<V>- Specified by:
partitionin interfacePrimitiveObjectMap<V>- Specified by:
partitionin interfaceRichIterable<V>
-
partitionWith
public <P> PartitionMutableBag<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceMutablePrimitiveObjectMap<V>- Specified by:
partitionWithin interfacePrimitiveObjectMap<V>- Specified by:
partitionWithin interfaceRichIterable<V>
-
selectInstancesOf
public <S> MutableBag<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceMutablePrimitiveObjectMap<V>- Specified by:
selectInstancesOfin interfacePrimitiveObjectMap<V>- Specified by:
selectInstancesOfin interfaceRichIterable<V>
-
collect
public <VV> MutableBag<VV> collect(Function<? super V,? extends VV> function)
- Specified by:
collectin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectin interfacePrimitiveObjectMap<V>- Specified by:
collectin interfaceRichIterable<V>
-
collectBoolean
public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBooleanin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectBooleanin interfacePrimitiveObjectMap<V>- Specified by:
collectBooleanin interfaceRichIterable<V>
-
collectByte
public MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectBytein interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectBytein interfacePrimitiveObjectMap<V>- Specified by:
collectBytein interfaceRichIterable<V>
-
collectChar
public MutableCharBag collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectCharin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectCharin interfacePrimitiveObjectMap<V>- Specified by:
collectCharin interfaceRichIterable<V>
-
collectDouble
public MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDoublein interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectDoublein interfacePrimitiveObjectMap<V>- Specified by:
collectDoublein interfaceRichIterable<V>
-
collectFloat
public MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloatin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectFloatin interfacePrimitiveObjectMap<V>- Specified by:
collectFloatin interfaceRichIterable<V>
-
collectInt
public MutableIntBag collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectIntin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectIntin interfacePrimitiveObjectMap<V>- Specified by:
collectIntin interfaceRichIterable<V>
-
collectLong
public MutableLongBag collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLongin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectLongin interfacePrimitiveObjectMap<V>- Specified by:
collectLongin interfaceRichIterable<V>
-
collectShort
public MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShortin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectShortin interfacePrimitiveObjectMap<V>- Specified by:
collectShortin interfaceRichIterable<V>
-
collectWith
public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWithin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectWithin interfacePrimitiveObjectMap<V>- Specified by:
collectWithin interfaceRichIterable<V>
-
collectWith
public <P,VV,R extends Collection<VV>> R collectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)
- Specified by:
collectWithin interfaceRichIterable<V>
-
collect
public <VV,R extends Collection<VV>> R collect(Function<? super V,? extends VV> function, R target)
- Specified by:
collectin interfaceRichIterable<V>
-
collectIf
public <VV> MutableBag<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
- Specified by:
collectIfin interfaceMutablePrimitiveObjectMap<V>- Specified by:
collectIfin interfacePrimitiveObjectMap<V>- Specified by:
collectIfin interfaceRichIterable<V>
-
collectIf
public <VV,R extends Collection<VV>> R collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)
- Specified by:
collectIfin interfaceRichIterable<V>
-
flatCollect
public <VV> MutableBag<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
flatCollectin interfaceMutablePrimitiveObjectMap<V>- Specified by:
flatCollectin interfacePrimitiveObjectMap<V>- Specified by:
flatCollectin interfaceRichIterable<V>
-
flatCollect
public <VV,R extends Collection<VV>> R flatCollect(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
flatCollectin interfaceRichIterable<V>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detectin interfaceRichIterable<V>
-
detectWith
public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithin interfaceRichIterable<V>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptionalin interfaceRichIterable<V>
-
detectWithOptional
public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithOptionalin interfaceRichIterable<V>
-
detectIfNone
public V detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
- Specified by:
detectIfNonein interfaceRichIterable<V>
-
detectWithIfNone
public <P> V detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
- Specified by:
detectWithIfNonein interfaceRichIterable<V>
-
count
public int count(Predicate<? super V> predicate)
- Specified by:
countin interfaceRichIterable<V>
-
countWith
public <P> int countWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
countWithin interfaceRichIterable<V>
-
anySatisfy
public boolean anySatisfy(Predicate<? super V> predicate)
- Specified by:
anySatisfyin interfaceRichIterable<V>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
anySatisfyWithin interfaceRichIterable<V>
-
allSatisfy
public boolean allSatisfy(Predicate<? super V> predicate)
- Specified by:
allSatisfyin interfaceRichIterable<V>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
allSatisfyWithin interfaceRichIterable<V>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super V> predicate)
- Specified by:
noneSatisfyin interfaceRichIterable<V>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWithin interfaceRichIterable<V>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)- Specified by:
injectIntoin interfaceRichIterable<V>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<V>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<V>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<V>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<V>
-
zip
@Deprecated public <S> MutableBag<Pair<V,S>> zip(Iterable<S> that)
Deprecated.in 7.0. UseOrderedIterable.zip(Iterable)instead.- Specified by:
zipin interfaceMutablePrimitiveObjectMap<V>- Specified by:
zipin interfacePrimitiveObjectMap<V>- Specified by:
zipin interfaceRichIterable<V>
-
zip
public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
- Specified by:
zipin interfaceRichIterable<V>
-
zipWithIndex
@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
Deprecated.in 7.0. UseOrderedIterable.zipWithIndex()instead.- Specified by:
zipWithIndexin interfaceMutablePrimitiveObjectMap<V>- Specified by:
zipWithIndexin interfacePrimitiveObjectMap<V>- Specified by:
zipWithIndexin interfaceRichIterable<V>
-
zipWithIndex
public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
- Specified by:
zipWithIndexin interfaceRichIterable<V>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunkin interfaceRichIterable<V>
-
aggregateInPlaceBy
public <K,VV> MutableMap<K,VV> aggregateInPlaceBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
- Specified by:
aggregateInPlaceByin interfaceMutablePrimitiveObjectMap<V>- Specified by:
aggregateInPlaceByin interfaceRichIterable<V>
-
groupBy
public <VV> MutableBagMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupByin interfaceMutablePrimitiveObjectMap<V>- Specified by:
groupByin interfacePrimitiveObjectMap<V>- Specified by:
groupByin interfaceRichIterable<V>
-
groupBy
public <VV,R extends MutableMultimap<VV,V>> R groupBy(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByin interfaceRichIterable<V>
-
groupByEach
public <VV> MutableBagMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEachin interfaceMutablePrimitiveObjectMap<V>- Specified by:
groupByEachin interfacePrimitiveObjectMap<V>- Specified by:
groupByEachin interfaceRichIterable<V>
-
groupByEach
public <VV,R extends MutableMultimap<VV,V>> R groupByEach(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
groupByEachin interfaceRichIterable<V>
-
groupByUniqueKey
public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKeyin interfaceMutablePrimitiveObjectMap<V>- Specified by:
groupByUniqueKeyin interfacePrimitiveObjectMap<V>- Specified by:
groupByUniqueKeyin interfaceRichIterable<V>
-
groupByUniqueKey
public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByUniqueKeyin interfaceRichIterable<V>
-
getFirst
public V getFirst()
- Specified by:
getFirstin interfaceRichIterable<V>
-
getLast
public V getLast()
- Specified by:
getLastin interfaceRichIterable<V>
-
getOnly
public V getOnly()
- Specified by:
getOnlyin interfaceRichIterable<V>
-
toList
public MutableList<V> toList()
- Specified by:
toListin interfaceRichIterable<V>
-
into
public <R extends Collection<V>> R into(R target)
- Specified by:
intoin interfaceRichIterable<V>
-
toSet
public MutableSet<V> toSet()
- Specified by:
toSetin interfaceRichIterable<V>
-
toSortedSet
public MutableSortedSet<V> toSortedSet()
- Specified by:
toSortedSetin interfaceRichIterable<V>
-
toSortedSet
public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
- Specified by:
toSortedSetin interfaceRichIterable<V>
-
toBag
public MutableBag<V> toBag()
- Specified by:
toBagin interfaceRichIterable<V>
-
toSortedBag
public MutableSortedBag<V> toSortedBag()
- Specified by:
toSortedBagin interfaceRichIterable<V>
-
toSortedBag
public MutableSortedBag<V> toSortedBag(Comparator<? super V> comparator)
- Specified by:
toSortedBagin interfaceRichIterable<V>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toMapin interfaceRichIterable<V>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMapin interfaceRichIterable<V>
-
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:
toSortedMapin interfaceRichIterable<V>
-
toBiMap
public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toBiMapin interfaceRichIterable<V>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazyin interfaceRichIterable<V>
-
min
public V min(Comparator<? super V> comparator)
- Specified by:
minin interfaceRichIterable<V>
-
max
public V max(Comparator<? super V> comparator)
- Specified by:
maxin interfaceRichIterable<V>
-
min
public V min()
- Specified by:
minin interfaceRichIterable<V>
-
max
public V max()
- Specified by:
maxin interfaceRichIterable<V>
-
maxBy
public <VV extends Comparable<? super VV>> V maxBy(Function<? super V,? extends VV> function)
- Specified by:
maxByin interfaceRichIterable<V>
-
minBy
public <VV extends Comparable<? super VV>> V minBy(Function<? super V,? extends VV> function)
- Specified by:
minByin interfaceRichIterable<V>
-
sumOfInt
public long sumOfInt(IntFunction<? super V> function)
- Specified by:
sumOfIntin interfaceRichIterable<V>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super V> function)
- Specified by:
sumOfFloatin interfaceRichIterable<V>
-
sumOfLong
public long sumOfLong(LongFunction<? super V> function)
- Specified by:
sumOfLongin interfaceRichIterable<V>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super V> function)
- Specified by:
sumOfDoublein interfaceRichIterable<V>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByIntin interfaceMutablePrimitiveObjectMap<V>- Specified by:
sumByIntin interfaceRichIterable<V>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloatin interfaceMutablePrimitiveObjectMap<V>- Specified by:
sumByFloatin interfaceRichIterable<V>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLongin interfaceMutablePrimitiveObjectMap<V>- Specified by:
sumByLongin interfaceRichIterable<V>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDoublein interfaceMutablePrimitiveObjectMap<V>- Specified by:
sumByDoublein interfaceRichIterable<V>
-
clear
public void clear()
- Specified by:
clearin interfaceMutablePrimitiveObjectMap<V>
-
put
public V put(byte key, V value)
- Specified by:
putin interfaceMutableByteObjectMap<V>
-
putAll
public void putAll(ByteObjectMap<? extends V> map)
- Specified by:
putAllin interfaceMutableByteObjectMap<V>
-
containsKey
public boolean containsKey(byte key)
- Specified by:
containsKeyin interfaceByteObjectMap<V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfacePrimitiveObjectMap<V>
-
get
public V get(byte key)
- Specified by:
getin interfaceByteObjectMap<V>
-
getIfAbsent
public V getIfAbsent(byte key, Function0<? extends V> ifAbsent)
- Specified by:
getIfAbsentin interfaceByteObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(byte key, V value)
- Specified by:
getIfAbsentPutin interfaceMutableByteObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(byte key, Function0<? extends V> function)
- Specified by:
getIfAbsentPutin interfaceMutableByteObjectMap<V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(byte key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableByteObjectMap<V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(byte key, ByteToObjectFunction<? extends V> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteObjectMap<V>
-
updateValue
public V updateValue(byte key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValuein interfaceMutableByteObjectMap<V>
-
updateValueWith
public <P> V updateValueWith(byte key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWithin interfaceMutableByteObjectMap<V>
-
removeKey
public V removeKey(byte key)
- Specified by:
removeKeyin interfaceMutableByteObjectMap<V>
-
remove
public V remove(byte key)
- Specified by:
removein interfaceMutableByteObjectMap<V>
-
withKeyValue
public ByteObjectHashMap<V> withKeyValue(byte key, V value)
- Specified by:
withKeyValuein interfaceMutableByteObjectMap<V>
-
withoutKey
public MutableByteObjectMap<V> withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteObjectMap<V>
-
withoutAllKeys
public MutableByteObjectMap<V> withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteObjectMap<V>
-
withKeysValues
public ByteObjectHashMap<V> withKeysValues(byte key1, V value1, byte key2, V value2)
-
withKeysValues
public ByteObjectHashMap<V> withKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3)
-
withKeysValues
public ByteObjectHashMap<V> withKeysValues(byte key1, V value1, byte key2, V value2, byte key3, V value3, byte key4, V value4)
-
asUnmodifiable
public MutableByteObjectMap<V> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteObjectMap<V>
-
asSynchronized
public MutableByteObjectMap<V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteObjectMap<V>
-
toImmutable
public ImmutableByteObjectMap<V> toImmutable()
- Specified by:
toImmutablein interfaceByteObjectMap<V>
-
removeIf
public boolean removeIf(ByteObjectPredicate<? super V> predicate)
- Specified by:
removeIfin interfaceMutableByteObjectMap<V>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
public MutableByteSet keySet()
- Specified by:
keySetin interfaceByteObjectMap<V>
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
values
public Collection<V> values()
- Specified by:
valuesin interfacePrimitiveObjectMap<V>
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteObjectMap<V>
-
keyValuesView
public RichIterable<ByteObjectPair<V>> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteObjectMap<V>
-
flipUniqueValues
public MutableObjectByteMap<V> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteObjectMap<V>- Specified by:
flipUniqueValuesin interfaceMutableByteObjectMap<V>
-
-