| Access | Constructor and Description |
|---|---|
| public | GuavaOptionalSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser)
|
| public | GuavaOptionalSerializer(GuavaOptionalSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Object | _getReferenced(Optional<?> value)
Implements abstract tools.
|
| protected Object | _getReferencedIfPresent(Optional<?> value)
Implements abstract tools.
|
| protected boolean | _isValuePresent(Optional<?> value)
Implements abstract tools. Method called to see if there is a value present or not. |
| public ReferenceTypeSerializer | withContentInclusion(Object suppressableValue, boolean suppressNulls)
Implements abstract tools. Mutant factory method called to create a differently constructed instance, specifically with different exclusion rules for contained value. |
| protected ReferenceTypeSerializer | withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper)
Implements abstract tools. Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated. |
| GuavaOptionalSerializer | back to summary |
|---|---|
| public GuavaOptionalSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) | |
| GuavaOptionalSerializer | back to summary |
|---|---|
| public GuavaOptionalSerializer(GuavaOptionalSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) | |
| _getReferenced | back to summary |
|---|---|
| protected Object _getReferenced(Optional<?> value) Implements abstract tools.
| |
| _getReferencedIfPresent | back to summary |
|---|---|
| protected Object _getReferencedIfPresent(Optional<?> value) Implements abstract tools.
| |
| _isValuePresent | back to summary |
|---|---|
| protected boolean _isValuePresent(Optional<?> value) Implements abstract tools. Doc from tools. Method called to see if there is a value present or not. Note that value itself may still be `null`, even if present, if referential type allows three states (absent, present-null, present-non-null); some only allow two (absent, present-non-null).
| |
| withContentInclusion | back to summary |
|---|---|
| public ReferenceTypeSerializer Implements abstract tools. Doc from tools. Mutant factory method called to create a differently constructed instance, specifically with different exclusion rules for contained value. Note caller has verified that there are changes, so implementations need NOT check if a new instance is needed.
| |
| withResolved | back to summary |
|---|---|
| protected ReferenceTypeSerializer Implements abstract tools. Doc from tools. Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated. Note caller has verified that there are changes, so implementations need NOT check if a new instance is needed.
| |