Skip to content

Commit

Permalink
Merge pull request apex-enterprise-patterns#18 from OrtooApps/feature…
Browse files Browse the repository at this point in the history
…/more-robust-criteria

Feature/more robust criteria
  • Loading branch information
rob-baillie-ortoo committed Feb 16, 2022
2 parents b68bd66 + 018946e commit 234dc61
Show file tree
Hide file tree
Showing 5 changed files with 2,187 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public virtual with sharing class fflib_Criteria
/**
* Adds the given evalutor onto the formula stack
*/
protected void addEvaluator( Evaluator evaluator )
public void addEvaluator( Evaluator evaluator )
{
evaluators.add( evaluator );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public virtual class fflib_SObjects2
*
* @return Return the SObject records contained in the domain matching the criteria
*/
public virtual List<SObject> getRecords(fflib_Criteria criteria)
public virtual List<SObject> getRecords(fflib_Criteria.Evaluator criteria)
{
List<SObject> result = new List<SObject>();
for (SObject record : getRecords())
Expand Down
Loading

0 comments on commit 234dc61

Please sign in to comment.