|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.jemos.podam.dto.ClassInfo
@Immutable public class ClassInfo
This class wraps fields and setters information about a given class
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.
Field Summary | |
---|---|
private Set<String> |
classFields
The Set of fields belonging to this class |
private Class<?> |
className
The Class name whose info are stored in this class |
private Set<Method> |
classSetters
The Set of setters belonging to this class |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ClassInfo(Class<?> className,
Set<String> classFields,
Set<Method> classSetters)
Full constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Set<Method> |
getClassSetters()
|
int |
hashCode()
|
String |
toString()
Constructs a String with all attributes in name = value
format. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final Class<?> className
private final Set<String> classFields
private final Set<Method> classSetters
Constructor Detail |
---|
public ClassInfo(Class<?> className, Set<String> classFields, Set<Method> classSetters)
className
- The class nameclassFields
- The set of fields belonging to this classclassSetters
- The set of setters belonging to this classMethod Detail |
---|
public Set<Method> getClassSetters()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
String
with all attributes in name = value
format.
toString
in class Object
String
representation of this object.
|
Jemos 2002 - 2011: All Rights Reserved. Podam runs under the MIT license | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |