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

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

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

      @NotNull @Contract(pure=true) @NotNull ListComprehension returning()
      Returns:
      Returns the list comprehension as is, without a WHERE and returning each element of the original list