- All Implemented Interfaces:
Serializable,Comparable<Chip>,Constable
A MIFARE Classic variant one of these cards is built on, which the SAK and
the ATQA of block 0 tell apart. The UID length is a property of block 0
rather than of the chip, see
Uid.decode(byte[]).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMIFARE Classic 1K, which the Avanza cards use.MIFARE Classic 4K, which the Lazo card uses. -
Method Summary
Modifier and TypeMethodDescriptionintblocks()Blocks a card with this chip has.intsectors()Sectors a card with this chip has.static ChipReturns the enum constant of this class with the specified name.static Chip[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSIC_1K
MIFARE Classic 1K, which the Avanza cards use. -
CLASSIC_4K
MIFARE Classic 4K, which the Lazo card uses.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
blocks
public int blocks()Blocks a card with this chip has.- Returns:
- the block count
-
sectors
public int sectors()Sectors a card with this chip has.- Returns:
- the sector count
-