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

How to use
getImmutableDefaults
method
in
org.azeckoski.reflectutils.ConstructorUtils

Best Java code snippets using org.azeckoski.reflectutils.ConstructorUtils.getImmutableDefaults (Showing top 4 results out of 315)

origin: org.azeckoski/reflectutils

private static void makeDefaultImmuatableSet() {
  immutableTypes = getImmutableDefaults().keySet();
}
origin: azeckoski/reflectutils

private static void makeDefaultImmuatableSet() {
  immutableTypes = getImmutableDefaults().keySet();
}
origin: azeckoski/reflectutils

/**
 * Get the default value for for a type if one is available OR null if there is no default (since null sorta is the default)
 * @param <T>
 * @param type any class type including primitives
 * @return the default value OR null if there is no default
 */
@SuppressWarnings("unchecked")
public static <T> T getDefaultValue(Class<T> type) {
  T val = null;
  if (getPrimitiveDefaults().containsKey(type)) {
    val = (T) getPrimitiveDefaults().get(type);
  } else if (getImmutableDefaults().containsKey(type)) {
    val = (T) getImmutableDefaults().get(type);
  }
  return val;
}
origin: org.azeckoski/reflectutils

/**
 * Get the default value for for a type if one is available OR null if there is no default (since null sorta is the default)
 * @param <T>
 * @param type any class type including primitives
 * @return the default value OR null if there is no default
 */
@SuppressWarnings("unchecked")
public static <T> T getDefaultValue(Class<T> type) {
  T val = null;
  if (getPrimitiveDefaults().containsKey(type)) {
    val = (T) getPrimitiveDefaults().get(type);
  } else if (getImmutableDefaults().containsKey(type)) {
    val = (T) getImmutableDefaults().get(type);
  }
  return val;
}
org.azeckoski.reflectutilsConstructorUtilsgetImmutableDefaults

Popular methods of ConstructorUtils

  • isClassBean
  • isClassMap
  • isClassSimple
  • isClassArray
  • isClassCollection
  • <init>
    Empty constructor WARNING: use the #getInstance() method to get this rather than recreating it over
  • checkNull
  • classAssignable
    Checks if assignFrom is assignable to assignTo (i.e. this is OK: assignFrom b; assignTo a = (assignT
  • classEquals
    Will compare 2 classes for equality which will make a friendly comparison of types and will happily
  • constructClass
    Construct an object for the class of the given type with the given params (arguments), arguments mus
  • getClassDataCacher
  • getClassFromInterface
    Gets a valid class which can be constructed from an interface or special cases which cannot be const
  • getClassDataCacher,
  • getClassFromInterface,
  • getDefaultValue,
  • getExtendAndInterfacesForClass,
  • getImmutableTypes,
  • getInstance,
  • getInterfacesForClass,
  • getPrimitiveDefaults,
  • getPrimitiveToWrapper

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Join (org.hibernate.mapping)
  • 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