public enum CollectionFormatType extends Enum<CollectionFormatType>
For list collections that we send in the query string, describes the different ways we can encode it in the query string.
Values and meanings align with the different collectionFormat values in Swagger. Each of the
*Separated enum members describes a different delimiter character, whereas the Multi value means
that each collection member will appear as a separate entry in the query string of the form
Enum Constant and Description |
---|
CommaSeparated |
Multi |
PipeSeparated |
SpaceSeparated |
TabSeparated |
Modifier and Type | Method and Description |
---|---|
static CollectionFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CollectionFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollectionFormatType CommaSeparated
public static final CollectionFormatType PipeSeparated
public static final CollectionFormatType SpaceSeparated
public static final CollectionFormatType TabSeparated
public static final CollectionFormatType Multi
public static CollectionFormatType[] values()
for (CollectionFormatType c : CollectionFormatType.values()) System.out.println(c);
public static CollectionFormatType 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 nullCopyright © 2016–2024. All rights reserved.