Enum Class Cardinality.Fixed

java.lang.Object
java.lang.Enum<Cardinality.Fixed>
com.arc_e_tect.gradle.trackerlens.contract.Cardinality.Fixed
All Implemented Interfaces:
Cardinality, Serializable, Comparable<Cardinality.Fixed>, Constable
Enclosing interface:
Cardinality

public static enum Cardinality.Fixed extends Enum<Cardinality.Fixed> implements Cardinality
The fixed (non-rule-relative) cardinality kinds.
  • Enum Constant Details

    • EXACTLY_ONE

      public static final Cardinality.Fixed EXACTLY_ONE
      Exactly one match in the whole document.
    • AT_LEAST_ONE

      public static final Cardinality.Fixed AT_LEAST_ONE
      At least one match in the whole document.
    • AT_MOST_ONE

      public static final Cardinality.Fixed AT_MOST_ONE
      At most one match in the whole document.
    • AT_LEAST_ONE_PER_TRACKER

      public static final Cardinality.Fixed AT_LEAST_ONE_PER_TRACKER
      At least one match within each tracker section.
    • AT_MOST_ONE_PER_TRACKER

      public static final Cardinality.Fixed AT_MOST_ONE_PER_TRACKER
      At most one match within each tracker section.
    • SAME_COUNT_AS_TRACKERS

      public static final Cardinality.Fixed SAME_COUNT_AS_TRACKERS
      The whole-document match count equals the number of discovered tracker sections.
  • Method Details

    • values

      public static Cardinality.Fixed[] 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 Cardinality.Fixed 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