Enum Class LambdaStrategy

java.lang.Object
java.lang.Enum<LambdaStrategy>
io.quarkus.gizmo2.LambdaStrategy
All Implemented Interfaces:
Serializable, Comparable<LambdaStrategy>, Constable

public enum LambdaStrategy extends Enum<LambdaStrategy>
Possible lambda generation strategies.
  • Enum Constant Details

    • OPTIMIZED

      public static final LambdaStrategy OPTIMIZED
      The default optimized lambda generation strategy. A hidden class is generated which implements the lambda type.
    • CLASSIC

      public static final LambdaStrategy CLASSIC
      The classic lambda generation strategy. The JDK lambda metafactory is used to create a SAM implementation/method handle pair.
    • ANONYMOUS_CLASS

      public static final LambdaStrategy ANONYMOUS_CLASS
      The anonymous class lambda generation strategy. The lambda body is generated as an anonymous class which is loaded by the host class loader.
  • Field Details

    • values

      public static final List<LambdaStrategy> values
      The list of possible values for this type.
  • Method Details

    • values

      public static LambdaStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LambdaStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null