Skip to content

Instantly share code, notes, and snippets.

@vpiotr
Last active August 29, 2015 14:11
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 vpiotr/7f1eab8104f950e2e369 to your computer and use it in GitHub Desktop.
Save vpiotr/7f1eab8104f950e2e369 to your computer and use it in GitHub Desktop.
// 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