Module swim.db
Package swim.db

Enum Class PageType

All Implemented Interfaces:
Serializable, Comparable<PageType>, Constable, Debug

public enum PageType extends Enum<PageType> implements Debug
  • Enum Constant Details

    • NODE

      public static final PageType NODE
    • LEAF

      public static final PageType LEAF
  • Method Details

    • values

      public static PageType[] 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 PageType 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
    • isNode

      public boolean isNode()
    • isLeaf

      public boolean isLeaf()
    • tag

      public String tag()
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Returns:
      the continuation of the output.
    • fromTag

      public static PageType fromTag(String tag)