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

      default PatternComprehension returning(Named... variables)
      Defines the returning named items.
      Parameters:
      variables - the elements to be returned from the pattern
      Returns:
      the final definition of the pattern comprehension
      See Also:
    • returning

      PatternComprehension returning(Expression... listDefinition)
      Defines the returning exoression items.
      Parameters:
      listDefinition - defines the elements to be returned from the pattern
      Returns:
      the final definition of the pattern comprehension