Interface ListComprehension.OngoingDefinitionWithoutReturn

All Known Subinterfaces:
ListComprehension.OngoingDefinitionWithList
Enclosing class:
ListComprehension

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

    • returning

      default ListComprehension returning(Named... variables)
      Defines the RETURN clause.
      Parameters:
      variables - the elements to be returned from the list
      Returns:
      the final definition of the list comprehension
      See Also:
    • returning

      ListComprehension returning(Expression... listDefinition)
      Defines the RETURN clause.
      Parameters:
      listDefinition - defines the elements to be returned from the pattern
      Returns:
      the final definition of the list comprehension
    • returning

      ListComprehension returning()
      Defines an empty RETURN clause.
      Returns:
      returns the list comprehension as is, without a WHERE and returning each element of the original list