public final class TypeUtil extends Object
Types and derivatives. This class is adapted heavily from the Spring Framework, specifically the TypeUtils class.
|Modifier and Type||Method and Description|
Gets all declared fields for the given class (including superclasses).
Indicates if two
public static List<Field> getAllDeclaredFields(Class<?> cls)
cls- the class to examine
public static boolean isAssignable(Type lhs, Type rhs)
Types are assignment compatible.
lhs- the left hand side to check assignability to
rhs- the right hand side to check assignability from
trueif it is legal to assign a variable of type
rhsto a variable of type
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.