public class Classes extends Object
Classes.| Constructor and Description |
|---|
Classes() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
closest(Class<?> targetClass,
Collection<? extends Class<?>> classes)
Returns the class from
classes that is closest to the given
target class. |
public static Class<?> closest(Class<?> targetClass, Collection<? extends Class<?>> classes)
classes that is closest to the given
target class. The closest class is searched for in this order:
Object) is
reached.targetClass - The target classclasses - The possible classes from which a match should be locatednull if no given class matches the
given target classCopyright © 2026. All rights reserved.