Class NullToArray

  • All Implemented Interfaces:
    com.bazaarvoice.jolt.JoltTransform, com.bazaarvoice.jolt.Transform

    public class NullToArray
    extends java.lang.Object
    implements com.bazaarvoice.jolt.Transform
    Transform implementation returns an empty array when the object is null.

    This exists because it is not easily achievable using "operation": "default".

    • Constructor Summary

      Constructors 
      Constructor Description
      NullToArray()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object transform​(java.lang.Object input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullToArray

        public NullToArray()
    • Method Detail

      • transform

        public java.lang.Object transform​(java.lang.Object input)
        Specified by:
        transform in interface com.bazaarvoice.jolt.Transform