Class AbstractObjectArrayToJsonConverter
java.lang.Object
org.springframework.geode.data.json.converter.AbstractObjectArrayToJsonConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<Iterable<?>,
,String> ObjectArrayToJsonConverter
public abstract class AbstractObjectArrayToJsonConverter
extends Object
implements ObjectArrayToJsonConverter
An abstract base class implementing
ObjectArrayToJsonConverter
encapsulating functionality common
to all implementations.- Since:
- 1.3.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<K,
V> String protected ObjectToJsonConverter
Returns a reference to the configuredObjectToJsonConverter
used to convert individualObjects
intoJSON
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
Methods inherited from interface org.springframework.geode.data.json.converter.ObjectArrayToJsonConverter
convert
-
Field Details
-
BEGIN_ARRAY
- See Also:
-
EMPTY_STRING
- See Also:
-
END_ARRAY
- See Also:
-
JSON_OBJECT_SEPARATOR
- See Also:
-
-
Constructor Details
-
AbstractObjectArrayToJsonConverter
public AbstractObjectArrayToJsonConverter()
-
-
Method Details
-
getObjectToJsonConverter
Returns a reference to the configuredObjectToJsonConverter
used to convert individualObjects
intoJSON
.- Returns:
- a reference to the configured
ObjectToJsonConverter
; never null. - See Also:
-
convert
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<Iterable<?>,
String> - Parameters:
iterable
-Iterable
containing theObjects
to convert intoJSON
; must not be null.- Returns:
- the
JSON
generated from the givenIterable
ofObjects
; never null. - Throws:
IllegalArgumentException
- ifIterable
is null.- See Also:
-
convert
-