Interface PatternComprehension.OngoingDefinitionWithoutReturn

All Known Subinterfaces:
PatternComprehension.OngoingDefinitionWithPattern, PatternComprehension.OngoingDefinitionWithPatternAndWhere
Enclosing class:
PatternComprehension

public static interface PatternComprehension.OngoingDefinitionWithoutReturn
Provides the final step of defining a pattern comprehension.
  • Method Details

    • returning

      @NotNull @Contract(pure=true) default @NotNull PatternComprehension returning(Named... variables)
      Parameters:
      variables - the elements to be returned from the pattern
      Returns:
      The final definition of the pattern comprehension
      See Also:
    • returning

      @NotNull @Contract(pure=true) @NotNull PatternComprehension returning(Expression... listDefinition)
      Parameters:
      listDefinition - Defines the elements to be returned from the pattern
      Returns:
      The final definition of the pattern comprehension