Code example for Excluder

Methods: disableInnerClassSerialization

0
   * 
   * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern 
   * @since 1.3 
   */ 
  public GsonBuilder disableInnerClassSerialization() {
    excluder = excluder.disableInnerClassSerialization();
    return this;
  } 
 
  /** 
   * Configures Gson to apply a specific serialization policy for {@code Long} and {@code long} 
   * objects. 
   * 
   * @param serializationPolicy the particular policy to use for serializing longs. 
   * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern 
   * @since 1.3 
   */ 
  public GsonBuilder setLongSerializationPolicy(LongSerializationPolicy serializationPolicy) {
    this.longSerializationPolicy = serializationPolicy;
    return this;