Index

A B C D E F H I J K L M N O P R S T U V Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

a() - Method in record class dev.hloth.zgztransport.SectorKeys
Returns the value of the a record component.
amount() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the amount record component.
amount(int) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
ARCHIVE_BLOCKS - Static variable in class dev.hloth.zgztransport.TransactionLog
The blocks holding the five records before the newest, indexed by sequence byte.
archiveBlock(int) - Static method in class dev.hloth.zgztransport.TransactionLog
The block a record moves to when a newer one replaces it.
AVANZA_PERSONAL_UNLIMITED - Enum constant in enum class dev.hloth.zgztransport.CardType
A personal Avanza Tarjeta Bus, which travels on a subscription and never spends.
AVANZA_TOP_UP - Enum constant in enum class dev.hloth.zgztransport.CardType
A balance top up Avanza Tarjeta Bus, which pays each journey out of its balance.

B

b() - Method in record class dev.hloth.zgztransport.SectorKeys
Returns the value of the b record component.
balance() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the balance record component.
Balance - Record Class in dev.hloth.zgztransport
The balance of blocks 8 and 9, in thousandths of a euro.
Balance(long) - Constructor for record class dev.hloth.zgztransport.Balance
Checks the range of the balance.
block(int) - Method in class dev.hloth.zgztransport.Dump
One block of this dump.
block(int, byte[]) - Method in class dev.hloth.zgztransport.Dump.Builder
Writes raw bytes into a block.
block(int, Encodable) - Method in class dev.hloth.zgztransport.Dump.Builder
Writes a structure into a block.
BLOCK_SIZE - Static variable in class dev.hloth.zgztransport.Dump
Bytes one block takes.
blockCount() - Method in class dev.hloth.zgztransport.Dump
How many blocks this dump holds.
blocks() - Method in enum class dev.hloth.zgztransport.Chip
Blocks a card with this chip has.
BLOCKS - Static variable in class dev.hloth.zgztransport.TransactionLog
The six slots, in the order TransactionLog.decode(byte[][]) expects.
build() - Method in class dev.hloth.zgztransport.Dump.Builder
Builds the dump.
build() - Method in class dev.hloth.zgztransport.TransactionBuilder
Builds the transaction.
builder() - Static method in record class dev.hloth.zgztransport.Transaction
A builder, which spares the caller a constructor of ten arguments.
builder(Chip) - Static method in class dev.hloth.zgztransport.Dump
An empty dump of the size that chip has, to be filled block by block.
bytes() - Method in class dev.hloth.zgztransport.Dump
The bytes of this dump.
bytes() - Method in class dev.hloth.zgztransport.Key
The bytes of this key.
bytes() - Method in class dev.hloth.zgztransport.Uid
The bytes of this UID.
BYTES - Static variable in record class dev.hloth.zgztransport.CardDate
Bytes a packed date takes.
BYTES - Static variable in record class dev.hloth.zgztransport.CardDateTime
Bytes a date and time take.
BYTES - Static variable in class dev.hloth.zgztransport.Key
Bytes a key takes.
BYTES - Static variable in interface dev.hloth.zgztransport.Stop
Bytes a stop takes.

C

