- All Implemented Interfaces:
Serializable,Comparable<GBCartridge.Type>,Constable
- Enclosing interface:
- GBCartridge
Specifies the memory bank controller (if any) and other hardware present in the cartridge.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the cartridge contains a memory bank controller.static @Nullable GBCartridge.Typeof(byte value)Returns the cartridge type identified by the given value.bytevalue()Returns the identifier for this cartridge type.static GBCartridge.TypeReturns the enum constant of this class with the specified name.static GBCartridge.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROM_ONLY
-
MBC1
-
MBC1_RAM
-
MBC1_RAM_BATTERY
-
MBC2
-
MBC2_RAM_BATTERY
-
ROM_RAM
-
ROM_RAM_BATTERY
-
MMM01
-
MMM01_RAM
-
MMM01_RAM_BATTERY
-
MBC3_TIMER_BATTERY
-
MBC3_RAM_TIMER_BATTERY
-
MBC3
-
MBC3_RAM
-
MBC3_RAM_BATTERY
-
MBC5
-
MBC5_RAM
-
MBC5_RAM_BATTERY
-
MBC5_RUMBLE
-
MBC5_RAM_RUMBLE
-
MBC5_RAM_BATTERY_RUMBLE
-
MBC6_RAM_BATTERY
-
MBC7_RAM_BATTERY_ACCELEROMETER
-
POCKET_CAMERA
-
BANDAI_TAMA5
-
HUC3
-
HUC1_RAM_BATTERY
-
-
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
-
of
Returns the cartridge type identified by the given value.- Parameters:
value- the type identifier- Returns:
- the type with the given identifier, or
nullif unknown
-
value
public byte value()Returns the identifier for this cartridge type.- Returns:
- the identifier
-
hasMemoryBankController
public boolean hasMemoryBankController()Returns whether the cartridge contains a memory bank controller.- Returns:
trueif the cartridge contains an MBC chip
-