public class ClassSpaceHelper extends Object
| Constructor and Description |
|---|
ClassSpaceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<?>[]> |
addDimension(List<Class<?>[]> baseVectors,
Class<?>[] newDimension)
Add an additional dimension to a list of vectors.
|
static List<Class<?>[]> |
cartesianProduct(Class<?>[] classes1,
Class<?>[] classes2)
Cartesian product of two Class arrays.
|
static Class<?>[] |
getClassesAtPackage(String packageName)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
static List<Class<?>[]> |
product(List<Class<?>[]> classVector)
Product of a list of vectors
|
public static List<Class<?>[]> cartesianProduct(Class<?>[] classes1, Class<?>[] classes2)
Cartesian product of two Class arrays.
For example, for {A,B,C} {X,Y,Z} it'd be: List(9) = ({A,X},{A,Y},{A,Z},{B,X},{B,Y},{B,Z},{C,X},{C,Y},{C,Z})classes1 - Class<?>[]classes2 - Class<?>[]public static List<Class<?>[]> addDimension(List<Class<?>[]> baseVectors, Class<?>[] newDimension)
Add an additional dimension to a list of vectors.
For example, for List({A,B},{C,D}) , {X,Y} it will be: List(4) = ({A,B,X},{A,B,Y},{C,D,X},{C,D,Y})baseVectors - List<Class<?>[]>newDimension - Class<?>[]public static List<Class<?>[]> product(List<Class<?>[]> classVector)
Product of a list of vectors
.classVector - List<Class<?>[2]>public static Class<?>[] getClassesAtPackage(String packageName) throws ClassNotFoundException, IOException
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
packageName - The base packageClassNotFoundExceptionIOExceptionCopyright © 2001–2019 KnowGate. All rights reserved.