Package com.blackrook.redis.struct
Class TypeProfileFactory.Profile<T>
- java.lang.Object
-
- com.blackrook.redis.struct.TypeProfileFactory.Profile<T>
-
- Type Parameters:
T
- the type to use.
- Enclosing class:
- TypeProfileFactory
public static class TypeProfileFactory.Profile<T> extends Object
Type profile for an unknown object that has an ambiguous signature for applying values to POJOs and beans. This only cares about setter methods with one argument and public fields.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeProfileFactory.Profile.FieldInfo
Field information.static class
TypeProfileFactory.Profile.MethodInfo
Method signature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashMap<String,TypeProfileFactory.Profile.MethodInfo>
getGetterMethodsByAlias()
Returns a reference to the map that contains this profile's getter methods.HashMap<String,TypeProfileFactory.Profile.MethodInfo>
getGetterMethodsByName()
Returns a reference to the map that contains this profile's getter methods.HashMap<String,TypeProfileFactory.Profile.FieldInfo>
getPublicFieldsByAlias()
Returns a reference to the map that contains this profile's public fields.HashMap<String,TypeProfileFactory.Profile.FieldInfo>
getPublicFieldsByName()
Returns a reference to the map that contains this profile's public fields.HashMap<String,TypeProfileFactory.Profile.MethodInfo>
getSetterMethodsByAlias()
Returns a reference to the map that contains this profile's setter methods.HashMap<String,TypeProfileFactory.Profile.MethodInfo>
getSetterMethodsByName()
Returns a reference to the map that contains this profile's setter methods.
-
-
-
Method Detail
-
getPublicFieldsByName
public HashMap<String,TypeProfileFactory.Profile.FieldInfo> getPublicFieldsByName()
Returns a reference to the map that contains this profile's public fields. Maps "field name" toTypeProfileFactory.Profile.FieldInfo
object.- Returns:
- the map of field name to field.
-
getGetterMethodsByName
public HashMap<String,TypeProfileFactory.Profile.MethodInfo> getGetterMethodsByName()
Returns a reference to the map that contains this profile's getter methods. Maps "field name" toTypeProfileFactory.Profile.MethodInfo
object, which contains theClass
type and theMethod
itself.- Returns:
- the map of getter name to method.
-
getSetterMethodsByName
public HashMap<String,TypeProfileFactory.Profile.MethodInfo> getSetterMethodsByName()
Returns a reference to the map that contains this profile's setter methods. Maps "field name" toTypeProfileFactory.Profile.MethodInfo
object, which contains theClass
type and theMethod
itself.- Returns:
- the map of setter name to method.
-
getPublicFieldsByAlias
public HashMap<String,TypeProfileFactory.Profile.FieldInfo> getPublicFieldsByAlias()
Returns a reference to the map that contains this profile's public fields. Maps "field name" toTypeProfileFactory.Profile.FieldInfo
object.- Returns:
- the map of field name to field.
-
getGetterMethodsByAlias
public HashMap<String,TypeProfileFactory.Profile.MethodInfo> getGetterMethodsByAlias()
Returns a reference to the map that contains this profile's getter methods. Maps "field name" toTypeProfileFactory.Profile.MethodInfo
object, which contains theClass
type and theMethod
itself.- Returns:
- the map of getter name to method.
-
getSetterMethodsByAlias
public HashMap<String,TypeProfileFactory.Profile.MethodInfo> getSetterMethodsByAlias()
Returns a reference to the map that contains this profile's setter methods. Maps "field name" toTypeProfileFactory.Profile.MethodInfo
object, which contains theClass
type and theMethod
itself.- Returns:
- the map of setter name to method.
-
-