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 Type
    Method
    Description
    length(Integer minimum, Integer maximum)
    Creates a new relationship pattern with a new length
    max(Integer maximum)
    Creates a new relationship pattern with a new maximum length
    min(Integer minimum)
    Creates a new relationship pattern with a new minimum length
    Creates a new relationship pattern with an unbound length minimum length
  • Method Details

    • unbounded

      @NotNull @Contract(pure=true) T unbounded()
      Creates a new relationship pattern with an unbound length minimum length
      Returns:
      the new relationship
      Since:
      1.1.1
    • min

      @NotNull @Contract(pure=true) T min(Integer minimum)
      Creates a new relationship pattern with a new minimum length
      Parameters:
      minimum - the new minimum
      Returns:
      the new relationship
    • max

      @NotNull @Contract(pure=true) T max(Integer maximum)
      Creates a new relationship pattern with a new maximum length
      Parameters:
      maximum - the new maximum
      Returns:
      the new relationship
    • length

      @NotNull @Contract(pure=true) T length(Integer minimum, Integer maximum)
      Creates a new relationship pattern with a new length
      Parameters:
      minimum - the new minimum
      maximum - the new maximum
      Returns:
      the new relationship