public abstract class Parameters extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Parameters.BooleanDescription
This annotation defines readable descriptions boolean parameters.
|
static interface |
Parameters.KeylessDescription
This annotation is for descriptions which do not display the key/name.
|
static interface |
Parameters.PathDescription
This annotation defines readable descriptions for paths.
|
Constructor and Description |
---|
Parameters() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription(List<String> fields)
Returns a string representation of the parameters, using only the specified fields.
|
Enum<?> |
operation()
Notice the function name can't be getOperation since Jackson would transfer this function in to
json value, break Parameter serialization and cause serialization error.
|
static Pair<List<String>,List<String>> |
partitionFieldNames(List<Parameters> paramList) |
public String getDescription(List<String> fields)
fields
- the fields to use for the string representationpublic static Pair<List<String>,List<String>> partitionFieldNames(List<Parameters> paramList)
paramList
- the list of parameters to extract the common and unique fieldspublic Enum<?> operation()
Copyright © 2023. All Rights Reserved.