Record Class InputVarietyDenominator
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.inputvariety.InputVarietyDenominator
- Record Components:
floor- the 1-wise "each-choice" floor = Σ leaf class-counts — the headline and future gate basis; the count of value-classes a competent suite must exercise at least once.0whenexempt.pairwiseDenominator- the pairwise "opportunity ceiling" = Σ over leaf pairs(i<j)ofclassCount(li) × classCount(lj); for a single leaf it is that leaf's class count; informational (§4.6), never the gate target.0whenexempt.perParameterConfidence- oneClassConfidenceper LEAF, in flattened order — a pair cell is EXACT iff both its leaves are (§4.3).exempt- true when the construct has no input dimension at all (k == 0with no receiver) — e.g. a no-arg function or constructor.
public record InputVarietyDenominator(long floor, long pairwiseDenominator, List<ClassConfidence> perParameterConfidence, boolean exempt)
extends Record
The input-variation figures for one public construct, computed over its flattened leaf
dimensions (records decompose to fields; receiver-p0 included) — design §4.1 / §4.6. Two
numbers fall out of the one leaf list:
-
Constructor Summary
ConstructorsConstructorDescriptionInputVarietyDenominator(long floor, long pairwiseDenominator, List<ClassConfidence> perParameterConfidence, boolean exempt) Creates an instance of aInputVarietyDenominatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexempt()Returns the value of theexemptrecord component.longfloor()Returns the value of thefloorrecord component.static InputVarietyDenominatorThe exempt figures — a construct with no input dimension (k == 0, no receiver).final inthashCode()Returns a hash code value for this object.longReturns the value of thepairwiseDenominatorrecord component.Returns the value of theperParameterConfidencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputVarietyDenominator
public InputVarietyDenominator(long floor, long pairwiseDenominator, List<ClassConfidence> perParameterConfidence, boolean exempt) Creates an instance of aInputVarietyDenominatorrecord class.- Parameters:
floor- the value for thefloorrecord componentpairwiseDenominator- the value for thepairwiseDenominatorrecord componentperParameterConfidence- the value for theperParameterConfidencerecord componentexempt- the value for theexemptrecord component
-
-
Method Details
-
forNoParameters
The exempt figures — a construct with no input dimension (k == 0, no receiver). -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
floor
-
pairwiseDenominator
public long pairwiseDenominator()Returns the value of thepairwiseDenominatorrecord component.- Returns:
- the value of the
pairwiseDenominatorrecord component
-
perParameterConfidence
Returns the value of theperParameterConfidencerecord component.- Returns:
- the value of the
perParameterConfidencerecord component
-
exempt
-