card() - Method in class dev.hloth.zgztransport.Dump
Reads the card this dump holds.
Card - Record Class in dev.hloth.zgztransport
Everything a dump of one card holds.
Card(Uid, CardType, CardId, Balance, List<Transaction>, Optional<JourneySummary>, List<Product>) - Constructor for record class dev.hloth.zgztransport.Card
Checks that every field is present and copies the lists.
CardDate - Record Class in dev.hloth.zgztransport
A date as the card packs it into two bytes: 7 bits of year since 2000, 4 bits of month and 5 bits of day.
CardDate(int, int, int) - Constructor for record class dev.hloth.zgztransport.CardDate
Checks the ranges of the three fields.
CardDateTime - Record Class in dev.hloth.zgztransport
A CardDate followed by a time of day, five bytes in total: the packed date, then hour, minute and second as plain binary.
CardDateTime(CardDate, LocalTime) - Constructor for record class dev.hloth.zgztransport.CardDateTime
Checks that both fields are present and that the time has no fraction of a second.
CardFormatException - Exception Class in dev.hloth.zgztransport
Thrown when a block does not hold what the card specification says it should: a wrong length, a checksum that does not match, a field outside its range or a value no known product uses.
CardFormatException(String) - Constructor for exception class dev.hloth.zgztransport.CardFormatException
Creates the exception.
CardId - Class in dev.hloth.zgztransport
The card id printed on the plastic, which block 2 holds as two letters and one decimal digit per nibble, such as BE322743.
cardType() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the cardType record component.
cardType() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the cardType record component.
cardType() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the cardType record component.
cardType(CardType) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
CardType - Enum Class in dev.hloth.zgztransport
The products these cards come as, which bytes 0 to 2 of block 1 tell apart.
chip() - Method in enum class dev.hloth.zgztransport.CardType
The chip this product comes on.
chip() - Method in class dev.hloth.zgztransport.Uid
The chip this UID belongs to.
Chip - Enum Class in dev.hloth.zgztransport
A MIFARE Classic variant one of these cards is built on.
CLASSIC_1K - Enum constant in enum class dev.hloth.zgztransport.Chip
MIFARE Classic 1K, which the Avanza cards use.
CLASSIC_4K - Enum constant in enum class dev.hloth.zgztransport.Chip
MIFARE Classic 4K, which the Lazo card uses.
compareTo(CardDate) - Method in record class dev.hloth.zgztransport.CardDate
 
compareTo(CardDateTime) - Method in record class dev.hloth.zgztransport.CardDateTime
 
consecutivePayments() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the consecutivePayments record component.
consecutivePayments() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the consecutivePayments record component.
consecutivePayments(int) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
createdAt() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the createdAt record component.
createdAt(CardDateTime) - Method in class dev.hloth.zgztransport.TransactionBuilder
 

D

date() - Method in record class dev.hloth.zgztransport.CardDateTime
Returns the value of the date record component.
date() - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Returns the value of the date record component.
day() - Method in record class dev.hloth.zgztransport.CardDate
Returns the value of the day record component.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.Balance
Decodes the value block of block 8 or 9, checking the complement and the copy the MIFARE value block format holds.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.Card
Decodes a dump of either card, as MIFARE Classic Tool or a Proxmark writes it.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.CardDate
Decodes the two big-endian bytes of a packed date.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.CardDateTime
Decodes the five bytes of a packed date and time.
decode(byte[]) - Static method in class dev.hloth.zgztransport.CardId
Decodes block 2.
decode(byte[]) - Static method in enum class dev.hloth.zgztransport.CardType
Decodes block 1, which says which product a card is.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.JourneySummary
Decodes block 10 of a top up card.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.Subscription
Decodes block 13 or 17.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.SubscriptionMetadata
Decodes block 12 or 16.
decode(byte[]) - Static method in record class dev.hloth.zgztransport.Transaction
Decodes one record of the log.
decode(byte[]) - Static method in class dev.hloth.zgztransport.Uid
Decodes block 0 by looking for the SAK of each known chip, in the order Chip.DETECTION_ORDER sets.
decode(byte[][]) - Static method in class dev.hloth.zgztransport.TransactionLog
Decodes the six slots of the ring, oldest record first.
decode(byte[], Route) - Static method in interface dev.hloth.zgztransport.Stop
Decodes bytes 5 and 6 of a transaction.
decode(Dump) - Static method in record class dev.hloth.zgztransport.Card
Decodes a dump of either card.
dev.hloth.zgztransport - module dev.hloth.zgztransport
 
dev.hloth.zgztransport - package dev.hloth.zgztransport
Decoders and encoders for the Zaragoza and Aragon transport cards, the Avanza Tarjeta Bus and the Lazo card, following the card specification at git.hloth.dev/hloth/zgz-transport.
direction() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the direction record component.
direction() - Method in record class dev.hloth.zgztransport.JourneySummary.Leg
Returns the value of the direction record component.
direction() - Method in record class dev.hloth.zgztransport.Transaction
The direction of this transaction when it is a journey.
direction() - Method in record class dev.hloth.zgztransport.TransactionKind.Journey
Returns the value of the direction record component.
Direction - Enum Class in dev.hloth.zgztransport
Direction of a journey along its route, byte 8 of a transaction.
Dump - Class in dev.hloth.zgztransport
The blocks of a card, one after another, as MIFARE Classic Tool or a Proxmark writes them.
Dump.Builder - Class in dev.hloth.zgztransport
Fills the blocks of a dump one at a time, leaving the untouched ones zeroed.

