- Type Parameters:
E
- The enum type.
- All Known Implementing Classes:
UI.Active
,UI.Align
,UI.Alignment
,UI.Axis
,UI.ComponentArea
,UI.ComponentBoundary
,UI.ComponentOrientation
,UI.Corner
,UI.Cursor
,UI.Cycle
,UI.Edge
,UI.FontStyle
,UI.GradientType
,UI.HorizontalAlignment
,UI.Layer
,UI.ListData
,UI.LookAndFeel
,UI.MapData
,UI.NoiseType
,UI.OnWindowClose
,UI.OverflowPolicy
,UI.Placement
,UI.Side
,UI.Span
,UI.VerticalAlignment
A set of extension methods for various SwingTree enums.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Checks if this enum value is none of the 2 given values.default boolean
Checks if this enum value is none of the given values.default boolean
Checks if this enum value is none of the given iterable values.default boolean
Checks if this enum value is one of the 2 given values.default boolean
Checks if this enum value is one of the given values.default boolean
Checks if this enum value is one of the given iterable values.
-
Method Details
-
isOneOf
Checks if this enum value is one of the given values.- Parameters:
first
- The first enum value to compare to.rest
- The rest of the enum values to compare to.- Returns:
- True if this enum value is one of the given values.
-
isOneOf
Checks if this enum value is one of the 2 given values.- Parameters:
first
- The first enum value to compare to.second
- The second enum value to compare to.- Returns:
- True if this enum value is one of the given values.
-
isNoneOf
Checks if this enum value is none of the given values.- Parameters:
first
- The first enum value to compare to.rest
- The rest of the enum values to compare to.- Returns:
- True if this enum value is none of the given values.
-
isNoneOf
Checks if this enum value is none of the 2 given values.- Parameters:
first
- The first enum value to compare to.second
- The second enum value to compare to.- Returns:
- True if this enum value is none of the given values.
-
isOneOf
Checks if this enum value is one of the given iterable values.- Parameters:
values
- The iterable values to compare to.- Returns:
- True if this enum value is one of the given values.
-
isNoneOf
Checks if this enum value is none of the given iterable values.- Parameters:
values
- The iterable values to compare to.- Returns:
- True if this enum value is none of the given values.
-