@Generated(date="2015-05-05T11:00:03+0200", value="KTypeVTypeAssociativeContainer.java") public interface ShortDoubleAssociativeContainer extends java.lang.Iterable<ShortDoubleCursor>
ShortContainer
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(short key)
Returns
true if this container has an association to a value
for the given key. |
<T extends ShortDoublePredicate> |
forEach(T predicate)
Applies a given predicate to all keys-value pairs in this container.
|
<T extends ShortDoubleProcedure> |
forEach(T procedure)
Applies a given procedure to all keys-value pairs in this container.
|
boolean |
isEmpty() |
java.util.Iterator<ShortDoubleCursor> |
iterator()
Returns a cursor over the entries (key-value pairs) in this map.
|
ShortCollection |
keys()
Returns a collection of keys of this container.
|
int |
removeAll(ShortContainer container)
Removes all keys (and associated values) present in a given container.
|
int |
removeAll(ShortDoublePredicate predicate)
Removes all keys (and associated values) for which the predicate returns
true . |
int |
removeAll(ShortPredicate predicate)
Removes all keys (and associated values) for which the predicate returns
true . |
int |
size() |
DoubleContainer |
values()
Returns a container view of all values present in this container.
|
java.util.Iterator<ShortDoubleCursor> 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<ShortDoubleCursor>
boolean containsKey(short 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(ShortContainer container)
keys().removeAll(container)but with no additional overhead.
int removeAll(ShortPredicate predicate)
true
.int removeAll(ShortDoublePredicate predicate)
true
.<T extends ShortDoubleProcedure> T forEach(T procedure)
ShortDoubleProcedure
. 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 ShortDoublePredicate> T forEach(T predicate)
ShortDoublePredicate
. 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
.ShortCollection keys()
DoubleContainer values()
Copyright © 2015 Carrot Search s.c.. All Rights Reserved.