Enum Class SectorOrder
- All Implemented Interfaces:
Serializable, Comparable<SectorOrder>, Constable
Represents the primary sector orders in the Apple world.
From Beneath Apple DOS (2020).
-------- SECTOR ORDERING --------
Physical* DOS 3.3 Pascal* CP/M
0 0 0 0
1 D 2 3
2 B 4 6
3 9 6 9
4 7 8 C
5 5 A F
6 3 C 2
7 1 E 5
8 E 1 8
9 C 3 B
A A 5 E
B 8 7 1
C 6 9 4
D 4 B 7
E 2 D A
F F F D
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SectorOrderReturns the enum constant of this class with the specified name.static SectorOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NIBBLE
"nibble" or "physical" sector order. This is the physical sector as written on disk. Used by the 13-sector formats of DOS (3.0 through 3.2), and RDOS 2.1. -
DOS
DOS 3.3 order. -
PRODOS
ProDOS or Pascal sector order. Also used by RDOS 3.3. -
CPM
CP/M sector order.
-
-
Field Details
-
physicalSectorOrder
public final int[] physicalSectorOrder
-
-
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
-