final case class TxnHeader(timestamp: ZonedDateTime, code: Option[String], description: Option[String], uuid: Option[UUID], location: Option[GeoPoint], tags: Option[Tags], comments: Option[List[String]]) extends Product with Serializable
- Alphabetic
- By Inheritance
- TxnHeader
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val code: Option[String]
- val comments: Option[List[String]]
-
def
compareTo(otherTxn: TxnHeader): Int
Txn sorting logic.
Txn sorting logic.
Input order of Txn can not be mandated, so there should be a stable way to sort transactions.
Txn components are used in following order to find sort order (in case of previous components have produced "same" sort order): timestamp, code, description, uuid
If fully deterministic and safe "distributed txn source"-proof sort order is needed, then transactions must have UUIDs.
- otherTxn
to be compared to this Txn
- returns
0 if the argument txn is equal to this Txn. less than 0, if this Txn is (before in sorted set) greater than 0, if this Txn is after (in sorted set)
- val description: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val location: Option[GeoPoint]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tags: Option[Tags]
- val timestamp: ZonedDateTime
-
def
txnHeaderToString(indent: String, tsFormatter: (ZonedDateTime) ⇒ String): String
Get header part of txn as string.
Get header part of txn as string.
- indent
indent string for meta and comment parts
- tsFormatter
timestamp formatter
- returns
new line terminated header of txn
- val uuid: Option[UUID]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()