Class Classes

java.lang.Object
com.aoapps.lang.reflect.Classes

public final class Classes extends Object
Utilities for dealing with classes.
Author:
AO Industries, Inc.
  • Method Details

    • getAllClasses

      public static <T> Set<Class<? extends T>> getAllClasses(Class<? extends T> clazz, Class<T> upperBound)
      Gets all classes and interfaces for a class, up to and including the given upper bound.

      More precisely: gets all the classes that the given class either extends or implements, including all its parent classes and interfaces implemented by parent classes, that are assignable from the given upper bound.

    • getAllClasses

      public static Set<Class<?>> getAllClasses(Class<?> clazz)
      Gets all classes and interfaces for a class.

      More precisely: gets all the classes that the given class either extends or implements, including all its parent classes and interfaces implemented by parent classes.