Enum Class CoreConfig.TrustStat

java.lang.Object
java.lang.Enum<CoreConfig.TrustStat>
org.eclipse.jgit.lib.CoreConfig.TrustStat
All Implemented Interfaces:
Serializable, Comparable<CoreConfig.TrustStat>, Constable
Enclosing class:
CoreConfig

public static enum CoreConfig.TrustStat extends Enum<CoreConfig.TrustStat>
Values for core.trustXXX options.
Since:
7.2
  • Enum Constant Details

    • NEVER

      public static final CoreConfig.TrustStat NEVER
      Do not trust file attributes of a File.
    • ALWAYS

      public static final CoreConfig.TrustStat ALWAYS
      Always trust file attributes of a File.
    • AFTER_OPEN

      public static final CoreConfig.TrustStat AFTER_OPEN
      Open and close the File to refresh its file attributes and then trust it.
    • INHERIT

      public static final CoreConfig.TrustStat INHERIT
      Used for specific options to inherit value from value set for core.trustStat.
  • Method Details

    • values

      public static CoreConfig.TrustStat[] 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 CoreConfig.TrustStat 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