Enum ExtendedModeEnablement.Availability
java.lang.Object
java.lang.Enum<ExtendedModeEnablement.Availability>
bibliothek.gui.dock.facile.mode.status.ExtendedModeEnablement.Availability
- All Implemented Interfaces:
Serializable,Comparable<ExtendedModeEnablement.Availability>,java.lang.constant.Constable
- Enclosing interface:
ExtendedModeEnablement
public static enum ExtendedModeEnablement.Availability
extends Enum<ExtendedModeEnablement.Availability>
A measurement of how available a certain mode is. Is several
ExtendedModeEnablement.Availabilitys are present,
the first one of this list wins:
- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe mode is most certainly availablethe mode is not availablethe strategy cannot decide, some other code will make the decisionthe mode is probably availablethe mode is probably not available -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether thisExtendedModeEnablement.Availabilitymeans "available" or "forbidden".Returns the enum constant of this type with the specified name.static ExtendedModeEnablement.Availability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRONG_AVAILABLE
the mode is most certainly available -
WEAK_AVAILABLE
the mode is probably available -
UNCERTAIN
the strategy cannot decide, some other code will make the decision -
WEAK_FORBIDDEN
the mode is probably not available -
STRONG_FORBIDDEN
the mode is not available
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isAvailable
public boolean isAvailable()Tells whether thisExtendedModeEnablement.Availabilitymeans "available" or "forbidden".- Returns:
trueifthismeans "available".
-
strongest
- Parameters:
other- some otherExtendedModeEnablement.Availability- Returns:
- the stronger of
thisandother
-