|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ardverk.collection.AbstractKeyAnalyzer<java.lang.Character>
org.ardverk.collection.CharacterKeyAnalyzer
public class CharacterKeyAnalyzer
A KeyAnalyzer
for Character
s
Field Summary | |
---|---|
static CharacterKeyAnalyzer |
INSTANCE
A singleton instance of the CharacterKeyAnalyzer . |
static int |
LENGTH
The length of a Character in bits |
Fields inherited from interface org.ardverk.collection.KeyAnalyzer |
---|
EQUAL_BIT_KEY, NULL_BIT_KEY, OUT_OF_BOUNDS_BIT_KEY |
Constructor Summary | |
---|---|
CharacterKeyAnalyzer()
|
Method Summary | |
---|---|
int |
bitIndex(java.lang.Character key,
int offsetInBits,
int lengthInBits,
java.lang.Character other,
int otherOffsetInBits,
int otherLengthInBits)
Returns the n-th different bit between key and found. |
int |
bitsPerElement()
Returns the number of bits per element in the key. |
boolean |
isBitSet(java.lang.Character key,
int bitIndex,
int lengthInBits)
Returns whether or not a bit is set |
boolean |
isPrefix(java.lang.Character prefix,
int offsetInBits,
int lengthInBits,
java.lang.Character key)
Determines whether or not the given prefix (from offset to length) is a prefix of the given key. |
int |
lengthInBits(java.lang.Character key)
Returns the length of the Key in bits. |
Methods inherited from class org.ardverk.collection.AbstractKeyAnalyzer |
---|
compare |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final CharacterKeyAnalyzer INSTANCE
CharacterKeyAnalyzer
.
public static final int LENGTH
Character
in bits
Constructor Detail |
---|
public CharacterKeyAnalyzer()
Method Detail |
---|
public int bitsPerElement()
public int lengthInBits(java.lang.Character key)
public boolean isBitSet(java.lang.Character key, int bitIndex, int lengthInBits)
public int bitIndex(java.lang.Character key, int offsetInBits, int lengthInBits, java.lang.Character other, int otherOffsetInBits, int otherLengthInBits)
public boolean isPrefix(java.lang.Character prefix, int offsetInBits, int lengthInBits, java.lang.Character key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |