public final class Classes extends Object
Class utilities.| Constructor and Description |
|---|
Classes() |
| Modifier and Type | Method and Description |
|---|---|
static Method |
getAttributeGetter(Class cls,
String attr)
Returns attribute's getter method.
|
static Class |
getPrimitiveWrapper(Class type)
Get the wrapper class for the given primitive type.
|
static boolean |
isPrimitiveWrapper(Class type)
Check if the given class is a primitive wrapper class.
|
public static Class getPrimitiveWrapper(Class type)
type - Primitive class.IllegalArgumentException - Type is not a primitive classpublic static boolean isPrimitiveWrapper(Class type)
type - Class to check.public static Method getAttributeGetter(Class cls, String attr) throws NoSuchMethodException
cls - the class the attribute belongs tooattr - the attribute's nameNoSuchMethodException - if the getter was not foundCopyright © 2021 JBoss by Red Hat. All rights reserved.