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

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

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

origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is an array (e.g. int[].class, {@link Integer}[] )
 */
public static boolean isClassArray(Class<?> type) {
  checkNull(type);
  boolean array = false;
  if (type.isArray()) {
    array = true;
  }
  return array;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a list (e.g. {@link List}, {@link ArrayList})
 */
public static boolean isClassList(Class<?> type) {
  checkNull(type);
  boolean list = false;
  if (List.class.isAssignableFrom(type)) {
    list = true;
  }
  return list;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a map (e.g. {@link Map}, {@link HashMap})
 */
public static boolean isClassMap(Class<?> type) {
  checkNull(type);
  boolean collection = false;
  if (Map.class.isAssignableFrom(type)) {
    collection = true;
  }
  return collection;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a collection (e.g. {@link Collection}, {@link HashSet}, {@link Vector})
 */
public static boolean isClassCollection(Class<?> type) {
  checkNull(type);
  boolean collection = false;
  if (Collection.class.isAssignableFrom(type)) {
    collection = true;
  }
  return collection;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a primitive (e.g. int.class, boolean.class)
 */
public static boolean isClassPrimitive(Class<?> type) {
  checkNull(type);
  boolean primitive = false;
  if (type.isPrimitive()) {
    primitive = true;
  }
  return primitive;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a map (e.g. {@link Map}, {@link HashMap})
 */
public static boolean isClassMap(Class<?> type) {
  checkNull(type);
  boolean collection = false;
  if (Map.class.isAssignableFrom(type)) {
    collection = true;
  }
  return collection;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is an array (e.g. int[].class, {@link Integer}[] )
 */
public static boolean isClassArray(Class<?> type) {
  checkNull(type);
  boolean array = false;
  if (type.isArray()) {
    array = true;
  }
  return array;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a primitive (e.g. int.class, boolean.class)
 */
public static boolean isClassPrimitive(Class<?> type) {
  checkNull(type);
  boolean primitive = false;
  if (type.isPrimitive()) {
    primitive = true;
  }
  return primitive;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a list (e.g. {@link List}, {@link ArrayList})
 */
public static boolean isClassList(Class<?> type) {
  checkNull(type);
  boolean list = false;
  if (List.class.isAssignableFrom(type)) {
    list = true;
  }
  return list;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a collection (e.g. {@link Collection}, {@link HashSet}, {@link Vector})
 */
public static boolean isClassCollection(Class<?> type) {
  checkNull(type);
  boolean collection = false;
  if (Collection.class.isAssignableFrom(type)) {
    collection = true;
  }
  return collection;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a primitive or other simple class (like String or immutable)
 */
public static boolean isClassSimple(Class<?> type) {
  checkNull(type);
  boolean simple = false;
  if ( isClassPrimitive(type) 
      || getImmutableTypes().contains(type)) {
    simple = true;
  }
  return simple;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a primitive or other simple class (like String or immutable)
 */
public static boolean isClassSimple(Class<?> type) {
  checkNull(type);
  boolean simple = false;
  if ( isClassPrimitive(type) 
      || getImmutableTypes().contains(type)) {
    simple = true;
  }
  return simple;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a bean of some kind (i.e. not primitive, immutable, or a holder like a map)
 */
public static boolean isClassBean(Class<?> type) {
  checkNull(type);
  boolean bean = true;
  if ( isClassSimple(type) || isClassObjectHolder(type) ) {
    bean = false;
  }
  return bean;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this class is a bean of some kind (i.e. not primitive, immutable, or a holder like a map)
 */
public static boolean isClassBean(Class<?> type) {
  checkNull(type);
  boolean bean = true;
  if ( isClassSimple(type) || isClassObjectHolder(type) ) {
    bean = false;
  }
  return bean;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this is a collection, map, or array, 
 * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array)
 */
public static boolean isClassObjectHolder(Class<?> type) {
  checkNull(type);
  boolean holder = false;
  if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) {
    holder = true;
  }
  return holder;
}
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this is a collection, map, or array, 
 * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array)
 */
public static boolean isClassObjectHolder(Class<?> type) {
  checkNull(type);
  boolean holder = false;
  if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) {
    holder = true;
  }
  return holder;
}
org.azeckoski.reflectutilsConstructorUtilscheckNull

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
  • 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
  • getDefaultValue
    Get the default value for for a type if one is available OR null if there is no default (since null
  • getClassFromInterface,
  • getDefaultValue,
  • getExtendAndInterfacesForClass,
  • getImmutableDefaults,
  • getImmutableTypes,
  • getInstance,
  • getInterfacesForClass,
  • getPrimitiveDefaults,
  • getPrimitiveToWrapper

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