Enum LauncherDiscoveryListeners.LauncherDiscoveryListenerType
- java.lang.Object
-
- java.lang.Enum<LauncherDiscoveryListeners.LauncherDiscoveryListenerType>
-
- org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners.LauncherDiscoveryListenerType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LauncherDiscoveryListeners.LauncherDiscoveryListenerType>
- Enclosing class:
- LauncherDiscoveryListeners
private static enum LauncherDiscoveryListeners.LauncherDiscoveryListenerType extends java.lang.Enum<LauncherDiscoveryListeners.LauncherDiscoveryListenerType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT_ON_FAILURE
LOGGING
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<LauncherDiscoveryListener>
creator
private java.lang.String
parameterValue
-
Constructor Summary
Constructors Modifier Constructor Description private
LauncherDiscoveryListenerType(java.lang.String parameterValue, java.util.function.Supplier<LauncherDiscoveryListener> creator)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LauncherDiscoveryListeners.LauncherDiscoveryListenerType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LauncherDiscoveryListeners.LauncherDiscoveryListenerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGGING
public static final LauncherDiscoveryListeners.LauncherDiscoveryListenerType LOGGING
-
ABORT_ON_FAILURE
public static final LauncherDiscoveryListeners.LauncherDiscoveryListenerType ABORT_ON_FAILURE
-
-
Field Detail
-
parameterValue
private final java.lang.String parameterValue
-
creator
private final java.util.function.Supplier<LauncherDiscoveryListener> creator
-
-
Constructor Detail
-
LauncherDiscoveryListenerType
private LauncherDiscoveryListenerType(java.lang.String parameterValue, java.util.function.Supplier<LauncherDiscoveryListener> creator)
-
-
Method Detail
-
values
public static LauncherDiscoveryListeners.LauncherDiscoveryListenerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LauncherDiscoveryListeners.LauncherDiscoveryListenerType c : LauncherDiscoveryListeners.LauncherDiscoveryListenerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LauncherDiscoveryListeners.LauncherDiscoveryListenerType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-