Code example for Excluder

Methods: excludeFieldsWithoutExposeAnnotation

0
   * that do not have the {@link com.google.gson.annotations.Expose} annotation. 
   * 
   * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern 
   */ 
  public GsonBuilder excludeFieldsWithoutExposeAnnotation() {
    excluder = excluder.excludeFieldsWithoutExposeAnnotation();
    return this;
  } 
 
  /** 
   * Configure Gson to serialize null fields. By default, Gson omits all fields that are null 
   * during serialization. 
   * 
   * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern 
   * @since 1.2 
   */ 
  public GsonBuilder serializeNulls() {
    this.serializeNulls = true;
    return this;
  }