public class Range<T> extends Object implements IRange<T>, Serializable
IRange.| Modifier and Type | Field and Description |
|---|---|
protected T |
from
the range minimum value
|
protected T |
to
the range maximum value
|
| Modifier | Constructor and Description |
|---|---|
protected |
Range()
constructor for deserialization
|
|
Range(T from,
T to)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
getFrom() |
T |
getTo() |
void |
setFrom(T from) |
static void |
setPrimitiveMaxValues(Object instance)
evaluates all primitive attributes of the given instance type and sets maximum values for them
|
static void |
setPrimitiveMinValues(Object instance)
evaluates all primitive attributes of the given instance type and sets minimum values for them
|
void |
setTo(T to) |
String |
toString() |
protected T from
protected T to
public T getFrom()
public T getTo()
public void setFrom(T from)
from - The from to set.public void setTo(T to)
to - The to to set.public static void setPrimitiveMinValues(Object instance)
instance - range instancepublic static void setPrimitiveMaxValues(Object instance)
instance - range instanceCopyright © 2012–2020. All rights reserved.