Record Class NPathComplexityCheck.Values
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck.Values
- Record Components:
rangeValue- NP value for range.expressionValue- NP value for expression.
- Enclosing class:
NPathComplexityCheck
private static record NPathComplexityCheck.Values(BigInteger rangeValue, BigInteger expressionValue)
extends Record
Class that store range value and expression value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BigIntegerThe field for theexpressionValuerecord component.private final BigIntegerThe field for therangeValuerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateValues(BigInteger rangeValue, BigInteger expressionValue) Creates an instance of aValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionValuerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therangeValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
rangeValue
The field for therangeValuerecord component. -
expressionValue
The field for theexpressionValuerecord component.
-
-
Constructor Details
-
Values
Creates an instance of aValuesrecord class.- Parameters:
rangeValue- the value for therangeValuerecord componentexpressionValue- the value for theexpressionValuerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
rangeValue
Returns the value of therangeValuerecord component.- Returns:
- the value of the
rangeValuerecord component
-
expressionValue
Returns the value of theexpressionValuerecord component.- Returns:
- the value of the
expressionValuerecord component
-