Last active
August 29, 2015 14:11
-
-
Save vpiotr/7f1eab8104f950e2e369 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
// findAllByAaa - find set of matching rows, empty set acceptable | |
Iterator found = Map.findAllByName("Jeffrey"); | |
// find - get row selected by parameters, return null if not found | |
Employee employee = employees.find("Jeffrey"); | |
// check - get row selected by parameters, throw exception if not found | |
Employee employee = employees.check("Jeffrey"); | |
// get - this pattern in this context I would avoid since it can be understood as something between find & check | |
Employee employee = employees.get("Jeffrey"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment