public class CodespaceRange
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
codeLength |
private byte[] |
end |
private int |
endInt |
private byte[] |
start |
private int |
startInt |
Constructor and Description |
---|
CodespaceRange()
Creates a new instance of CodespaceRange.
|
Modifier and Type | Method and Description |
---|---|
int |
getCodeLength()
Returns the length of the codes of the codespace.
|
byte[] |
getEnd()
Getter for property end.
|
byte[] |
getStart()
Getter for property start.
|
boolean |
isFullMatch(byte[] code,
int codeLen)
Returns true if the given code bytes match this codespace range.
|
boolean |
matches(byte[] code)
Returns true if the given code bytes match this codespace range.
|
(package private) void |
setEnd(byte[] endBytes)
Setter for property end.
|
(package private) void |
setStart(byte[] startBytes)
Setter for property start.
|
private byte[] start
private byte[] end
private int startInt
private int endInt
private int codeLength
public int getCodeLength()
public byte[] getEnd()
void setEnd(byte[] endBytes)
endBytes
- New value of property end.public byte[] getStart()
void setStart(byte[] startBytes)
startBytes
- New value of property start.public boolean matches(byte[] code)
public boolean isFullMatch(byte[] code, int codeLen)