Package rife.bld.extension.kotlin
Enum Class JvmDefault
- All Implemented Interfaces:
Serializable
,Comparable<JvmDefault>
,Constable
JVM default methods options for interface declarations with bodies.
- Since:
- 1.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not generate JVM default methods.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.Generate default methods for non-abstract interface declarations. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic JvmDefault
Returns the enum constant of this class with the specified name.static JvmDefault[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Generate default methods for non-abstract interface declarations. Do not generate 'DefaultImpls' classes. -
DISABLE
Do not generate JVM default methods.This is the default behavior up to language version 2.1.
-
-
Field Details
-
value
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-