Enum RestPartType

java.lang.Object
java.lang.Enum<RestPartType>
org.apache.juneau.rest.httppart.RestPartType
All Implemented Interfaces:
Serializable, Comparable<RestPartType>, java.lang.constant.Constable

public enum RestPartType extends Enum<RestPartType>
Represents the possible parameter types as defined by the Swagger 2.0 specification.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static RestPartType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RestPartType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isAny

      public boolean isAny(RestPartType... t)
      Returns true if this type is any in the specified list.
      Parameters:
      t - The list to check against.
      Returns:
      true if this type is any in the specified list.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RestPartType>