Last active
December 16, 2015 12:49
-
-
Save roberto-filho/5437317 to your computer and use it in GitHub Desktop.
Enum implementando lógica AND e OR
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 enum Logic { | |
AND { | |
@Override | |
public boolean compare(String[] campos, Object objectToCompare, String valueToCompare) { | |
// Implementar lógica "AND" | |
return false; | |
} | |
}, | |
OR { | |
@Override | |
public boolean compare(String[] campos, Object objectToCompare, String valueToCompare) { | |
// Implementar lógica "OR" | |
return false; | |
} | |
}; | |
public abstract boolean compare(String[] campos, Object objectToCompare, String valueToCompare); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment