Codota Logo
ConstructorUtils.getInterfacesForClass
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now