Interface Triple

    • Method Detail

      • equals

        boolean equals​(java.lang.Object other)
        Check it this Triple is equal to another Triple.

        Two Triples are equal if and only if their getSubject(), getPredicate() and getObject() are equal.

        Implementations MUST also override hashCode() so that two equal Triples produce the same hash code.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - Another object
        Returns:
        true if other is a Triple and is equal to this
        See Also:
        Object.equals(Object)
      • hashCode

        int hashCode()
        Calculate a hash code for this Triple.

        The returned hash code MUST be equal to the result of Objects.hash(Object...) with the arguments getSubject(), getPredicate(), getObject().

        This method MUST be implemented in conjunction with equals(Object) so that two equal Triples produce the same hash code.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for this Triple.
        See Also:
        Object.hashCode(), Objects.hash(Object...)