congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GsonBuilder.addTypeAdaptersForDate
Code IndexAdd Tabnine to your IDE (free)

How to use
addTypeAdaptersForDate
method
in
com.google.gson.GsonBuilder

Best Java code snippets using com.google.gson.GsonBuilder.addTypeAdaptersForDate (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>(this.factories.size() + this.hierarchyFactories.size() + 3);
 factories.addAll(this.factories);
 Collections.reverse(factories);
 List<TypeAdapterFactory> hierarchyFactories = new ArrayList<TypeAdapterFactory>(this.hierarchyFactories);
 Collections.reverse(hierarchyFactories);
 factories.addAll(hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting, lenient,
   serializeSpecialFloatingPointValues, longSerializationPolicy,
   datePattern, dateStyle, timeStyle,
   this.factories, this.hierarchyFactories, factories);
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting, lenient,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: Odoo-mobile/framework

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: com.google/gson

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.gson

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: Nextdoor/bender

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: fesch/CanZE

/**
 * Creates a {@link Gson} instance based on the current configuration. This method is free of
 * side-effects to this {@code GsonBuilder} instance and hence can be called multiple times.
 *
 * @return an instance of Gson configured with the options currently set in this builder
 */
public Gson create() {
 List<TypeAdapterFactory> factories = new ArrayList<TypeAdapterFactory>();
 factories.addAll(this.factories);
 Collections.reverse(factories);
 factories.addAll(this.hierarchyFactories);
 addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, factories);
 return new Gson(excluder, fieldNamingPolicy, instanceCreators,
   serializeNulls, complexMapKeySerialization,
   generateNonExecutableJson, escapeHtmlChars, prettyPrinting,
   serializeSpecialFloatingPointValues, longSerializationPolicy, factories);
}
origin: eatnumber1/google-gson

  DefaultTypeAdapters.DEFAULT_HIERARCHY_DESERIALIZERS.copyOf();
customDeserializers.register(deserializers.copyOf());
addTypeAdaptersForDate(datePattern, dateStyle, timeStyle, customSerializers,
  customDeserializers);
com.google.gsonGsonBuilderaddTypeAdaptersForDate

Popular methods of GsonBuilder

  • create
    Creates a Gson instance based on the current configuration. This method is free of side-effects to t
  • <init>
    Constructs a GsonBuilder instance from a Gson instance. The newly constructed GsonBuilder has the sa
  • registerTypeAdapter
  • setPrettyPrinting
    Configures Gson to output Json that fits in a page for pretty printing. This option only affects Jso
  • serializeNulls
    Configure Gson to serialize null fields. By default, Gson omits all fields that are null during seri
  • disableHtmlEscaping
    By default, Gson escapes HTML characters such as < > etc. Use this option to configure Gson to pass-
  • setDateFormat
    Configures Gson to serialize Date objects according to the pattern provided. You can call this metho
  • registerTypeAdapterFactory
    Register a factory for type adapters. Registering a factory is useful when the type adapter needs to
  • setFieldNamingPolicy
    Configures Gson to apply a specific naming policy to an object's field during serialization and dese
  • registerTypeHierarchyAdapter
  • excludeFieldsWithoutExposeAnnotation
    Configures Gson to exclude all fields from consideration for serialization or deserialization that d
  • setExclusionStrategies
    Configures Gson to apply a set of exclusion strategies during both serialization and deserialization
  • excludeFieldsWithoutExposeAnnotation,
  • setExclusionStrategies,
  • enableComplexMapKeySerialization,
  • setLenient,
  • addSerializationExclusionStrategy,
  • excludeFieldsWithModifiers,
  • serializeSpecialFloatingPointValues,
  • setVersion,
  • setFieldNamingStrategy

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • getContentResolver (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now