Enum Class ClassConfidence

java.lang.Object
java.lang.Enum<ClassConfidence>
org.ek9lang.compiler.support.inputvariety.ClassConfidence
All Implemented Interfaces:
Serializable, Comparable<ClassConfidence>, Constable

public enum ClassConfidence extends Enum<ClassConfidence>
How trustworthy a type's value-class set is — the honesty tag for the input-variation metric.

See docs/implementation/EK9_INPUT_VARIATION_METRIC_DESIGN.md §3.2 and the companion taxonomy. The tier falls straight out of what operators / structure a type exposes, and the gradient is itself a useful signal: only EXACT cells are eligible for the optional packaging gate (design §8), so the compiler never mandates tests against a guessed denominator.

  • Enum Constant Details

    • EXACT

      public static final ClassConfidence EXACT
      Class set AND value→class placement both unambiguous (enumerations, bounded scalars like Integer/Date/Money, ordered user types with declared reference points). Gate-eligible.
    • HEURISTIC

      public static final ClassConfidence HEURISTIC
      A reasonable guess at the meaningful classes — String buckets, unbounded ordered types, collection cardinality. Reported, never hard-gated.
    • SET_UNSET_ONLY

      public static final ClassConfidence SET_UNSET_ONLY
      Only set / unset honestly available (opaque identity types such as GUID/HMAC). The denominator here is exactly 2.
  • Method Details

    • values

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