ClassUtils.GetAllInterfaces : ClassUtils « Apache Common « Java Tutorial






import org.apache.commons.lang.ClassUtils;

public class MainClass {
  public static void main(String[] args) {
    System.out.println("1) Interfaces implemented by java.lang.String >>> "
        + ClassUtils.getAllInterfaces(String.class));

  }
}
1) Interfaces implemented by java.lang.String >>> [interface java.io.Serializable, interface java.lang.Comparable, interface java.lang.CharSequence]
  Download:  CommonLangClassUtilsGetAllInterfaces.zip( 199 k)







37.5.ClassUtils
37.5.1.ClassUtils IsAssignable2
37.5.2.ClassUtils IsAssignable
37.5.3.ClassUtils.GetPackageName
37.5.4.ClassUtils.Get All Superclasses
37.5.5.ClassUtils.GetAllInterfaces