Enum Class PackedRefsTrait

java.lang.Object
java.lang.Enum<PackedRefsTrait>
org.eclipse.jgit.lib.PackedRefsTrait
All Implemented Interfaces:
Serializable, Comparable<PackedRefsTrait>, Constable

public enum PackedRefsTrait extends Enum<PackedRefsTrait>
Headers defined on the packed-refs file.
Since:
7.7
  • Enum Constant Details

    • SORTED

      public static final PackedRefsTrait SORTED
      If in the header, denotes the file has sorted data.
    • PEELED

      public static final PackedRefsTrait PEELED
      If in the header, denotes the file has peeled data for (refs/tags/...).
    • FULLY_PEELED

      public static final PackedRefsTrait FULLY_PEELED
      If in the header, denotes the file has peeled data for all the refs which are peelable.
  • Method Details

    • values

      public static PackedRefsTrait[] 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 PackedRefsTrait 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
    • value

      public String value()
      Gives the string representation of trait like it appears in packed-refs header
      Returns:
      String representation of the trait.