Modifier and Type | Method and Description |
---|---|
static Number |
clampToRange(Class<?> type,
Number value,
Number min,
Number max) |
static Number |
getDefaultValue(Number min,
Number max,
Class<?> type) |
static Number |
getMaximumNumber(Class<?> type) |
static Number |
getMinimumNumber(Class<?> type) |
static Number |
toNumber(Object value,
Class<?> type)
Converts the given object to a
Number of the specified type, or
null if the types are incompatible. |
Copyright © 2009–2015 SciJava. All rights reserved.