Enum Class 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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      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.
      expected - expected type
      actual - actual type
      if supported or not