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

How to use
DefaultConverters$PropertiesConverter
in
com.owlike.genson.convert

Best Java code snippets using com.owlike.genson.convert.DefaultConverters$PropertiesConverter (Showing top 3 results out of 315)

origin: feroult/yawp

  @SuppressWarnings("unchecked")
  private <K, V> DefaultConverters.MapConverter<K, V> createConverter(Class<?> typeOfMap,
                                    DefaultConverters.KeyAdapter<K> keyAdapter, Converter<V> valueConverter) {
    if (Properties.class.equals(typeOfMap))
      return new DefaultConverters.PropertiesConverter(keyAdapter, valueConverter);

    if (Hashtable.class.equals(typeOfMap))
      return new DefaultConverters.HashTableConverter<>(keyAdapter, valueConverter);

    if (TreeMap.class.equals(typeOfMap))
      return new DefaultConverters.TreeMapConverter<>(keyAdapter, valueConverter);

    if (LinkedHashMap.class.equals(typeOfMap))
      return new DefaultConverters.LinkedHashMapConverter<>(keyAdapter, valueConverter);

    return new DefaultConverters.HashMapConverter<>(keyAdapter, valueConverter);
  }
}
origin: owlike/genson

 @SuppressWarnings("unchecked")
 private <K, V> MapConverter<K, V> createConverter(Class<?> typeOfMap,
                          KeyAdapter<K> keyAdapter, Converter<V> valueConverter) {
  if (Properties.class.equals(typeOfMap))
   return new PropertiesConverter(keyAdapter, valueConverter);
  if (Hashtable.class.equals(typeOfMap))
   return new HashTableConverter<K, V>(keyAdapter, valueConverter);
  if (TreeMap.class.equals(typeOfMap))
   return new TreeMapConverter<K, V>(keyAdapter, valueConverter);
  if (LinkedHashMap.class.equals(typeOfMap))
   return new LinkedHashMapConverter<K, V>(keyAdapter, valueConverter);
  return new HashMapConverter<K, V>(keyAdapter, valueConverter);
 }
}
origin: com.owlike/genson

 @SuppressWarnings("unchecked")
 private <K, V> MapConverter<K, V> createConverter(Class<?> typeOfMap,
                          KeyAdapter<K> keyAdapter, Converter<V> valueConverter) {
  if (Properties.class.equals(typeOfMap))
   return new PropertiesConverter(keyAdapter, valueConverter);
  if (Hashtable.class.equals(typeOfMap))
   return new HashTableConverter<K, V>(keyAdapter, valueConverter);
  if (TreeMap.class.equals(typeOfMap))
   return new TreeMapConverter<K, V>(keyAdapter, valueConverter);
  if (LinkedHashMap.class.equals(typeOfMap))
   return new LinkedHashMapConverter<K, V>(keyAdapter, valueConverter);
  return new HashMapConverter<K, V>(keyAdapter, valueConverter);
 }
}
com.owlike.genson.convertDefaultConverters$PropertiesConverter

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
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