Enum Class BlockType

java.lang.Object
java.lang.Enum<BlockType>
org.rostore.v2.media.block.BlockType
All Implemented Interfaces:
Serializable, Comparable<BlockType>, Constable

public enum BlockType extends Enum<BlockType>
A type of the block. It is needed to decide on the priority of the block, but also is used to validate internal logic.

This data is not persisted, and rather is available based on the run-time logic after the block is allocated.

DATA blocks are not cached after they are freed.

  • Enum Constant Details

  • Method Details

    • values

      public static BlockType[] 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 BlockType 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