@Immutable public class ClassInfo extends Object implements Serializable
The purpose of this class is to work as a sort of cache which stores the list of declared fields and setter methods of a given class. These information will then be analysed to compose the list of setters which can be invoked to create the state of a given POJO.
| Modifier and Type | Field and Description |
|---|---|
private Set<ClassAttribute> |
classAttributes
The Set of fields belonging to this class
|
private Class<?> |
className
The Class name whose info are stored in this class
|
private List<Method> |
extraMethods |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ClassInfo(Class<?> className,
Collection<ClassAttribute> classAttributes)
Partial constructor.
|
ClassInfo(Class<?> className,
Collection<ClassAttribute> classAttributes,
Collection<Method> extraMethods)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Set<ClassAttribute> |
getClassAttributes() |
Class<?> |
getClassName()
It returns the class name.
|
int |
hashCode() |
private static final long serialVersionUID
private final Class<?> className
private final Set<ClassAttribute> classAttributes
public ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes)
className - The class nameclassAttributes - The collection of attributes belonging to this classpublic ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes, Collection<Method> extraMethods)
className - The class nameclassAttributes - The collection of attributes belonging to this classextraMethods - The collection of extra methods to executepublic Set<ClassAttribute> getClassAttributes()
public Class<?> getClassName()
Copyright © 2016. All rights reserved.