Interface BNode

    • Method Detail

      • isBNode

        default boolean isBNode()
        Description copied from interface: Value
        Check if the object is an instance of the given type. Typically 2x than using instanceof.

        For implementers: This default implementation is overridden in the repsective sub-interface.

        Specified by:
        isBNode in interface Value
        Returns:
        true if instance of BNode
      • getID

        String getID()
        Retrieves this blank node's identifier.
        Returns:
        A blank node identifier.
      • equals

        boolean equals​(Object o)
        Compares this blank node to another object.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare this blank node to
        Returns:
        true, if the other object is an instance of BNode and their IDs are equal; false, otherwise.
      • hashCode

        int hashCode()
        Computes the hash code of this blank node.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this blank node computed as getID().hashCode()