Enum ControlByte

  • All Implemented Interfaces:
    Serializable, Comparable<ControlByte>

    public enum ControlByte
    extends Enum<ControlByte>
    A control byte used by each write operation to flag if the key was read or not, or if the write operation is a remove operation
    Since:
    9.1
    Author:
    Pedro Ruivo
    • Enum Constant Detail

      • NON_EXISTING

        public static final ControlByte NON_EXISTING
    • Method Detail

      • values

        public static ControlByte[] 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 (ControlByte c : ControlByte.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ControlByte 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
      • prettyPrint

        public static String prettyPrint​(byte bitSet)
      • set

        public byte set​(byte bitSet)
        Sets this flag to the bitSet.
        Returns:
        The new bit set.
      • hasFlag

        public boolean hasFlag​(byte bitSet)
        Returns:
        true if this flag is set in the bitSet, false otherwise.
      • bit

        public byte bit()
        Returns:
        The bit corresponding to this flag.