E

Encodable - Interface in dev.hloth.zgztransport
A structure the card stores as bytes.
encode() - Method in record class dev.hloth.zgztransport.Balance
Encodes this balance into the value block of blocks 8 and 9.
encode() - Method in record class dev.hloth.zgztransport.CardDate
Encodes this date into two big-endian bytes.
encode() - Method in record class dev.hloth.zgztransport.CardDateTime
Encodes this date and time into five bytes.
encode() - Method in class dev.hloth.zgztransport.CardId
Encodes this id into block 2, with its checksum.
encode() - Method in enum class dev.hloth.zgztransport.CardType
Encodes this product into block 1, with its checksum.
encode() - Method in interface dev.hloth.zgztransport.Encodable
Writes this structure as the card stores it.
encode() - Method in record class dev.hloth.zgztransport.JourneySummary
Encodes this summary into block 10, with its checksum.
encode() - Method in record class dev.hloth.zgztransport.Stop.Other
 
encode() - Method in record class dev.hloth.zgztransport.Stop.Tram
 
encode() - Method in record class dev.hloth.zgztransport.Stop.Urban
 
encode() - Method in record class dev.hloth.zgztransport.Subscription
Encodes this subscription into block 13 or 17, with its checksum.
encode() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Encodes this metadata into block 12 or 16, with its checksum.
encode() - Method in record class dev.hloth.zgztransport.Transaction
Encodes this transaction into one record of the log.
endsAt() - Method in record class dev.hloth.zgztransport.Subscription
Returns the value of the endsAt record component.
equals(Object) - Method in record class dev.hloth.zgztransport.Balance
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Card
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.CardDate
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.CardDateTime
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class dev.hloth.zgztransport.CardId
 
equals(Object) - Method in class dev.hloth.zgztransport.Dump
 
equals(Object) - Method in record class dev.hloth.zgztransport.JourneySummary
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.JourneySummary.Leg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class dev.hloth.zgztransport.Key
 
equals(Object) - Method in record class dev.hloth.zgztransport.Product
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Route
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.SectorKeys
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Stop.Other
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Stop.Tram
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Stop.Urban
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Subscription
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.Transaction
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.TransactionKind.Journey
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.hloth.zgztransport.TransactionKind.TopUp
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class dev.hloth.zgztransport.Uid
 
euros() - Method in record class dev.hloth.zgztransport.Balance
The balance in euros, exact to the thousandth.

F

firstByte() - Method in enum class dev.hloth.zgztransport.CardType
The first byte of the product, which transactions and the journey summary carry.
free() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the free record component.

H

hashCode() - Method in record class dev.hloth.zgztransport.Balance
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Card
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.CardDate
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.CardDateTime
Returns a hash code value for this object.
hashCode() - Method in class dev.hloth.zgztransport.CardId
 
hashCode() - Method in class dev.hloth.zgztransport.Dump
 
hashCode() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.JourneySummary.Leg
Returns a hash code value for this object.
hashCode() - Method in class dev.hloth.zgztransport.Key
 
hashCode() - Method in record class dev.hloth.zgztransport.Product
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Route
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.SectorKeys
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Stop.Other
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Stop.Tram
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Stop.Urban
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Subscription
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.Transaction
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.TransactionKind.Journey
Returns a hash code value for this object.
hashCode() - Method in record class dev.hloth.zgztransport.TransactionKind.TopUp
Returns a hash code value for this object.
hashCode() - Method in class dev.hloth.zgztransport.Uid
 
hour() - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Returns the value of the hour record component.

I

id() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the id record component.
id() - Method in record class dev.hloth.zgztransport.Route
Returns the value of the id record component.
id() - Method in record class dev.hloth.zgztransport.Stop.Other
Returns the value of the id record component.
id() - Method in record class dev.hloth.zgztransport.Stop.Urban
Returns the value of the id record component.
isFreeTransfer() - Method in record class dev.hloth.zgztransport.Transaction
Whether this is a ride that cost nothing, which the operator grants within about half an hour of a paid one.

J

