Class Key


  • public final class Key
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Key()
      Default constructor
        Key​(int key, java.lang.String path)
      Constructor with the index key and the path
      protected Key​(Key parentKey, int key, java.lang.String subPath)
      Constructor used by the class Regor and the open key method, to open a child key
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean _isValidKey()
      Method looks up the key and determine if it is an valid key (not -1) or not
      int getKey()  
      java.lang.String getPath()  
      void setKey​(int key)  
      void setPath​(java.lang.String path)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Key

        public Key()
        Default constructor
      • Key

        public Key​(int key,
                   java.lang.String path)
        Constructor with the index key and the path
        Parameters:
        key - int
        path - String
      • Key

        protected Key​(Key parentKey,
                      int key,
                      java.lang.String subPath)
        Constructor used by the class Regor and the open key method, to open a child key
        Parameters:
        parentKey - Key to get the parent path and append the new subpath
        key - int the key handle
        subPath - String subpath which will be append to the parent path
    • Method Detail

      • getKey

        public int getKey()
      • getPath

        public java.lang.String getPath()
      • setKey

        public void setKey​(int key)
      • setPath

        public void setPath​(java.lang.String path)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • _isValidKey

        public boolean _isValidKey()
        Method looks up the key and determine if it is an valid key (not -1) or not
        Returns:
        boolean