Created
October 2, 2018 13:10
-
-
Save Patlatus/4d601967e3534f67cebfd3b1440436d7 to your computer and use it in GitHub Desktop.
EmptyValueFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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