Journey(Direction) - Constructor for record class dev.hloth.zgztransport.TransactionKind.Journey
Checks that the direction is present.
journeySummary() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the journeySummary record component.
JourneySummary - Record Class in dev.hloth.zgztransport
Block 10 of a top up card, which the card rewrites on every journey and leaves alone on a top up.
JourneySummary(Optional<JourneySummary.Leg>, JourneySummary.LastPaid, int, CardType, boolean, Route, Direction, int) - Constructor for record class dev.hloth.zgztransport.JourneySummary
Checks the ranges of the numeric fields and that the others are present.
JourneySummary.LastPaid - Record Class in dev.hloth.zgztransport
When the last paid journey happened, which the card records to the minute.
JourneySummary.Leg - Record Class in dev.hloth.zgztransport
A route and the direction travelled along it.

K

Key - Class in dev.hloth.zgztransport
A six byte MIFARE Classic sector key.
keys(int) - Method in enum class dev.hloth.zgztransport.CardType
The keys of one sector of a card of this product, read from the table it carries.
kind() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the kind record component.
kind(TransactionKind) - Method in class dev.hloth.zgztransport.TransactionBuilder
 

L

LAST_USED_BLOCK - Static variable in record class dev.hloth.zgztransport.Card
The first block a dump must reach to hold everything this decodes.
LastPaid(CardDate, int, int) - Constructor for record class dev.hloth.zgztransport.JourneySummary.LastPaid
Checks the ranges of the two fields and that the date is present.
lastPaidAt() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the lastPaidAt record component.
lastUsedAt() - Method in record class dev.hloth.zgztransport.Subscription
Returns the value of the lastUsedAt record component.
LAZO_TOP_UP - Enum constant in enum class dev.hloth.zgztransport.CardType
A balance top up Lazo card.
Leg(Route, Direction) - Constructor for record class dev.hloth.zgztransport.JourneySummary.Leg
Checks that both fields are present and that the route is one the card can point back to, which is never zero.
LIVE_BLOCK - Static variable in class dev.hloth.zgztransport.TransactionLog
The block holding the newest record.

M

MAX_ID - Static variable in interface dev.hloth.zgztransport.Stop
Largest id the fifteen free bits hold.
MAX_UNITS - Static variable in record class dev.hloth.zgztransport.Balance
Largest balance the value block holds.
metadata() - Method in record class dev.hloth.zgztransport.Product
Returns the value of the metadata record component.
minute() - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Returns the value of the minute record component.
month() - Method in record class dev.hloth.zgztransport.CardDate
Returns the value of the month record component.

N

networkFlag() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the networkFlag record component.
networkFlag(int) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
number() - Method in record class dev.hloth.zgztransport.Stop.Tram
The stop number as the operator prints it.

O

of(byte[]) - Static method in class dev.hloth.zgztransport.Dump
The dump those bytes hold.
of(byte[]) - Static method in class dev.hloth.zgztransport.Key
The key those bytes hold.
of(byte[]) - Static method in class dev.hloth.zgztransport.Uid
The UID those bytes hold, whose length says which chip it belongs to.
of(int, int, int, int, int, int) - Static method in record class dev.hloth.zgztransport.CardDateTime
Builds a date and time from its fields.
of(String) - Static method in class dev.hloth.zgztransport.Key
The key those twelve hex digits spell, as key tables and dump tools print them.
ofFirstByte(int) - Static method in enum class dev.hloth.zgztransport.CardType
The product whose first byte is the one given, as transactions carry it.
ofUidLength(int) - Static method in enum class dev.hloth.zgztransport.Chip
The chip whose UID takes that many bytes.
ofValue(int) - Static method in enum class dev.hloth.zgztransport.CardType
The product with those three bytes.
ofValue(int) - Static method in enum class dev.hloth.zgztransport.Direction
The direction a byte stands for.
ofValue(int) - Static method in interface dev.hloth.zgztransport.TransactionKind
The kind a byte stands for.
ONE - Enum constant in enum class dev.hloth.zgztransport.Direction
Byte 01; south on the tram.
Other(int) - Constructor for record class dev.hloth.zgztransport.Stop.Other
Checks the range of the id.

P

parse(String) - Static method in class dev.hloth.zgztransport.CardId
The id that text spells.
personalBlock() - Static method in record class dev.hloth.zgztransport.JourneySummary
The constant block 10 that personal cards hold, which stands for no journey at all.
previous() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the previous record component.
Product - Record Class in dev.hloth.zgztransport
One subscription product of a personal card, which lives in a sector of its own.
Product(int, SubscriptionMetadata, Subscription) - Constructor for record class dev.hloth.zgztransport.Product
Checks that the sector is one a product lives in and that the blocks are present.
productId() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the productId record component.
products() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the products record component.
productSectors() - Method in enum class dev.hloth.zgztransport.CardType
The sectors holding a subscription product on cards of this product, one product per sector.
purchasedAt() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the purchasedAt record component.

