Enum Class Feature

java.lang.Object
java.lang.Enum<Feature>
sonia.scm.repository.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>, Constable

public enum Feature extends Enum<Feature>
Features which are supported by a Repository.
Since:
1.25
  • Enum Constant Details

    • COMBINED_DEFAULT_BRANCH

      public static final Feature COMBINED_DEFAULT_BRANCH
      The default branch of the repository is a combined branch of all repository branches.
    • INCOMING_REVISION

      public static final Feature INCOMING_REVISION
      The repository supports computation of incoming changes (either diff or list of changesets) of one branch in respect to another target branch.
    • MODIFICATIONS_BETWEEN_REVISIONS

      public static final Feature MODIFICATIONS_BETWEEN_REVISIONS
      The repository supports computation of modifications between two revisions, not only for a singe revision.
      Since:
      2.23.0
    • FORCE_PUSH

      public static final Feature FORCE_PUSH
      The repository supports pushing with a force flag.
      Since:
      2.47.0
    • TAGS_FOR_REVISION

      public static final Feature TAGS_FOR_REVISION
      The repository supports computation of tags for a given revision.
      Since:
      3.1.0
  • Method Details

    • values

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