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.
  • Enum Constant Details

  • Method Details

    • values

      public static MessageBodyOperator.PredicateResult[] 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

      public static MessageBodyOperator.PredicateResult valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • supports

      public static MessageBodyOperator.PredicateResult supports(Class<?> expected, GenericType<?> actual)
      Whether handled class is supported. Method Class.isAssignableFrom(Class) is invoked to verify if class under expected parameter is supported by by the class under actual parameter.
      Parameters:
      expected - expected type
      actual - actual type
      Returns:
      if supported or not