Interface BranchKey

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Compares the specified object with this branch key for equality.
      int hashCode()
      Returns the hash code value for this branch key.
      static BranchKey of​(java.lang.String value)
      Create a key used to uniquely identify a branch in a repository.
      java.lang.String value()
      Get the raw string value for the key.
    • Method Detail

      • value

        java.lang.String value()
        Get the raw string value for the key.
        Returns:
        The raw string value for the key.
      • hashCode

        int hashCode()
        Returns the hash code value for this branch key. The hash code is defined to be the hash code of the string value returned by value().
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code value for this instance.
      • equals

        boolean equals​(java.lang.Object object)
        Compares the specified object with this branch key for equality. Returns true if and only if the specified object is also a branch key and if both have the same value (as returned by value()).
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - The object to test equality against.
        Returns:
        True if the specified object is equal to this branch key.
      • of

        static BranchKey of​(java.lang.String value)

        Create a key used to uniquely identify a branch in a repository.

        This method is not supported in the Application Builder's method editor. Use DatabaseApiValueFactory.branchKey(String) instead.

        Parameters:
        value - The raw string value for the key.
        Returns:
        A new key.