public interface RestrictedCharacterSet
| Modifier and Type | Method and Description |
|---|---|
int |
getCode(int codePoint)
Returns code for given code-point or
NOT_FOUND == -1 for
invalid char. |
int |
getCodePoint(int code)
Retrieves the code-point for given code.
|
int |
getCodingLength()
Returns the number of bits to encode codes for the set.
|
int |
size()
Returns the number of entries for the set.
|
int getCodePoint(int code)
code - codeIndexOutOfBoundsException - out-of-bound exceptionint getCode(int codePoint)
NOT_FOUND == -1 for
invalid char.codePoint - character of interestint size()
int getCodingLength()
codingLength = ceil( log2(N + 1) ) and N is the number of characters in the restricted character set.
size()Copyright © 2018 Siemens AG. All rights reserved.