public enum SupportLevel extends Enum<SupportLevel>
Enum Constant and Description |
---|
POSSIBLY_SUPPORTED
The given credential type may be supported.
|
SUPPORTED
The given credential type is definitely supported.
|
UNSUPPORTED
The given credential type is definitely not supported.
|
Modifier and Type | Method and Description |
---|---|
boolean |
in(SupportLevel... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(SupportLevel v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(SupportLevel v1,
SupportLevel v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(SupportLevel v1,
SupportLevel v2,
SupportLevel v3)
Determine whether this instance is equal to one of the given instances.
|
boolean |
isDefinitelySupported()
Determine if this object represents definite support.
|
static boolean |
isFull(EnumSet<SupportLevel> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
boolean |
isNotSupported()
Determine if this object represents definite lack of support.
|
static SupportLevel |
max(SupportLevel o1,
SupportLevel o2)
Get the maximum support level between two candidates.
|
boolean |
mayBeSupported()
Determine if this object represents possible or definite support.
|
static SupportLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportLevel UNSUPPORTED
public static final SupportLevel POSSIBLY_SUPPORTED
public static final SupportLevel SUPPORTED
public static SupportLevel[] values()
for (SupportLevel c : SupportLevel.values()) System.out.println(c);
public static SupportLevel 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 nullpublic boolean isDefinitelySupported()
true
if this object represents definite support, false
otherwisepublic boolean mayBeSupported()
true
if this object represents possible or definite support, false
otherwisepublic boolean isNotSupported()
true
if this object represents definite lack of support, false
otherwisepublic static boolean isFull(EnumSet<SupportLevel> set)
set
- the settrue
if the set is full, false
otherwisepublic boolean in(SupportLevel v1)
v1
- the first instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(SupportLevel v1, SupportLevel v2)
v1
- the first instancev2
- the second instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(SupportLevel v1, SupportLevel v2, SupportLevel v3)
v1
- the first instancev2
- the second instancev3
- the third instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(SupportLevel... values)
values
- the possible valuestrue
if one of the instances matches this one, false
otherwisepublic static SupportLevel max(SupportLevel o1, SupportLevel o2)
o1
- the first support level (must not be null
)o2
- the second support level (must not be null
)null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.