Enum Class SectorOrder

java.lang.Object
java.lang.Enum<SectorOrder>
org.applecommander.device.SectorOrder
All Implemented Interfaces:
Serializable, Comparable<SectorOrder>, Constable

public enum SectorOrder extends Enum<SectorOrder>

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
  • Enum Constant Details

    • NIBBLE

      public static final SectorOrder 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

      public static final SectorOrder DOS
      DOS 3.3 order.
    • PRODOS

      public static final SectorOrder PRODOS
      ProDOS or Pascal sector order. Also used by RDOS 3.3.
    • CPM

      public static final SectorOrder CPM
      CP/M sector order.
  • Field Details

    • physicalSectorOrder

      public final int[] physicalSectorOrder
  • Method Details

    • values

      public static SectorOrder[] 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

      public static SectorOrder valueOf(String name)
      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 name
      NullPointerException - if the argument is null