Module io.helidon.media.common
Package io.helidon.media.common
Enum Class MessageBodyOperator.PredicateResult
java.lang.Object
java.lang.Enum<MessageBodyOperator.PredicateResult>
io.helidon.media.common.MessageBodyOperator.PredicateResult
- All Implemented Interfaces:
Serializable
,Comparable<MessageBodyOperator.PredicateResult>
,Constable
- Enclosing interface:
- MessageBodyOperator<T extends MessageBodyContext>
public static enum MessageBodyOperator.PredicateResult
extends Enum<MessageBodyOperator.PredicateResult>
Status whether requested class type is supported by the operator.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequested type is compatible with this operator, but it is not exact match.Requested type not supported.Requested type is supported by that specific operator. -
Method Summary
Modifier and TypeMethodDescriptionsupports
(Class<?> expected, GenericType<?> actual) Whether handled class is supported.Returns the enum constant of this class with the specified name.static MessageBodyOperator.PredicateResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SUPPORTED
Requested type not supported. -
COMPATIBLE
Requested type is compatible with this operator, but it is not exact match. -
SUPPORTED
Requested type is supported by that specific operator.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
supports
public static MessageBodyOperator.PredicateResult supports(Class<?> expected, GenericType<?> actual) Whether handled class is supported. MethodClass.isAssignableFrom(Class)
is invoked to verify if class under expected parameter is supported by by the class under actual parameter.- Parameters:
expected
- expected typeactual
- actual type- Returns:
- if supported or not
-