Minor: extra javadocs for Timestamp

This commit is contained in:
Mike Hearn 2017-05-17 22:35:50 +02:00
parent e141fc1549
commit 980d3455bd

View File

@ -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")