Enum NumberToByteArrayConversion.ByteOrder

java.lang.Object
java.lang.Enum<NumberToByteArrayConversion.ByteOrder>
org.junitpioneer.jupiter.converter.NumberToByteArrayConversion.ByteOrder
All Implemented Interfaces:
Serializable, Comparable<NumberToByteArrayConversion.ByteOrder>
Enclosing class:
NumberToByteArrayConversion

public static enum NumberToByteArrayConversion.ByteOrder extends Enum<NumberToByteArrayConversion.ByteOrder>
Utility enum because ByteOrder is not an enum.
  • Enum Constant Details

    • BIG_ENDIAN

      public static final NumberToByteArrayConversion.ByteOrder BIG_ENDIAN
      Constant denoting big-endian byte order. In this order, the bytes of a multibyte value are ordered from most significant to least significant. This is the logical equivalent of java.nio.ByteOrder.BIG_ENDIAN
    • LITTLE_ENDIAN

      public static final NumberToByteArrayConversion.ByteOrder LITTLE_ENDIAN
      Constant denoting little-endian byte order. In this order, the bytes of a multibyte value are ordered from least significant to most significant. This is the logical equivalent of java.nio.ByteOrder.LITTLE_ENDIAN.
  • Constructor Details

    • ByteOrder

      private ByteOrder()
  • Method Details

    • values

      public static NumberToByteArrayConversion.ByteOrder[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NumberToByteArrayConversion.ByteOrder valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null