Interface ImmutableFloatObjectMap<V>
-
- All Superinterfaces:
FloatObjectMap<V>
,ImmutablePrimitiveObjectMap<V>
,InternalIterable<V>
,java.lang.Iterable<V>
,PrimitiveObjectMap<V>
,RichIterable<V>
- All Known Implementing Classes:
AbstractImmutableFloatObjectMap
,ImmutableFloatObjectEmptyMap
,ImmutableFloatObjectHashMap
,ImmutableFloatObjectSingletonMap
public interface ImmutableFloatObjectMap<V> extends FloatObjectMap<V>, ImmutablePrimitiveObjectMap<V>
This file was automatically generated from template file immutablePrimitiveObjectMap.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableObjectFloatMap<V>
flipUniqueValues()
Return the ObjectFloatMap that is obtained by flipping the direction of this map and making the associations from value to key.ImmutableFloatObjectMap<V>
newWithKeyValue(float key, V value)
Copy this map, associate the value with the key (replacing the value if one already exists forkey
), and return the copy as new immutable map.ImmutableFloatObjectMap<V>
newWithoutAllKeys(FloatIterable keys)
Copy this map, remove any associated values with the specified keys (if any exist), and return the copy as a new immutable map.ImmutableFloatObjectMap<V>
newWithoutKey(float key)
Copy this map, remove any associated value with the key (if one exists), and return the copy as a new immutable map.ImmutableFloatObjectMap<V>
reject(FloatObjectPredicate<? super V> predicate)
Return a copy of this map containing only the key/value pairs that do not match the predicate.ImmutableFloatObjectMap<V>
select(FloatObjectPredicate<? super V> predicate)
Return a copy of this map containing only the key/value pairs that match the predicate.ImmutableFloatObjectMap<V>
tap(Procedure<? super V> procedure)
Executes the Procedure for each element in the iterable and returnsthis
.-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatObjectMap
containsKey, forEachKey, forEachKeyValue, get, getIfAbsent, injectIntoKeyValue, keySet, keysView, keyValuesView, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ImmutablePrimitiveObjectMap
aggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, flatCollectWith, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith, forEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.PrimitiveObjectMap
containsValue, equals, forEachValue, hashCode, parallelStream, spliterator, stream, toString, values
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
-
-
-
-
Method Detail
-
tap
ImmutableFloatObjectMap<V> tap(Procedure<? super V> procedure)
Description copied from interface:RichIterable
Executes the Procedure for each element in the iterable and returnsthis
.Example using a Java 8 lambda expression:
RichIterable<Person> tapped = people.tap(person -> LOGGER.info(person.getName()));
Example using an anonymous inner class:
RichIterable<Person> tapped = people.tap(new Procedure<Person>() { public void value(Person person) { LOGGER.info(person.getName()); } });
- Specified by:
tap
in interfaceFloatObjectMap<V>
- Specified by:
tap
in interfaceRichIterable<V>
- See Also:
RichIterable.each(Procedure)
,RichIterable.forEach(Procedure)
-
select
ImmutableFloatObjectMap<V> select(FloatObjectPredicate<? super V> predicate)
Description copied from interface:FloatObjectMap
Return a copy of this map containing only the key/value pairs that match the predicate.- Specified by:
select
in interfaceFloatObjectMap<V>
- Parameters:
predicate
- the predicate to determine which key/value pairs in this map should be included in the returned map- Returns:
- a copy of this map with the matching key/value pairs
-
reject
ImmutableFloatObjectMap<V> reject(FloatObjectPredicate<? super V> predicate)
Description copied from interface:FloatObjectMap
Return a copy of this map containing only the key/value pairs that do not match the predicate.- Specified by:
reject
in interfaceFloatObjectMap<V>
- Parameters:
predicate
- the predicate to determine which key/value pairs in this map should be excluded from the returned map- Returns:
- a copy of this map without the matching key/value pairs
-
newWithKeyValue
ImmutableFloatObjectMap<V> newWithKeyValue(float key, V value)
Copy this map, associate the value with the key (replacing the value if one already exists forkey
), and return the copy as new immutable map. A copy is always made even ifkey
is already associated withvalue
.- Parameters:
key
- the key to addvalue
- the value to associate with the key in the copy- Returns:
- an immutable copy of this map with
value
associated withkey
-
newWithoutKey
ImmutableFloatObjectMap<V> newWithoutKey(float key)
Copy this map, remove any associated value with the key (if one exists), and return the copy as a new immutable map.- Parameters:
key
- the key to remove- Returns:
- an immutable copy of this map with
key
removed
-
newWithoutAllKeys
ImmutableFloatObjectMap<V> newWithoutAllKeys(FloatIterable keys)
Copy this map, remove any associated values with the specified keys (if any exist), and return the copy as a new immutable map.- Parameters:
keys
- the keys to remove- Returns:
- an immutable copy of this map with all keys in
keys
removed
-
flipUniqueValues
ImmutableObjectFloatMap<V> flipUniqueValues()
Description copied from interface:FloatObjectMap
Return the ObjectFloatMap that is obtained by flipping the direction of this map and making the associations from value to key.- Specified by:
flipUniqueValues
in interfaceFloatObjectMap<V>
-
-