java.lang.Iterable<LongFloatCursor>LongFloatMapLongFloatHashMap, LongFloatScatterMap@Generated(date="2018-05-21T12:24:05+0200", value="KTypeVTypeAssociativeContainer.java") public interface LongFloatAssociativeContainer extends java.lang.Iterable<LongFloatCursor>
LongContainer| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsKey(long key) |
Returns
true if this container has an association to a value
for the given key. |
<T extends LongFloatProcedure> |
forEach(T procedure) |
Applies a given procedure to all keys-value pairs in this container.
|
boolean |
isEmpty() |
|
java.util.Iterator<LongFloatCursor> |
iterator() |
Returns a cursor over the entries (key-value pairs) in this map.
|
LongCollection |
keys() |
Returns a collection of keys of this container.
|
int |
removeAll(LongContainer container) |
Removes all keys (and associated values) present in a given container.
|
int |
removeAll(LongFloatPredicate predicate) |
Removes all keys (and associated values) for which the predicate returns
true. |
int |
removeAll(LongPredicate predicate) |
Removes all keys (and associated values) for which the predicate returns
true. |
int |
size() |
|
FloatContainer |
values() |
Returns a container view of all values present in this container.
|
java.util.Iterator<LongFloatCursor> iterator()
Iterator.next(). To read the current
key and value use the cursor's public fields. An example is shown below.
for (IntShortCursor c : intShortMap) {
System.out.println("index=" + c.index + " key=" + c.key + " value=" + c.value);
}
The index field inside the cursor gives the internal index
inside the container's implementation. The interpretation of this index
depends on to the container.
iterator in interface java.lang.Iterable<LongFloatCursor>boolean containsKey(long key)
true if this container has an association to a value
for the given key.int size()
boolean isEmpty()
true if this hash map contains no assigned
keys.int removeAll(LongContainer container)
keys().removeAll(container)but with no additional overhead.
int removeAll(LongPredicate predicate)
true.int removeAll(LongFloatPredicate predicate)
true.<T extends LongFloatProcedure> T forEach(T procedure)
LongFloatProcedure. This
lets the caller to call methods of the argument by chaining the call (even
if the argument is an anonymous type) to retrieve computed values, for
example.<T extends LongFloatPredicate> T forEach(T predicate)
LongFloatPredicate. This
lets the caller to call methods of the argument by chaining the call (even
if the argument is an anonymous type) to retrieve computed values, for
example.
The iteration is continued as long as the predicate returns
true.LongCollection keys()
FloatContainer values()
Copyright © 2018 Carrot Search s.c.. All Rights Reserved.