Record Class FOQueries.EvaluableQueriesReplacementResult<Formula extends FOFormula>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.util.FOQueries.EvaluableQueriesReplacementResult<Formula>
- Type Parameters:
Formula- the formula type contained in the queries- Record Components:
queries- the transformed queriesfunctionReplacement- the replacement map for evaluable functionsatomReplacement- the replacement map for computed atoms
- Enclosing class:
FOQueries
public static record FOQueries.EvaluableQueriesReplacementResult<Formula extends FOFormula>(Collection<FOQuery<Formula extends FOFormula>> queries, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement)
extends Record
Groups transformed queries together with the replacements used for evaluable parts.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluableQueriesReplacementResult(Collection<FOQuery<Formula>> queries, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement) Creates an instance of aEvaluableQueriesReplacementResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatomReplacementrecord component.final booleanIndicates whether some other object is "equal to" this one.com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> Returns the value of thefunctionReplacementrecord component.final inthashCode()Returns a hash code value for this object.queries()Returns the value of thequeriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluableQueriesReplacementResult
public EvaluableQueriesReplacementResult(Collection<FOQuery<Formula>> queries, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement) Creates an instance of aEvaluableQueriesReplacementResultrecord class.- Parameters:
queries- the value for thequeriesrecord componentfunctionReplacement- the value for thefunctionReplacementrecord componentatomReplacement- the value for theatomReplacementrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
queries
-
functionReplacement
public com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement()Returns the value of thefunctionReplacementrecord component.- Returns:
- the value of the
functionReplacementrecord component
-
atomReplacement
Returns the value of theatomReplacementrecord component.- Returns:
- the value of the
atomReplacementrecord component
-