public class CharArrayIntMap extends KeyIntMap
Modifier and Type | Field and Description |
---|---|
protected int |
_totalCharacterCount |
NOT_PRESENT
Constructor and Description |
---|
CharArrayIntMap() |
CharArrayIntMap(int initialCapacity) |
CharArrayIntMap(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
get(char[] ch,
int start,
int length)
Method returns an index of the passed character buffer in
CharArrayIntMap . |
int |
getTotalCharacterCount() |
int |
obtainIndex(char[] ch,
int start,
int length,
boolean clone)
Method returns an index of the passed character buffer in
CharArrayIntMap . |
void |
setReadOnlyMap(CharArrayIntMap readOnlyMap,
boolean clear) |
void |
setReadOnlyMap(KeyIntMap readOnlyMap,
boolean clear) |
public CharArrayIntMap(int initialCapacity, float loadFactor)
public CharArrayIntMap(int initialCapacity)
public CharArrayIntMap()
public final void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
setReadOnlyMap
in class KeyIntMap
public final void setReadOnlyMap(CharArrayIntMap readOnlyMap, boolean clear)
public final int get(char[] ch, int start, int length)
CharArrayIntMap
.CharArrayIntMap
,
otherwise NOT_PRESENT.public final int obtainIndex(char[] ch, int start, int length, boolean clone)
CharArrayIntMap
. If character buffer is not in
CharArrayIntMap
- it will be added.CharArrayIntMap
, or
NOT_PRESENT if character buffer was just added.public final int getTotalCharacterCount()
Copyright © 2013 Oracle Corpration. All Rights Reserved.