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

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

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

origin: org.azeckoski/reflectutils

/**
 * Adds the class which this class extends (if there is one) to the list of interfaces
 * @see #getInterfacesForClass(Class)
 * @param type any class type
 * @return the list of interfaces and the class this extends (empty if none)
 */
public static List<Class<?>> getExtendAndInterfacesForClass(Class<?> type) {
  ArrayList<Class<?>> l = new ArrayList<Class<?>>();
  Class<?> superClass = type.getSuperclass();
  if (superClass != null) {
    l.add(superClass);
  }
  l.addAll( getInterfacesForClass(type) );
  return l;
}
origin: azeckoski/reflectutils

/**
 * Adds the class which this class extends (if there is one) to the list of interfaces
 * @see #getInterfacesForClass(Class)
 * @param type any class type
 * @return the list of interfaces and the class this extends (empty if none)
 */
public static List<Class<?>> getExtendAndInterfacesForClass(Class<?> type) {
  ArrayList<Class<?>> l = new ArrayList<Class<?>>();
  Class<?> superClass = type.getSuperclass();
  if (superClass != null) {
    l.add(superClass);
  }
  l.addAll( getInterfacesForClass(type) );
  return l;
}
origin: azeckoski/reflectutils

if (Collections.class.equals(parent)) {
  List<Class<?>> l = getInterfacesForClass(type);
  if (l.size() > 0) {
    for (Class<?> iface : l) {
origin: org.azeckoski/reflectutils

if (Collections.class.equals(parent)) {
  List<Class<?>> l = getInterfacesForClass(type);
  if (l.size() > 0) {
    for (Class<?> iface : l) {
org.azeckoski.reflectutilsConstructorUtilsgetInterfacesForClass

Javadoc

A simple but efficient method for getting the interfaces for a class type, this has some shortcuts for the common types like maps, lists, etc.
Only returns the interfaces for the current type and not for all nested types

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,
  • 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)
  • Top plugins for WebStorm
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