Class JSONCodecConfiguration


  • public class JSONCodecConfiguration
    extends java.lang.Object
    Configuration of JSONCodecs and JSONModellers. A configuration is intended to be used for multiple (if not all) instances of JSONCodec or JSONModeller. This class is immutable and implements a variant of the Builder Pattern.
    • All fields are public final.
    • For each field exists a "setter" with the same name.
    • Each field "setter" creates a copy of the instance, changing the field to the given value.
    Following code creates a default configuration with ignoreNull and ignoreMissingFields altered to true.
     JSONCodecConfiguration cfg = new JSONCodecConfiguration()
         .ignoreNull(true)
         .ignoreMissingFields(true);
     

    Multi-Threading

    Immutable.
    Author:
    homac