Class FloatObjectHashMap<V>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.FloatObjectHashMap<V>
-
- All Implemented Interfaces:
Externalizable,Serializable,Iterable<V>,InternalIterable<V>,FloatObjectMap<V>,MutableFloatObjectMap<V>,MutablePrimitiveObjectMap<V>,PrimitiveObjectMap<V>,RichIterable<V>
public class FloatObjectHashMap<V> extends Object implements MutableFloatObjectMap<V>, Externalizable
This file was automatically generated from template file primitiveObjectHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatObjectHashMap()FloatObjectHashMap(int initialCapacity)FloatObjectHashMap(FloatObjectMap<? 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()MutableFloatObjectMap<V>asSynchronized()MutableFloatObjectMap<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(float 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)MutableObjectFloatMap<V>flipUniqueValues()voidforEachKey(FloatProcedure procedure)voidforEachKeyValue(FloatObjectProcedure<? super V> procedure)voidforEachValue(Procedure<? super V> procedure)<P> voidforEachWith(Procedure2<? super V,? super P> procedure, P parameter)voidforEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)Vget(float key)VgetFirst()VgetIfAbsent(float key, Function0<? extends V> ifAbsent)VgetIfAbsentPut(float key, Function0<? extends V> function)VgetIfAbsentPut(float key, V value)<P> VgetIfAbsentPutWith(float key, Function<? super P,? extends V> function, P parameter)VgetIfAbsentPutWithKey(float key, FloatToObjectFunction<? 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()MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatObjectPair<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> FloatObjectHashMap<V>newMap()static <V> FloatObjectHashMap<V>newMap(FloatObjectMap<? extends V> map)static <V> FloatObjectHashMap<V>newWithKeysValues(float key, V value)static <V> FloatObjectHashMap<V>newWithKeysValues(float key1, V value1, float key2, V value2)static <V> FloatObjectHashMap<V>newWithKeysValues(float key1, V value1, float key2, V value2, float key3, V value3)static <V> FloatObjectHashMap<V>newWithKeysValues(float key1, V value1, float key2, V value2, float key3, V value3, float 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(float key, V value)voidputAll(FloatObjectMap<? extends V> map)voidreadExternal(ObjectInput in)MutableBag<V>reject(Predicate<? super V> predicate)<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)FloatObjectHashMap<V>reject(FloatObjectPredicate<? 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(float key)booleanremoveIf(FloatObjectPredicate<? super V> predicate)VremoveKey(float key)MutableBag<V>select(Predicate<? super V> predicate)<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)FloatObjectHashMap<V>select(FloatObjectPredicate<? 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)FloatObjectHashMap<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)ImmutableFloatObjectMap<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(float key, Function0<? extends V> factory, Function<? super V,? extends V> function)<P> VupdateValueWith(float key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)Collection<V>values()FloatObjectHashMap<V>withKeysValues(float key1, V value1, float key2, V value2)FloatObjectHashMap<V>withKeysValues(float key1, V value1, float key2, V value2, float key3, V value3)FloatObjectHashMap<V>withKeysValues(float key1, V value1, float key2, V value2, float key3, V value3, float key4, V value4)FloatObjectHashMap<V>withKeyValue(float key, V value)MutableFloatObjectMap<V>withoutAllKeys(FloatIterable keys)MutableFloatObjectMap<V>withoutKey(float 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.FloatObjectMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatObjectMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutablePrimitiveObjectMap
aggregateBy, flatCollectWith, reduceBy
-
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, reduceBy, 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
-
FloatObjectHashMap
public FloatObjectHashMap()
-
FloatObjectHashMap
public FloatObjectHashMap(int initialCapacity)
-
FloatObjectHashMap
public FloatObjectHashMap(FloatObjectMap<? extends V> map)
-
-
Method Detail
-
newMap
public static <V> FloatObjectHashMap<V> newMap()
-
newMap
public static <V> FloatObjectHashMap<V> newMap(FloatObjectMap<? extends V> map)
-
newWithKeysValues
public static <V> FloatObjectHashMap<V> newWithKeysValues(float key, V value)
-
newWithKeysValues
public static <V> FloatObjectHashMap<V> newWithKeysValues(float key1, V value1, float key2, V value2)
-
newWithKeysValues
public static <V> FloatObjectHashMap<V> newWithKeysValues(float key1, V value1, float key2, V value2, float key3, V value3)
-
newWithKeysValues
public static <V> FloatObjectHashMap<V> newWithKeysValues(float key1, V value1, float key2, V value2, float key3, V value3, float 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 FloatObjectHashMap<V> tap(Procedure<? super V> procedure)
- Specified by:
tapin interfaceFloatObjectMap<V>- Specified by:
tapin interfaceMutableFloatObjectMap<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(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatObjectMap<V>
-
forEachKeyValue
public void forEachKeyValue(FloatObjectProcedure<? super V> procedure)
- Specified by:
forEachKeyValuein interfaceFloatObjectMap<V>
-
select
public FloatObjectHashMap<V> select(FloatObjectPredicate<? super V> predicate)
- Specified by:
selectin interfaceFloatObjectMap<V>- Specified by:
selectin interfaceMutableFloatObjectMap<V>
-
reject
public FloatObjectHashMap<V> reject(FloatObjectPredicate<? super V> predicate)
- Specified by:
rejectin interfaceFloatObjectMap<V>- Specified by:
rejectin interfaceMutableFloatObjectMap<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(float key, V value)
- Specified by:
putin interfaceMutableFloatObjectMap<V>
-
putAll
public void putAll(FloatObjectMap<? extends V> map)
- Specified by:
putAllin interfaceMutableFloatObjectMap<V>
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatObjectMap<V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfacePrimitiveObjectMap<V>
-
get
public V get(float key)
- Specified by:
getin interfaceFloatObjectMap<V>
-
getIfAbsent
public V getIfAbsent(float key, Function0<? extends V> ifAbsent)
- Specified by:
getIfAbsentin interfaceFloatObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(float key, V value)
- Specified by:
getIfAbsentPutin interfaceMutableFloatObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(float key, Function0<? extends V> function)
- Specified by:
getIfAbsentPutin interfaceMutableFloatObjectMap<V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(float key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatObjectMap<V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(float key, FloatToObjectFunction<? extends V> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatObjectMap<V>
-
updateValue
public V updateValue(float key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValuein interfaceMutableFloatObjectMap<V>
-
updateValueWith
public <P> V updateValueWith(float key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWithin interfaceMutableFloatObjectMap<V>
-
removeKey
public V removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatObjectMap<V>
-
remove
public V remove(float key)
- Specified by:
removein interfaceMutableFloatObjectMap<V>
-
withKeyValue
public FloatObjectHashMap<V> withKeyValue(float key, V value)
- Specified by:
withKeyValuein interfaceMutableFloatObjectMap<V>
-
withoutKey
public MutableFloatObjectMap<V> withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatObjectMap<V>
-
withoutAllKeys
public MutableFloatObjectMap<V> withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatObjectMap<V>
-
withKeysValues
public FloatObjectHashMap<V> withKeysValues(float key1, V value1, float key2, V value2)
-
withKeysValues
public FloatObjectHashMap<V> withKeysValues(float key1, V value1, float key2, V value2, float key3, V value3)
-
withKeysValues
public FloatObjectHashMap<V> withKeysValues(float key1, V value1, float key2, V value2, float key3, V value3, float key4, V value4)
-
asUnmodifiable
public MutableFloatObjectMap<V> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatObjectMap<V>
-
asSynchronized
public MutableFloatObjectMap<V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatObjectMap<V>
-
toImmutable
public ImmutableFloatObjectMap<V> toImmutable()
- Specified by:
toImmutablein interfaceFloatObjectMap<V>
-
removeIf
public boolean removeIf(FloatObjectPredicate<? super V> predicate)
- Specified by:
removeIfin interfaceMutableFloatObjectMap<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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatObjectMap<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 LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatObjectMap<V>
-
keyValuesView
public RichIterable<FloatObjectPair<V>> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatObjectMap<V>
-
flipUniqueValues
public MutableObjectFloatMap<V> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatObjectMap<V>- Specified by:
flipUniqueValuesin interfaceMutableFloatObjectMap<V>
-
-