Skip to content

Instantly share code, notes, and snippets.

@Patlatus
Created October 2, 2018 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Patlatus/4d601967e3534f67cebfd3b1440436d7 to your computer and use it in GitHub Desktop.
Save Patlatus/4d601967e3534f67cebfd3b1440436d7 to your computer and use it in GitHub Desktop.
EmptyValueFilter
public class EmptyValueFilter implements IFilter {
SObjectField field;
public EmptyValueFilter(SObjectField f) {
field = f;
}
public Boolean check(SObject rec, SObject old) {
return rec.get(field) == null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment