Enum CbusBootloaderPane.BootChecksum
- java.lang.Object
-
- java.lang.Enum<CbusBootloaderPane.BootChecksum>
-
- jmri.jmrix.can.cbus.swing.bootloader.CbusBootloaderPane.BootChecksum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CbusBootloaderPane.BootChecksum>
- Enclosing class:
- CbusBootloaderPane
protected static enum CbusBootloaderPane.BootChecksum extends java.lang.Enum<CbusBootloaderPane.BootChecksum>
Bootloader checksum calculation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK_2S_COMPLEMENT
CHECK_CRC16
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CbusBootloaderPane.BootChecksum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CbusBootloaderPane.BootChecksum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHECK_2S_COMPLEMENT
public static final CbusBootloaderPane.BootChecksum CHECK_2S_COMPLEMENT
-
CHECK_CRC16
public static final CbusBootloaderPane.BootChecksum CHECK_CRC16
-
-
Method Detail
-
values
public static CbusBootloaderPane.BootChecksum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CbusBootloaderPane.BootChecksum c : CbusBootloaderPane.BootChecksum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CbusBootloaderPane.BootChecksum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-