Class CodespaceRange


  • public class CodespaceRange
    extends java.lang.Object
    This represents a single entry in the codespace range.
    Author:
    Ben Litchfield
    • Constructor Summary

      Constructors 
      Constructor Description
      CodespaceRange()
      Creates a new instance of CodespaceRange.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodespaceRange

        public CodespaceRange()
        Creates a new instance of CodespaceRange.
    • Method Detail

      • getCodeLength

        public int getCodeLength()
        Returns the length of the codes of the codespace.
        Returns:
        the code length
      • getEnd

        public byte[] getEnd()
        Getter for property end.
        Returns:
        Value of property end.
      • getStart

        public byte[] getStart()
        Getter for property start.
        Returns:
        Value of property start.
      • matches

        public boolean matches​(byte[] code)
        Returns true if the given code bytes match this codespace range.
      • isFullMatch

        public boolean isFullMatch​(byte[] code,
                                   int codeLen)
        Returns true if the given code bytes match this codespace range.