Class JsonObjectParser.Builder

java.lang.Object
com.google.api.client.json.JsonObjectParser.Builder
Enclosing class:
JsonObjectParser

public static class JsonObjectParser.Builder extends Object
Builder.

Implementation is not thread-safe.

Since:
1.14
  • Field Details

    • jsonFactory

      final JsonFactory jsonFactory
      JSON factory.
    • wrapperKeys

      Collection<String> wrapperKeys
      Wrapper keys for the JSON content or empty for none.
  • Constructor Details

    • Builder

      public Builder(JsonFactory jsonFactory)
      Parameters:
      jsonFactory - JSON factory
  • Method Details

    • build

      public JsonObjectParser build()
      Returns a new instance of a JSON object parser.
    • getJsonFactory

      public final JsonFactory getJsonFactory()
      Returns the JSON factory.
    • getWrapperKeys

      public final Collection<String> getWrapperKeys()
      Returns the wrapper keys for the JSON content.
    • setWrapperKeys

      public JsonObjectParser.Builder setWrapperKeys(Collection<String> wrapperKeys)
      Sets the wrapper keys for the JSON content.

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