|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Enforcement>
bibliothek.gui.dock.station.support.Enforcement
public enum Enforcement
Describes how much a caller to Combiner.prepare(CombinerSource, Enforcement) would
like the method to succeed.
| Enum Constant Summary | |
|---|---|
EXPECTED
The caller of prepare does have a backup
plan should the method return null, but it is not a good one. |
|
FREE
It is completely up to the Combiner whether prepare
returns null or not. |
|
HARD
prepare must return a value that
is not null. |
|
WHISHED
The caller of prepare does have a backup
plan should the method return null, and it is a good one. |
|
| Method Summary | |
|---|---|
float |
getForce()
Gets the force on a scale of 0 to 1, where 0 means that prepare
is free to do what it wants, while 1 means that prepare
must not return a null value. |
static Enforcement |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Enforcement[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Enforcement HARD
prepare must return a value that
is not null.
public static final Enforcement EXPECTED
prepare does have a backup
plan should the method return null, but it is not a good one.
public static final Enforcement WHISHED
prepare does have a backup
plan should the method return null, and it is a good one.
public static final Enforcement FREE
Combiner whether prepare
returns null or not.
| Method Detail |
|---|
public static Enforcement[] values()
for (Enforcement c : Enforcement.values()) System.out.println(c);
public static Enforcement valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic float getForce()
prepare
is free to do what it wants, while 1 means that prepare
must not return a null value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||