Record Class ResultUseRule.Evaluation<S>
java.lang.Object
java.lang.Record
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation<S>
- Type Parameters:
S- the type of symbols- Record Components:
rule- The rule that made this evaluation.scope- The scope at which the evaluation was made.element- The specific element in the scope for which the evaluation was made.policy- The policy the rule selected.
- Enclosing class:
ResultUseRule<C,S>
public static record ResultUseRule.Evaluation<S>(ResultUseRule<?,S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy)
extends Record
An evaluation that a rule makes.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluation(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates an instance of aEvaluationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ResultUseRule.Evaluation<S> create(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.policy()Returns the value of thepolicyrecord component.ResultUseRule<?, S> rule()Returns the value of therulerecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Evaluation
public Evaluation(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates an instance of aEvaluationrecord class.
-
-
Method Details
-
create
public static <S> ResultUseRule.Evaluation<S> create(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
rule
-
scope
-
element
-
policy
-