Interface Relationship

    • Method Detail

      • getLeft

        Node getLeft()
      • getDetails

        @NotNull
        @Contract(pure=true)
        @NotNull Relationship.Details getDetails()
        The details contains the types, properties and cardinality.
        Returns:
        A wrapper around the details of this relationship.
      • getRight

        @NotNull
        @Contract(pure=true)
        @NotNull Node getRight()
      • named

        @NotNull
        @Contract(pure=true)
        @NotNull Relationship named​(java.lang.String newSymbolicName)
        Creates a copy of this relationship with a new symbolic name.
        Specified by:
        named in interface RelationshipPattern
        Parameters:
        newSymbolicName - the new symbolic name.
        Returns:
        The new relationship.
      • named

        @NotNull
        @Contract(pure=true)
        @NotNull Relationship named​(SymbolicName newSymbolicName)
        Creates a copy of this relationship with a new symbolic name.
        Specified by:
        named in interface RelationshipPattern
        Parameters:
        newSymbolicName - the new symbolic name.
        Returns:
        The new relationship.
      • inverse

        @NotNull
        @Contract(pure=true)
        @NotNull Relationship inverse()
        Creates a new relationship, inverting the direction but keeping the semantics intact ((a) --> (b) becomes (b) <-- (a)). A symbolic name will be removed from this relationship if any, as the it wouldn't be the same pattern to match against.
        Returns:
        the new relationship