- All Known Implementing Classes:
TransactionKind.Journey,TransactionKind.TopUp
What a transaction record stands for, which byte 8 tells: a journey or a top
up.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA ride, paid out of the balance or free as a transfer.static final recordMoney added to the balance. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionKindofValue(int value) The kind a byte stands for.intvalue()The byte the card stores.
-
Method Details
-
value
int value()The byte the card stores.- Returns:
- byte 8 of the record
-
ofValue
The kind a byte stands for.- Parameters:
value- byte 8 of a record- Returns:
- the kind
- Throws:
CardFormatException- if the byte is neither a direction nor a top up
-