public static enum CloneCommand.CloneMode extends Enum<CloneCommand.CloneMode>
Modifier and Type | Method and Description |
---|---|
static CloneCommand.CloneMode |
fromCommandName(String commandName)
Returns the CloneMode with a given subcommand name, or null if none match.
|
String |
getCommandName() |
boolean |
isAllowedToOverlap() |
static CloneCommand.CloneMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloneCommand.CloneMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloneCommand.CloneMode NORMAL
public static final CloneCommand.CloneMode FORCE
public static final CloneCommand.CloneMode MOVE
public static CloneCommand.CloneMode[] values()
for (CloneCommand.CloneMode c : CloneCommand.CloneMode.values()) System.out.println(c);
public static CloneCommand.CloneMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CloneCommand.CloneMode fromCommandName(String commandName)
commandName
- the subcommand name to look up.public String getCommandName()
public boolean isAllowedToOverlap()
Copyright © 2021. All rights reserved.