21 lines
340 B
Java
21 lines
340 B
Java
|
|
package net.sourceforge.filebot.cli;
|
|
|
|
|
|
public enum ConflictAction {
|
|
|
|
OVERRIDE,
|
|
SKIP,
|
|
FAIL;
|
|
|
|
public static ConflictAction forName(String action) {
|
|
for (ConflictAction it : values()) {
|
|
if (it.name().equalsIgnoreCase(action))
|
|
return it;
|
|
}
|
|
|
|
throw new IllegalArgumentException("Illegal conflict action: " + action);
|
|
}
|
|
|
|
}
|