Package nxt.util.bbh

Enum Class LengthRwPrimitiveType

java.lang.Object
java.lang.Enum<LengthRwPrimitiveType>
nxt.util.bbh.LengthRwPrimitiveType
All Implemented Interfaces:
Serializable, Comparable<LengthRwPrimitiveType>, Constable, LengthRw

public enum LengthRwPrimitiveType extends Enum<LengthRwPrimitiveType> implements LengthRw
  • Enum Constant Details

  • Method Details

    • values

      public static LengthRwPrimitiveType[] 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 LengthRwPrimitiveType 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
    • getSize

      public int getSize()
      Specified by:
      getSize in interface LengthRw
    • readFromBuffer

      public int readFromBuffer(ByteBuffer buffer)
      Specified by:
      readFromBuffer in interface LengthRw
    • writeToBuffer

      public void writeToBuffer(ByteBuffer buffer, int length)
      Specified by:
      writeToBuffer in interface LengthRw
    • validate

      public boolean validate(int length)
      Specified by:
      validate in interface LengthRw