Enum ControlByte

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ControlByte>

    public enum ControlByte
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte bit()  
      boolean hasFlag​(byte bitSet)  
      static java.lang.String prettyPrint​(byte bitSet)  
      byte set​(byte bitSet)
      Sets this flag to the bitSet.
      static ControlByte valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ControlByte[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(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 name
        java.lang.NullPointerException - if the argument is null
      • prettyPrint

        public static java.lang.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.