Constructor and Description |
---|
Version()
Default constructor - useful for JSON tools such as Jackson.
|
Version(T bean,
Timestamp start,
Timestamp end)
Construct with bean and an effective date time range.
|
Modifier and Type | Method and Description |
---|---|
T |
getBean()
Return the bean instance for this version.
|
Map<String,ValuePair> |
getDiff()
Return the map of differences from this bean to the prior version.
|
Timestamp |
getEnd()
Return the effective end date time of this version.
|
Timestamp |
getStart()
Return the effective start date time of this version.
|
void |
setBean(T bean)
Set the bean instance for this version.
|
void |
setDiff(Map<String,ValuePair> diff)
Set the map of differences from this bean to the prior version.
|
void |
setEnd(Timestamp end)
Set the effective end date time of this version.
|
void |
setStart(Timestamp start)
Set the effective start date time of this version.
|
public Version(T bean, Timestamp start, Timestamp end)
public Version()
Copyright © 2018. All rights reserved.