@Factory
public class CoreSerializers
extends java.lang.Object
| Constructor and Description |
|---|
CoreSerializers() |
| Modifier and Type | Method and Description |
|---|---|
protected Serializer<java.lang.Boolean> |
booleanSerializer()
A serializer for all instances of
Boolean. |
protected Serializer<java.lang.CharSequence> |
charSequenceSerializer()
A serializer for all instances of
CharSequence. |
protected Serializer<java.lang.Character> |
charSerializer()
A serializer for all instances of
Character. |
protected <K,V> Serializer<java.util.Map<K,V>> |
mapSerializer()
A serializer for maps.
|
@Singleton protected Serializer<java.lang.CharSequence> charSequenceSerializer()
CharSequence.@Singleton protected Serializer<java.lang.Character> charSerializer()
Character.@Singleton protected Serializer<java.lang.Boolean> booleanSerializer()
Boolean.@Singleton protected <K,V> Serializer<java.util.Map<K,V>> mapSerializer()
K - The key typeV - The value type