@Generated(date="2015-05-05T11:00:03+0200", value="KTypeVTypeMap.java") public interface CharObjectMap<VType> extends CharObjectAssociativeContainer<VType>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all keys and values in the container.
|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this set for equality.
|
VType |
get(char key) |
VType |
getOrDefault(char key,
VType defaultValue) |
int |
hashCode() |
boolean |
indexExists(int index) |
VType |
indexGet(int index)
Returns the value associated with an existing key.
|
void |
indexInsert(int index,
char key,
VType value)
Inserts a key-value pair for a key that is not present in the map.
|
int |
indexOf(char key)
Returns a logical "index" of a given key that can be used to speed up
follow-up value setters or getters in certain scenarios (conditional
logic).
|
VType |
indexReplace(int index,
VType newValue)
Replaces the value associated with an existing key and returns any previous
value stored for that key.
|
VType |
put(char key,
VType value)
Place a given key and value in the container.
|
int |
putAll(CharObjectAssociativeContainer<? extends VType> container)
Puts all keys from another container to this map, replacing the values of
existing keys, if such keys are present.
|
int |
putAll(java.lang.Iterable<? extends CharObjectCursor<? extends VType>> iterable)
Puts all keys from an iterable cursor to this map, replacing the values of
existing keys, if such keys are present.
|
void |
release()
Removes all elements from the collection and additionally releases any
internal buffers.
|
VType |
remove(char key)
Remove all values at the given key.
|
VType get(char key)
VType getOrDefault(char key, VType defaultValue)
VType put(char key, VType value)
int putAll(CharObjectAssociativeContainer<? extends VType> container)
int putAll(java.lang.Iterable<? extends CharObjectCursor<? extends VType>> iterable)
VType remove(char key)
boolean equals(java.lang.Object obj)
CharObjectMap
and both objects contains exactly the same key-value
pairs.equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
int indexOf(char key)
key
- The key to locate in the map.indexExists(int)
,
indexGet(int)
,
indexInsert(int, char, VType)
,
indexReplace(int, VType)
boolean indexExists(int index)
index
- The index of a given key, as returned from indexOf(char)
.true
if the index corresponds to an existing
key or false otherwise. This is equivalent to checking whether the
index is a positive value (existing keys) or a negative value
(non-existing keys).indexOf(char)
VType indexGet(int index)
index
- The index of an existing key.java.lang.AssertionError
- If assertions are enabled and the index does not correspond to an
existing key.indexOf(char)
VType indexReplace(int index, VType newValue)
index
- The index of an existing key.java.lang.AssertionError
- If assertions are enabled and the index does not correspond to an
existing key.indexOf(char)
void indexInsert(int index, char key, VType value)
index
- The index of a previously non-existing key, as returned from
indexOf(char)
.java.lang.AssertionError
- If assertions are enabled and the index corresponds to an
existing key.indexOf(char)
void clear()
release()
Copyright © 2015 Carrot Search s.c.. All Rights Reserved.