public interface MutableFloatObjectMap<V> extends FloatObjectMap<V>, MutablePrimitiveObjectMap<V>
| Modifier and Type | Method and Description |
|---|---|
MutableFloatObjectMap<V> |
asSynchronized() |
MutableFloatObjectMap<V> |
asUnmodifiable() |
<V1> MutableCollection<V1> |
collect(Function<? super V,? extends V1> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
<P,VV> MutableCollection<VV> |
collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter)
Same as collect with a
Function2 and specified parameter which is passed to the block
|
V |
getIfAbsentPut(float key,
Function0<? extends V> function) |
V |
getIfAbsentPut(float key,
V value) |
<P> V |
getIfAbsentPutWith(float key,
Function<? super P,? extends V> function,
P parameter) |
V |
getIfAbsentPutWithKey(float key,
FloatToObjectFunction<? extends V> function) |
V |
put(float key,
V value) |
void |
putAll(FloatObjectMap<? extends V> map) |
MutableFloatObjectMap<V> |
reject(FloatObjectPredicate<? super V> predicate) |
MutableCollection<V> |
reject(Predicate<? super V> predicate)
Returns all elements of the source collection that return false when evaluating of the predicate.
|
V |
remove(float key) |
V |
removeKey(float key) |
MutableFloatObjectMap<V> |
select(FloatObjectPredicate<? super V> predicate) |
MutableCollection<V> |
select(Predicate<? super V> predicate)
Returns all elements of the source collection that return true when evaluating the predicate.
|
V |
updateValue(float key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
<P> V |
updateValueWith(float key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
updateValue(float, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
MutableFloatObjectMap<V> |
withKeyValue(float key,
V value) |
MutableFloatObjectMap<V> |
withoutAllKeys(FloatIterable keys) |
MutableFloatObjectMap<V> |
withoutKey(float key) |
containsKey, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, hashCode, keySet, keysView, keyValuesView, toImmutable, toString, valuesaggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, flatCollect, flatCollect, getFirst, getLast, groupBy, groupBy, groupByEach, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, partition, partitionWith, reject, rejectWith, rejectWith, select, selectInstancesOf, selectWith, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zip, zipWithIndex, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, iterator, spliteratoraggregateBy, aggregateInPlaceBy, clear, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, rejectWith, selectInstancesOf, selectWith, zip, zipWithIndexvoid putAll(FloatObjectMap<? extends V> map)
V removeKey(float key)
V remove(float key)
V getIfAbsentPutWithKey(float key, FloatToObjectFunction<? extends V> function)
<P> V getIfAbsentPutWith(float key, Function<? super P,? extends V> function, P parameter)
V updateValue(float key, Function0<? extends V> factory, Function<? super V,? extends V> function)
key, apply the function to it, and replace the value. If there
is no value associated with key, start it off with a value supplied by factory.<P> V updateValueWith(float key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
updateValue(float, Function0, Function) with a Function2 and specified parameter which is
passed to the function.MutableFloatObjectMap<V> select(FloatObjectPredicate<? super V> predicate)
select in interface FloatObjectMap<V>MutableFloatObjectMap<V> reject(FloatObjectPredicate<? super V> predicate)
reject in interface FloatObjectMap<V>MutableCollection<V> select(Predicate<? super V> predicate)
RichIterablee.g.
return people.select(new Predicate<Person>()
{
public boolean accept(Person person)
{
return person.getAddress().getCity().equals("Metuchen");
}
});
select in interface MutablePrimitiveObjectMap<V>select in interface RichIterable<V>MutableCollection<V> reject(Predicate<? super V> predicate)
RichIterablee.g.
return people.reject(new Predicate<Person>()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
});
e.g.
return people.reject(Predicates.attributeEqual("lastName", "Smith"));
reject in interface MutablePrimitiveObjectMap<V>reject in interface RichIterable<V>predicate - a Predicate to use as the reject criteriaPredicate.accept(Object) method to evaluate to false<V1> MutableCollection<V1> collect(Function<? super V,? extends V1> function)
RichIterablee.g.
return people.collect(new Function<Person, String>()
{
public String valueOf(Person person)
{
return person.getFirstName() + " " + person.getLastName();
}
});
collect in interface MutablePrimitiveObjectMap<V>collect in interface RichIterable<V><P,VV> MutableCollection<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
RichIterableFunction2 and specified parameter which is passed to the block
e.g. Function2addParameterFunction = new Function2 () { public Integer value(final Integer each, final Integer parameter) { return each + parameter; } }; FastList.newListWith(1, 2, 3).collectWith(addParameterFunction, Integer.valueOf(1));
collectWith in interface MutablePrimitiveObjectMap<V>collectWith in interface RichIterable<V>function - A Function2 to use as the collect transformation functionparameter - A parameter to pass in for evaluation of the second argument P in functionRichIterable that contains the transformed elements returned by Function2.value(Object, Object)RichIterable.collect(Function)MutableFloatObjectMap<V> withKeyValue(float key, V value)
MutableFloatObjectMap<V> withoutKey(float key)
MutableFloatObjectMap<V> withoutAllKeys(FloatIterable keys)
MutableFloatObjectMap<V> asUnmodifiable()
MutableFloatObjectMap<V> asSynchronized()
Copyright © 2004–2017. All rights reserved.