public class CodespaceRange extends Object
Constructor and Description |
---|
CodespaceRange()
Deprecated.
to be removed in the next major release.
|
CodespaceRange(byte[] startBytes,
byte[] endBytes)
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()
Deprecated.
to be removed in the next major release
|
byte[] |
getStart()
Deprecated.
to be removed in the next major release
|
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.
|
public CodespaceRange(byte[] startBytes, byte[] endBytes)
startBytes
- endBytes
- public CodespaceRange()
public int getCodeLength()
public byte[] getEnd()
public byte[] getStart()
public boolean matches(byte[] code)
public boolean isFullMatch(byte[] code, int codeLen)
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.