Enum Class EntryType

java.lang.Object
java.lang.Enum<EntryType>
com.linecorp.centraldogma.common.EntryType
All Implemented Interfaces:
Serializable, Comparable<EntryType>, java.lang.constant.Constable

public enum EntryType extends Enum<EntryType>
The type of an Entry.
  • Enum Constant Details

    • JSON

      public static final EntryType JSON
      A UTF-8 encoded JSON file.
    • TEXT

      public static final EntryType TEXT
      A UTF-8 encoded text file.
    • DIRECTORY

      public static final EntryType DIRECTORY
      A directory.
  • Method Details

    • values

      public static EntryType[] 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 EntryType 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
    • guessFromPath

      public static EntryType guessFromPath(String path)
      Guesses the EntryType from the specified path.
    • type

      public Class<?> type()
      Returns the type of the content returned by Entry.content().