Class RelationshipLength

  • All Implemented Interfaces:
    Visitable

    @API(status=INTERNAL,
         since="1.0")
    public final class RelationshipLength
    extends java.lang.Object
    implements Visitable
    Expresses the length of a relationship.
    Since:
    1.0
    Author:
    Michael J. Simons
    • Method Detail

      • of

        public static RelationshipLength of​(java.lang.Integer minimum,
                                            java.lang.Integer maximum)
      • getMinimum

        @API(status=INTERNAL)
        public java.lang.Integer getMinimum()
        Returns:
        Minimum number of hops to match.
      • getMaximum

        @API(status=INTERNAL)
        public java.lang.Integer getMaximum()
        Returns:
        Maximum number of hops to match.
      • isUnbounded

        @API(status=INTERNAL)
        public boolean isUnbounded()
        Returns:
        True if neither minimum nor maximum number of hops are set.