| Modifier and Type | Field and Description |
|---|---|
| private static final TypeFactory |
| Access | Constructor and Description |
|---|---|
| protected | EclipsePrimitiveIterableSerializer(Class<C> type, JavaType elementType, BeanProperty property, Boolean unwrapSingle)
|
| Modifier and Type | Method and Description |
|---|---|
| protected static JavaType | |
| public boolean | hasSingleElement(C value)
Implements abstract tools. Method called to determine if the given value (of type handled by this serializer) contains exactly one element. |
| public boolean | isEmpty(SerializationContext ctxt, C value)
Implements abstract tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| TYPE_F | back to summary |
|---|---|
| private static final TypeFactory TYPE_F | |
| EclipsePrimitiveIterableSerializer | back to summary |
|---|---|
| protected EclipsePrimitiveIterableSerializer(Class<C> type, JavaType elementType, BeanProperty property, Boolean unwrapSingle) | |
| elementType | back to summary |
|---|---|
| protected static JavaType elementType(Class<?> rawElementType) | |
| hasSingleElement | back to summary |
|---|---|
| public boolean hasSingleElement(C value) Implements abstract tools. Doc from tools. Method called to determine if the given value (of type handled by this serializer) contains exactly one element. Note although it might seem sensible to instead define something like "getElementCount()" method, this would not work well for containers that do not keep track of size (like linked lists may not).
Note, too, that this method is only called by serializer
itself; and specifically is not used for non-array/collection types
like
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializationContext ctxt, C value) Implements abstract tools. Doc from tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). Default implementation will consider only null values to be empty.
| |