Record Class ComplexityCounter.Popped
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.ComplexityCounter.Popped
- Record Components:
complexity- the region's total, as the mutable counter it was accumulated inexpressionComplexity- the expression-only subtotal, already included incomplexity
- Enclosing class:
ComplexityCounter
public static record ComplexityCounter.Popped(AtomicInteger complexity, int expressionComplexity)
extends Record
One popped region: its total complexity, and how much of that came from expressions.
-
Constructor Summary
ConstructorsConstructorDescriptionPopped(AtomicInteger complexity, int expressionComplexity) Creates an instance of aPoppedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomplexityrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpressionComplexityrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Popped
Creates an instance of aPoppedrecord class.- Parameters:
complexity- the value for thecomplexityrecord componentexpressionComplexity- the value for theexpressionComplexityrecord component
-
-
Method Details
-
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. -
complexity
Returns the value of thecomplexityrecord component.- Returns:
- the value of the
complexityrecord component
-
expressionComplexity
public int expressionComplexity()Returns the value of theexpressionComplexityrecord component.- Returns:
- the value of the
expressionComplexityrecord component
-