| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int[] | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| public | CodespaceRange(byte[]
start of the range startBytes, byte[] start of the range endBytes)Creates a new instance of CodespaceRange. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean | Returns: true if the given number of code bytes match this codespace rangethe code bytes to be matched code, int the code length to be used for matching codeLen)Returns true if the given number of code bytes match this codespace range. |
| public boolean | Returns: true if the given code bytes match this codespace rangethe code bytes to be matched code)Returns true if the given code bytes match this codespace range. |
| codeLength | back to summary |
|---|---|
| private final int codeLength | |
| end | back to summary |
|---|---|
| private final int[] end | |
| start | back to summary |
|---|---|
| private final int[] start | |
| CodespaceRange | back to summary |
|---|---|
| public CodespaceRange(byte[] startBytes, byte[] endBytes) Creates a new instance of CodespaceRange. The length of both arrays has to be the same.
| |
| getCodeLength | back to summary |
|---|---|
| public int getCodeLength() Returns the length of the codes of the codespace.
| |
| isFullMatch | back to summary |
|---|---|
| public boolean isFullMatch(byte[] code, int codeLen) Returns true if the given number of code bytes match this codespace range.
| |
| matches | back to summary |
|---|---|
| public boolean matches(byte[] code) Returns true if the given code bytes match this codespace range.
| |