R

recordsJourneySummary() - Method in enum class dev.hloth.zgztransport.CardType
Whether cards of this product rewrite block 10 on every journey.
route() - Method in record class dev.hloth.zgztransport.JourneySummary.Leg
Returns the value of the route record component.
route() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the route record component.
route() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the route record component.
route(Route) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
Route - Record Class in dev.hloth.zgztransport
Route id of the operator's GTFS feed, byte 7 of a transaction.
Route(int) - Constructor for record class dev.hloth.zgztransport.Route
Creates an instance of a Route record class.
runCounter() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the runCounter record component.
runCounter(int) - Method in class dev.hloth.zgztransport.TransactionBuilder
 

S

sector() - Method in record class dev.hloth.zgztransport.Product
Returns the value of the sector record component.
SectorKeys - Record Class in dev.hloth.zgztransport
The two keys of one sector.
SectorKeys(Optional<Key>, Optional<Key>) - Constructor for record class dev.hloth.zgztransport.SectorKeys
Checks that both fields are present.
sectors() - Method in enum class dev.hloth.zgztransport.Chip
Sectors a card with this chip has.
sequence() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the sequence record component.
sequence(int) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
startsAt() - Method in record class dev.hloth.zgztransport.Subscription
Returns the value of the startsAt record component.
stop() - Method in record class dev.hloth.zgztransport.Transaction
Returns the value of the stop record component.
stop(Stop) - Method in class dev.hloth.zgztransport.TransactionBuilder
 
Stop - Interface in dev.hloth.zgztransport
Where a transaction happened, bytes 5 and 6 of a transaction.
Stop.Other - Record Class in dev.hloth.zgztransport
A stop of an operator other than the urban buses and the tram.
Stop.Tram - Record Class in dev.hloth.zgztransport
A tram stop, whose number the card stores multiplied by one hundred.
Stop.Urban - Record Class in dev.hloth.zgztransport
An urban bus stop, which the operator numbers internally.
subscription() - Method in record class dev.hloth.zgztransport.Product
Returns the value of the subscription record component.
Subscription - Record Class in dev.hloth.zgztransport
Block 13 or 17 of a personal card, which the card copies into block 14 or 18.
Subscription(CardDate, CardDate, int, long, Optional<CardDateTime>) - Constructor for record class dev.hloth.zgztransport.Subscription
Checks the ranges of the numeric fields and that the others are present.
SubscriptionMetadata - Record Class in dev.hloth.zgztransport
Block 12 or 16 of a personal card, which describes one subscription product the card carries.
SubscriptionMetadata(int, int, CardDate, long, int, long) - Constructor for record class dev.hloth.zgztransport.SubscriptionMetadata
Checks the ranges of the numeric fields and that the date is present.

T

time() - Method in record class dev.hloth.zgztransport.CardDateTime
Returns the value of the time record component.
toLocalDate() - Method in record class dev.hloth.zgztransport.CardDate
This date as a calendar date.
TopUp() - Constructor for record class dev.hloth.zgztransport.TransactionKind.TopUp
Creates an instance of a TopUp record class.
toString() - Method in record class dev.hloth.zgztransport.Balance
The balance in euros with three decimals.
toString() - Method in record class dev.hloth.zgztransport.Card
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.CardDate
The date in YYYY-MM-DD form.
toString() - Method in record class dev.hloth.zgztransport.CardDateTime
The date and time in YYYY-MM-DD HH:MM:SS form, with the seconds always written.
toString() - Method in class dev.hloth.zgztransport.CardId
The id as printed on the card: the two letters, then the digits with the trailing zero bytes the card pads with trimmed off.
toString() - Method in class dev.hloth.zgztransport.Dump
 
