Package org.nd4j.autodiff.listeners.impl
Enum UIListener.FileMode
- java.lang.Object
-
- java.lang.Enum<UIListener.FileMode>
-
- org.nd4j.autodiff.listeners.impl.UIListener.FileMode
-
- All Implemented Interfaces:
Serializable
,Comparable<UIListener.FileMode>
- Enclosing class:
- UIListener
public static enum UIListener.FileMode extends Enum<UIListener.FileMode>
Default: FileMode.CREATE_OR_APPEND
The mode for handling behaviour when an existing UI file already exists
CREATE: Only allow new file creation. An exception will be thrown if the log file already exists.
APPEND: Only allow appending to an existing file. An exception will be thrown if: (a) no file exists, or (b) the network configuration in the existing log file does not match the current log file.
CREATE_OR_APPEND: As per APPEND, but create a new file if none already exists.
CREATE_APPEND_NOCHECK: As per CREATE_OR_APPEND, but no exception will be thrown if the existing model does not match the current model structure. This mode is not recommended.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPEND
CREATE
CREATE_APPEND_NOCHECK
CREATE_OR_APPEND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UIListener.FileMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static UIListener.FileMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final UIListener.FileMode CREATE
-
APPEND
public static final UIListener.FileMode APPEND
-
CREATE_OR_APPEND
public static final UIListener.FileMode CREATE_OR_APPEND
-
CREATE_APPEND_NOCHECK
public static final UIListener.FileMode CREATE_APPEND_NOCHECK
-
-
Method Detail
-
values
public static UIListener.FileMode[] 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 (UIListener.FileMode c : UIListener.FileMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UIListener.FileMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-