| Modifier and Type | Field and Description |
|---|---|
| private final ValueSerializer |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ValueSerializer | createContextual(SerializationContext ctxt, BeanProperty property)
Overrides tools. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property (or, for root values, in which case `null` is passed). |
| public void | serialize(RangeSet<Comparable<?>> value, JsonGenerator g, SerializationContext ctxt)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _serializer | back to summary |
|---|---|
| private final ValueSerializer<Object> _serializer | |
| RangeSetSerializer | back to summary |
|---|---|
| public RangeSetSerializer() | |
| RangeSetSerializer | back to summary |
|---|---|
| protected RangeSetSerializer(RangeSetSerializer base, ValueSerializer<Object> ser) | |
| createContextual | back to summary |
|---|---|
| public ValueSerializer Overrides tools. Doc from tools. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property (or, for root values, in which case `null` is passed). Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use. Note that method is only called once per POJO property, and for the first usage as root value serializer; it is not called for every serialization, as doing that would have significant performance impact; most serializers cache contextual instances for future use.
| |
| serialize | back to summary |
|---|---|
| public void serialize(RangeSet<Comparable<?>> value, JsonGenerator g, SerializationContext ctxt) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |