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 length.Creates a new relationship pattern with a new maximum length.Creates a new relationship pattern with a new minimum length.Creates a new relationship pattern with an unbound length minimum length.
-
Method Details
-
unbounded
T unbounded()Creates a new relationship pattern with an unbound length minimum length.- Returns:
- the new relationship
- Since:
- 1.1.1
-
min
-
max
-
length
-