public class IntFactory extends AbstractClassFactory<Integer>
hints| Constructor and Description |
|---|
IntFactory() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
create(Field field,
Class<?> clazz) |
boolean |
supports(Class clazz)
Checks if this ClassFactory is targetted at a specific Class
|
getHint, putHint, removeHint, supportspublic boolean supports(Class clazz)
ClassFactoryclazz - The class to check support againsttrue if this ClassFactory supports the clazz requested to be created, false otherwisepublic Integer create(Field field, Class<?> clazz)
field - The field to create an instance ofclazz - the class of the object to be created. For use when field is unknown and object is part of an inheritance treeT that this class is a factory forCopyright © 2016. All rights reserved.