public enum ClassOccurrencePolicy extends Enum<ClassOccurrencePolicy>
| Enum Constant and Description |
|---|
ALL_CLASSES
Use all classes.
|
EXACTLY_ONE_CLASS_ONLY
We expect exactly one occurrence in classpath.
|
FIRST_CLASS
Use first class that occurs in classpath, but one class is required.
|
ONE_CLASS_ONLY
We expect one class only, but we can also live with no occurrence.
|
| Modifier and Type | Method and Description |
|---|---|
static ClassOccurrencePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassOccurrencePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassOccurrencePolicy ALL_CLASSES
public static final ClassOccurrencePolicy FIRST_CLASS
public static final ClassOccurrencePolicy ONE_CLASS_ONLY
public static final ClassOccurrencePolicy EXACTLY_ONE_CLASS_ONLY
public static ClassOccurrencePolicy[] values()
for (ClassOccurrencePolicy c : ClassOccurrencePolicy.values()) System.out.println(c);
public static ClassOccurrencePolicy 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 nullCopyright © 2021. All rights reserved.