Package uk.co.jemos.podam.api
Class ClassInfo
- java.lang.Object
-
- uk.co.jemos.podam.api.ClassInfo
-
- All Implemented Interfaces:
Serializable
@Immutable public class ClassInfo extends Object implements Serializable
This class wraps fields and setters information about a given classThe 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.
- Since:
- 1.0.0
- Author:
- mtedone
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Set<ClassAttribute>classAttributesThe Set of fields belonging to this classprivate Class<?>classNameThe Class name whose info are stored in this classprivate List<Method>extraMethodsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes)Partial constructor.ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes, Collection<Method> extraMethods)Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Set<ClassAttribute>getClassAttributes()Class<?>getClassName()It returns the class name.inthashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
className
private final Class<?> className
The Class name whose info are stored in this class
-
classAttributes
private final Set<ClassAttribute> classAttributes
The Set of fields belonging to this class
-
-
Constructor Detail
-
ClassInfo
public ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes)
Partial constructor.- Parameters:
className- The class nameclassAttributes- The collection of attributes belonging to this class
-
ClassInfo
public ClassInfo(Class<?> className, Collection<ClassAttribute> classAttributes, Collection<Method> extraMethods)
Full constructor.- Parameters:
className- The class nameclassAttributes- The collection of attributes belonging to this classextraMethods- The collection of extra methods to execute
-
-
Method Detail
-
getClassAttributes
public Set<ClassAttribute> getClassAttributes()
- Returns:
- the classSetters
-
getClassName
public Class<?> getClassName()
It returns the class name.- Returns:
- the className
-
-