id on the given object o.Field shorthand utility class used to collect fields from classes meeting Java Bean restrictions/requirements.BeanUtils.collectFields(Class, Class, EnumSet, EnumSet).Boolean to the target datatype.Character.toTitleCase(char).Character to the target datatype.Field wrappers including optional relevant setter/getter methods, collected from the given class tested
against the given visibility and Bean restriction requirements.ObjectObject.Field) and its setter/getter method(s) in one place.ClassNotFoundException is being thrown.Constructor of a given type, with a given typelist, where types do not match due to formal types simple types.getConstructor(), except for getting a Method of a classtype, using the name to indicate which method should be
located.MethodUtils.findCompatibleMethod(Class, String, EnumSet, Class...), using strict lookupmode (no autoboxing, casting etc.) and
optional signature parameters.Method using java reflect using a specific signature.ValueConversionHelper, to indicate a value could not be converted into the
target datatype.Constructorusing MethodUtils.invokeConstructor(Class, Class[], Object[])Constructor, using a customized typelist.Class is a primitive number.LookupMode strategies.Class.newInstance() and hides the exception handling boilerplate code.String to an Enum instance, by mapping to the enum's name using
Enum.valueOf(Class, String).ClassUtils.solveField(Class, String) by using the class of given object object or if object itself if it ss a class.fieldName.ClassUtils.solveField(Object, String).;Integer.parseInt(value)
Character: value.getCharAt(0)
Boolean: value equals "true" or "1"
Number: new BigDecimal(value) (simply attempt the widest number type)
Byte (or primitive byte): Byte.parseByte(value)
Short (or primitive short): Short.parseShort(value)
Long (or primitive long): Long.parseLong(value)
Float (or primitive float): Float.parseFloat(value)
Double (or primitive double): Double.parseDouble(value)
BigInteger: BigInteger.valueOf(Long.parseLong(value))
BigDecimal: new BigDecimal(value)
ValueFunction from a Function.Copyright © 2018. All rights reserved.