Class GenericJson

    • Constructor Detail

      • GenericJson

        public GenericJson()
    • Method Detail

      • getFactory

        public final JsonFactory getFactory()
        Returns the JSON factory or null for none.
        Since:
        1.6
      • setFactory

        public final void setFactory​(JsonFactory factory)
        Sets the JSON factory or null for none.
        Since:
        1.6
      • clone

        public GenericJson clone()
        Description copied from class: GenericData
        Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
        Overrides:
        clone in class GenericData
      • set

        public GenericJson set​(String fieldName,
                               Object value)
        Description copied from class: GenericData
        Sets the given field value (may be null) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient than GenericData.put(String, Object) because it avoids accessing the field's original value.

        Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

        Overrides:
        set in class GenericData