Enum Class JvmDefault

java.lang.Object
java.lang.Enum<JvmDefault>
rife.bld.extension.kotlin.JvmDefault
All Implemented Interfaces:
Serializable, Comparable<JvmDefault>, Constable

public enum JvmDefault extends Enum<JvmDefault>
JVM default methods options for interface declarations with bodies.
Since:
1.1.0
  • Enum Constant Details

    • ENABLE

      public static final JvmDefault ENABLE
      Generate default methods for non-abstract interface declarations, as well as 'DefaultImpls' classes with static methods for compatibility with code compiled in the 'disable' mode.

      This is the default behavior since language version 2.2.

    • NO_COMPATIBILITY

      public static final JvmDefault NO_COMPATIBILITY
      Generate default methods for non-abstract interface declarations. Do not generate 'DefaultImpls' classes.
    • DISABLE

      public static final JvmDefault DISABLE
      Do not generate JVM default methods.

      This is the default behavior up to language version 2.1.

  • Field Details

    • value

      public final String value
  • Method Details

    • values

      public static JvmDefault[] 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 JvmDefault 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