- All Known Subinterfaces:
Stop
- All Known Implementing Classes:
Balance,CardDate,CardDateTime,CardId,CardType,JourneySummary,Stop.Other,Stop.Tram,Stop.Urban,Subscription,SubscriptionMetadata,Transaction
public interface Encodable
A structure the card stores as bytes. Every implementation checks its fields
when it is built, so writing them back never fails.
-
Method Summary
-
Method Details
-
encode
byte[] encode()Writes this structure as the card stores it.- Returns:
- the bytes, sixteen of them for a whole block
-