public interface ClassLookup
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(Class<?>... classes)
Add classes to the class lookup.
|
void |
addAlias(Class<?> clazz,
String names)
Add a class with a specific alias which may or may not have a package name.
|
Class<?> |
forName(CharSequence name)
Turn a string into a class
|
String |
nameFor(Class<?> clazz) |
default @NotNull ClassLookup |
wrap()
Wrap this class into
|
@NotNull default @NotNull ClassLookup wrap()
Class<?> forName(CharSequence name) throws ClassNotFoundRuntimeException
name - of the type/classClassNotFoundRuntimeExceptionString nameFor(Class<?> clazz) throws IllegalArgumentException
clazz - to lookup an alias forIllegalArgumentException - if used on a lambda function.void addAlias(Class<?>... classes)
classes - to addCopyright © 2022. All rights reserved.