Adapter<S,D> |
Adaptable.adapter() |
Gets the adapter.
|
static <S,D extends S> Adapter<S,D> |
Adapter.cast(Predicate<S> isInstance) |
Adapts objects by casting if they're compatible.
|
static <S> Adapter<S,S> |
Adapter.identity() |
Gets an adapter that simply returns the input.
|
Adapter<S,BigDecimal> |
Adapter.StandardSet.intoBigDecimal() |
Adapts from the serialized type into
big decimals and vice versa.
|
Adapter<S,BigInteger> |
Adapter.StandardSet.intoBigInteger() |
Adapts from the serialized type into
big integers and vice versa.
|
Adapter<S,Boolean> |
Adapter.StandardSet.intoBoolean() |
Adapts from the serialized type into
booleans and vice versa.
|
Adapter<S,Byte> |
Adapter.StandardSet.intoByte() |
Adapts from the serialized type into
bytes and vice versa.
|
Adapter<S,Character> |
Adapter.StandardSet.intoCharacter() |
Adapts from the serialized type into
characters and vice versa.
|
Adapter<S,Double> |
Adapter.StandardSet.intoDouble() |
Adapts from the serialized type into
doubles and vice versa.
|
<E extends Enum<E>> Adapter<S,E> |
Adapter.StandardSet.intoEnum(Class<E> type) |
Adapts from the serialized type into
enums and vice versa.
|
Adapter<S,Float> |
Adapter.StandardSet.intoFloat() |
Adapts from the serialized type into
floats and vice versa.
|
Adapter<S,Integer> |
Adapter.StandardSet.intoInteger() |
Adapts from the serialized type into
integers and vice versa.
|
Adapter<S,Long> |
Adapter.StandardSet.intoLong() |
Adapts from the serialized type into
longs and vice versa.
|
Adapter<S,Short> |
Adapter.StandardSet.intoShort() |
Adapts from the serialized type into
shorts and vice versa.
|
Adapter<S,String> |
Adapter.StandardSet.intoString() |
Adapts from the serialized type into
strings and vice versa.
|
Adapter<S,UUID> |
Adapter.StandardSet.intoUuid() |
Adapts from the serialized type into
UUIDs and vice versa.
|
static <S,D> Adapter<S,D> |
Adapter.of(Deserializer<S,D> deserializer,
Serializer<D,S> serializer) |
Creates a new Adapter by delegating
to the provided arguments.
|
static <S,D> Adapter<S,D> |
Adapter.unsupported() |
Gets an adapter that always returns
Optional.empty() for both
deserialization and serialization.
|