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

How to use
JsonParsableRegistry
in
org.eclipse.ditto.signals.base

Best Java code snippets using org.eclipse.ditto.signals.base.JsonParsableRegistry (Showing top 2 results out of 315)

origin: eclipse/ditto

/**
 * Adds the given registry to this builder.
 *
 * @param jsonParsableRegistry the registry to be added.
 * @return this builder instance to allow Method Chaining.
 * @throws NullPointerException if {@code jsonParsableRegistry} is {@code null}.
 */
public MappingStrategiesBuilder add(
    @Nonnull final JsonParsableRegistry<? extends Jsonifiable> jsonParsableRegistry) {
  checkNotNull(jsonParsableRegistry, "jsonParsableRegistry");
  final Set<String> types = jsonParsableRegistry.getTypes();
  for (final String type : types) {
    strategies.put(type, jsonParsableRegistry::parse);
  }
  return this;
}
origin: org.eclipse.ditto/ditto-services-utils-cluster

/**
 * Adds the given registry to this builder.
 *
 * @param jsonParsableRegistry the registry to be added.
 * @return this builder instance to allow Method Chaining.
 * @throws NullPointerException if {@code jsonParsableRegistry} is {@code null}.
 */
public MappingStrategiesBuilder add(
    @Nonnull final JsonParsableRegistry<? extends Jsonifiable> jsonParsableRegistry) {
  checkNotNull(jsonParsableRegistry, "jsonParsableRegistry");
  final Set<String> types = jsonParsableRegistry.getTypes();
  for (final String type : types) {
    strategies.put(type, jsonParsableRegistry::parse);
  }
  return this;
}
org.eclipse.ditto.signals.baseJsonParsableRegistry

Javadoc

A registry is aware of a set of JsonParsables which the registry can parse from a org.eclipse.ditto.json.JsonObject.

Most used methods

  • getTypes
    Returns the types (command, response, event, error) this registry supports.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JPanel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • CodeWhisperer alternatives
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