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

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

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

origin: org.azeckoski/reflectutils

/**
 * Get the wrapper class for this class if there is one
 * @param beanClass any class
 * @return the wrapper class if there is one OR just returns the given class
 */
public static Class<?> getWrapper(final Class<?> beanClass) {
  Class<?> wrapper = null;
  if (beanClass != null) {
    if ( isClassPrimitive(beanClass) ) {
      wrapper = getPrimitiveToWrapper().get(beanClass);
    } else if ( isClassArray(beanClass) && beanClass.getComponentType().isPrimitive()) {
      wrapper = getPrimitiveToWrapper().get(beanClass);
    } else {
      wrapper = beanClass;
    }
    if (wrapper == null) {
      wrapper = beanClass;
    }
  }
  return wrapper;
}
origin: azeckoski/reflectutils

/**
 * Get the wrapper class for this class if there is one
 * @param beanClass any class
 * @return the wrapper class if there is one OR just returns the given class
 */
public static Class<?> getWrapper(final Class<?> beanClass) {
  Class<?> wrapper = null;
  if (beanClass != null) {
    if ( isClassPrimitive(beanClass) ) {
      wrapper = getPrimitiveToWrapper().get(beanClass);
    } else if ( isClassArray(beanClass) && beanClass.getComponentType().isPrimitive()) {
      wrapper = getPrimitiveToWrapper().get(beanClass);
    } else {
      wrapper = beanClass;
    }
    if (wrapper == null) {
      wrapper = beanClass;
    }
  }
  return wrapper;
}
org.azeckoski.reflectutilsConstructorUtilsgetPrimitiveToWrapper

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,
  • getImmutableDefaults,
  • getImmutableTypes,
  • getInstance,
  • getInterfacesForClass,
  • getPrimitiveDefaults

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JTextField (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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