|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.eff.format.EffRangeValues
public final class EffRangeValues
A class that represents an immutable Value Object - designed to hold
start and end range values of effectivity statements.
Instances of EffRangeValues are designed and treated as immutable, once
initialized during construction. Hence they can be safely shared and
are thread-safe. As Value Objects, they do not have any conceptual identity
of their own and exist primarily to describe attributes of interest to
EffFormat instances. Hence, cloning of instances (clone())
is not supported, since they can instead be shared.
Note: Defensive copies are not made, as there is no need to maintain
for such strict immutability. Also, sinceequals()hashcode
methods are not implemented, two instances of this class are equal, iff
all of their corresponding field values are equal. This is important
to note, when instances of this class are used in hash based data structures.
Finally, cloning of instances is not supported, because they can be efficiently
shared instead.
Supported API: true
Extendable: false
EffState,
EffFormat,
EffFormatService,
Serialized Form| Field Summary | |
|---|---|
String |
endValue
Holds end of range. |
String |
startValue
Holds start of range. |
| Constructor Summary | |
|---|---|
EffRangeValues(String singleRangeValue)
If a single range value is of interest for the use case in hand, this constructor allows construction of such an EffRangeValues instance. |
|
EffRangeValues(String startValue,
String endValue)
EffRangeValue's start and end values correspond to values that are not validated yet by the associated EffFormat class. |
|
| Method Summary | |
|---|---|
String |
getEndValue()
Gets the value of the attribute: endValue; Holds end of range. |
String |
getStartValue()
Gets the value of the attribute: startValue; Holds start of range. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String startValue
public final String endValue
| Constructor Detail |
|---|
public EffRangeValues(String startValue,
String endValue)
startValue - (Optional) holds start of range.endValue - (Optional) holds end of range.public EffRangeValues(String singleRangeValue)
singleRangeValue - | Method Detail |
|---|
public final String getStartValue()
public final String getEndValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||