Created
March 11, 2016 03:14
-
-
Save krystiancharubin/9793dd3eb9bb515c3275 to your computer and use it in GitHub Desktop.
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
private static boolean checkConditions(SObject record, Map < String, Object > conditionals) { | |
for (String field: conditionals.keySet()) { | |
Object value = record.get(field); | |
Object condition = conditionals.get(field); | |
if (value != condition) return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment