public class NumberModel extends BeanModel implements TemplateNumberModel
Numberinto a reflective model. Beside acting as a
TemplateNumberModel, you can call all Java methods on these objects as well.
|Constructor and Description|
Creates a new model that wraps the specified number object.
|Modifier and Type||Method and Description|
Returns the numeric value.
get, getAdaptedObject, getAPI, getWrappedObject, hasPlainGetMethod, invokeGenericGet, isEmpty, keys, keySet, size, toString, unwrap, values, wrap
public NumberModel(java.lang.Number number, BeansWrapper wrapper)
number- the number object to wrap into a model.
BeansWrapperassociated with this model. Every model has to have an associated
BeansWrapperinstance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.