public final class PathParamSerializers extends Object
Modifier and Type | Field and Description |
---|---|
static PathParamSerializer<Boolean> |
BOOLEAN
A Boolean path param serializer.
|
static PathParamSerializer<Collection<Object>> |
COLLECTION
A generic (unresolved) Collection serializer.
|
static PathParamSerializer<Double> |
DOUBLE
An Double path param serializer.
|
static PathParamSerializer<Integer> |
INTEGER
An Integer path param serializer.
|
static PathParamSerializer<List<Object>> |
LIST
A generic (unresolved) List serializer.
|
static PathParamSerializer<Long> |
LONG
A Long path param serializer.
|
static PathParamSerializer<Optional<Object>> |
OPTIONAL
A generic (unresolved) Optional serializer.
|
static PathParamSerializer<Set<Object>> |
SET
A generic (unresolved) Set serializer.
|
static PathParamSerializer<String> |
STRING
A String path param serializer.
|
static PathParamSerializer<UUID> |
UUID
A UUID path param serializer.
|
Modifier and Type | Method and Description |
---|---|
static <Param> PathParamSerializer<Collection<Param>> |
collection(String name,
Function<org.pcollections.PSequence<String>,Param> deserialize,
Function<Param,org.pcollections.PSequence<String>> serialize)
Create a PathParamSerializer for Collection parameters.
|
static <Param> PathParamSerializer<List<Param>> |
list(String name,
Function<org.pcollections.PSequence<String>,Param> deserialize,
Function<Param,org.pcollections.PSequence<String>> serialize)
Create a PathParamSerializer for List parameters.
|
static <Param> PathParamSerializer<Optional<Param>> |
optional(String name,
Function<String,Param> deserialize,
Function<Param,String> serialize)
Create a PathParamSerializer for optional parameters.
|
static <Param> PathParamSerializer<Param> |
required(String name,
Function<String,Param> deserialize,
Function<Param,String> serialize)
Create a PathParamSerializer for required parameters.
|
static <Param> PathParamSerializer<Set<Param>> |
set(String name,
Function<org.pcollections.PSequence<String>,Param> deserialize,
Function<Param,org.pcollections.PSequence<String>> serialize)
Create a PathParamSerializer for Set parameters.
|
public static final PathParamSerializer<String> STRING
public static final PathParamSerializer<Long> LONG
public static final PathParamSerializer<Integer> INTEGER
public static final PathParamSerializer<Double> DOUBLE
public static final PathParamSerializer<Boolean> BOOLEAN
public static final PathParamSerializer<UUID> UUID
public static final PathParamSerializer<Optional<Object>> OPTIONAL
public static final PathParamSerializer<List<Object>> LIST
public static final PathParamSerializer<Set<Object>> SET
public static final PathParamSerializer<Collection<Object>> COLLECTION
public static <Param> PathParamSerializer<Param> required(String name, Function<String,Param> deserialize, Function<Param,String> serialize)
public static <Param> PathParamSerializer<Optional<Param>> optional(String name, Function<String,Param> deserialize, Function<Param,String> serialize)
public static <Param> PathParamSerializer<List<Param>> list(String name, Function<org.pcollections.PSequence<String>,Param> deserialize, Function<Param,org.pcollections.PSequence<String>> serialize)
public static <Param> PathParamSerializer<Set<Param>> set(String name, Function<org.pcollections.PSequence<String>,Param> deserialize, Function<Param,org.pcollections.PSequence<String>> serialize)
public static <Param> PathParamSerializer<Collection<Param>> collection(String name, Function<org.pcollections.PSequence<String>,Param> deserialize, Function<Param,org.pcollections.PSequence<String>> serialize)