Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface ExposesPatternLengthAccessors<T extends RelationshipPattern>
- Type Parameters:
T
- The type of the patterns whose lengths can be adjusted.
- All Known Subinterfaces:
Relationship
- All Known Implementing Classes:
RelationshipBase
,RelationshipChain
@API(status=STABLE,
since="2021.2.3")
public interface ExposesPatternLengthAccessors<T extends RelationshipPattern>
This interface is used to derive new relationship patterns from existing
relationships
or chains of relationships
with new lengths (min, max or unbounded) configured.- Since:
- 2021.2.3
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new relationship pattern with a new lengthCreates a new relationship pattern with a new maximum lengthCreates a new relationship pattern with a new minimum lengthCreates a new relationship pattern with an unbound length minimum length
-
Method Details
-
unbounded
Creates a new relationship pattern with an unbound length minimum length- Returns:
- the new relationship
- Since:
- 1.1.1
-
min
Creates a new relationship pattern with a new minimum length- Parameters:
minimum
- the new minimum- Returns:
- the new relationship
-
max
Creates a new relationship pattern with a new maximum length- Parameters:
maximum
- the new maximum- Returns:
- the new relationship
-
length
Creates a new relationship pattern with a new length- Parameters:
minimum
- the new minimummaximum
- the new maximum- Returns:
- the new relationship
-