toString() - Method in record class dev.hloth.zgztransport.JourneySummary.LastPaid
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.JourneySummary.Leg
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns a string representation of this record class.
toString() - Method in class dev.hloth.zgztransport.Key
The key as twelve upper case hex digits.
toString() - Method in record class dev.hloth.zgztransport.Product
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Route
The name the operator prints: buses keep their number, 11 to 14 are Ci1 to Ci4, 111 to 117 are N1 to N7 and the tram is L1.
toString() - Method in record class dev.hloth.zgztransport.SectorKeys
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Stop.Other
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Stop.Tram
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Stop.Urban
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Subscription
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.Transaction
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.TransactionKind.Journey
Returns a string representation of this record class.
toString() - Method in record class dev.hloth.zgztransport.TransactionKind.TopUp
Returns a string representation of this record class.
toString() - Method in class dev.hloth.zgztransport.Uid
The UID as upper case hex, the form dump tools print.
Tram(int) - Constructor for record class dev.hloth.zgztransport.Stop.Tram
Checks the range of the value.
TRAM - Static variable in record class dev.hloth.zgztransport.Route
The tram, printed as L1.
Transaction - Record Class in dev.hloth.zgztransport
One record of the transaction log: a journey or a top up, with where and when it happened.
Transaction(CardType, int, int, int, Stop, Route, TransactionKind, int, CardDateTime, int) - Constructor for record class dev.hloth.zgztransport.Transaction
Checks the ranges of the numeric fields and that the others are present.
TransactionBuilder - Class in dev.hloth.zgztransport
Collects the fields of a Transaction one at a time, which reads better than a constructor of ten arguments and cannot mix up the counters that sit next to each other.
TransactionKind - Interface in dev.hloth.zgztransport
What a transaction record stands for, which byte 8 tells: a journey or a top up.
TransactionKind.Journey - Record Class in dev.hloth.zgztransport
A ride, paid out of the balance or free as a transfer.
TransactionKind.TopUp - Record Class in dev.hloth.zgztransport
Money added to the balance.
TransactionLog - Class in dev.hloth.zgztransport
The ring of six blocks a card keeps its last transactions in: block 5 holds the newest record, and the five before it live in the archive blocks, each in the slot its sequence byte picks.
transactions() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the transactions record component.
transfersLeft() - Method in record class dev.hloth.zgztransport.JourneySummary
Returns the value of the transfersLeft record component.
TWO - Enum constant in enum class dev.hloth.zgztransport.Direction
Byte 02; north on the tram.

U

uid() - Method in record class dev.hloth.zgztransport.Card
Returns the value of the uid record component.
Uid - Class in dev.hloth.zgztransport
The UID of block 0, whose length depends on the chip the card is built on.
uidLength() - Method in enum class dev.hloth.zgztransport.Chip
Bytes the UID of this chip takes in block 0.
units() - Method in record class dev.hloth.zgztransport.Balance
Returns the value of the units record component.
UNITS_PER_EURO - Static variable in record class dev.hloth.zgztransport.Balance
Units in one euro.
unknown1() - Method in record class dev.hloth.zgztransport.Subscription
Returns the value of the unknown1 record component.
unknown1() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the unknown1 record component.
unknown2() - Method in record class dev.hloth.zgztransport.Subscription
Returns the value of the unknown2 record component.
unknown2() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the unknown2 record component.
unknown3() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the unknown3 record component.
Urban(int) - Constructor for record class dev.hloth.zgztransport.Stop.Urban
Checks the range of the id.

V

validityDays() - Method in record class dev.hloth.zgztransport.SubscriptionMetadata
Returns the value of the validityDays record component.
value() - Method in enum class dev.hloth.zgztransport.CardType
Bytes 0 to 2 of block 1.
value() - Method in enum class dev.hloth.zgztransport.Direction
The byte the card stores.
value() - Method in record class dev.hloth.zgztransport.Stop.Tram
Returns the value of the value record component.
value() - Method in record class dev.hloth.zgztransport.TransactionKind.Journey
 
value() - Method in record class dev.hloth.zgztransport.TransactionKind.TopUp
 
value() - Method in interface dev.hloth.zgztransport.TransactionKind
The byte the card stores.
valueOf(String) - Static method in enum class dev.hloth.zgztransport.CardType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.hloth.zgztransport.Chip
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.hloth.zgztransport.Direction
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.hloth.zgztransport.CardType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.hloth.zgztransport.Chip
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.hloth.zgztransport.Direction
Returns an array containing the constants of this enum class, in the order they are declared.

Y

year() - Method in record class dev.hloth.zgztransport.CardDate
Returns the value of the year record component.
A B C D E F H I J K L M N O P R S T U V Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form