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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,V> String protected ObjectToJsonConverterReturns a reference to the configuredObjectToJsonConverterused to convert individualObjectsintoJSON.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThenMethods 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 configuredObjectToJsonConverterused to convert individualObjectsintoJSON.- Returns:
- a reference to the configured
ObjectToJsonConverter; never null. - See Also:
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<Iterable<?>,String> - Parameters:
iterable-Iterablecontaining theObjectsto convert intoJSON; must not be null.- Returns:
- the
JSONgenerated from the givenIterableofObjects; never null. - Throws:
IllegalArgumentException- ifIterableis null.- See Also:
-
convert
-