mirror of
https://github.com/corda/corda.git
synced 2025-01-31 00:24:59 +00:00
Minor: extra javadocs for Timestamp
This commit is contained in:
parent
e141fc1549
commit
980d3455bd
@ -410,7 +410,12 @@ data class AuthenticatedObject<out T : Any>(
|
|||||||
* between (after, before).
|
* between (after, before).
|
||||||
*/
|
*/
|
||||||
@CordaSerializable
|
@CordaSerializable
|
||||||
data class Timestamp(val after: Instant?, val before: Instant?) {
|
data class Timestamp(
|
||||||
|
/** The time at which this transaction is said to have occurred is after this moment */
|
||||||
|
val after: Instant?,
|
||||||
|
/** The time at which this transaction is said to have occurred is before this moment */
|
||||||
|
val before: Instant?
|
||||||
|
) {
|
||||||
init {
|
init {
|
||||||
if (after == null && before == null)
|
if (after == null && before == null)
|
||||||
throw IllegalArgumentException("At least one of before/after must be specified")
|
throw IllegalArgumentException("At least one of before/after must be specified")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user