public class BooleanCachedClass
extends CachedClass
Provides optimized reflection caching for boolean and Boolean.
Optionally allows null values for the boxed Boolean class variant.
| Fields inherited from class | Fields |
|---|---|
class CachedClass |
EMPTY_ARRAY, classInfo, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods |
| Constructor and description |
|---|
BooleanCachedClass(Class klazz, ClassInfo classInfo, boolean allowNull)Constructs a cached class representation for the given boolean class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isAssignableFrom(Class classToTransformFrom)Determines if the given class can be transformed to boolean/Boolean. |
|
public boolean |
isDirectlyAssignable(Object argument)Checks if the given argument is directly assignable without type conversion. |
| Methods inherited from class | Name |
|---|---|
class CachedClass |
addNewMopMethods, coerceArgument, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isAssignableFrom, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString |
Determines if the given class can be transformed to boolean/Boolean.
classToTransformFrom - the source class to checktrue if the class can be transformed to boolean, false otherwiseCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.