|
Project Information
Featured
Downloads
Links
|
Inspired by the hamcrest library and the hamcrest-collections library, logicalpractice-collections attempts to implement a more flexiable and powerful collection tools.
The following syntax is (using this library perfectly valid java. smiths = select(people, where(Person.class).getLastName(), equalToIgnoringCase("smith"));
// or using even more compact syntax
smiths = select(from(people).getLastName(), equalToIgnoringCase("smith"));// returns a list of firstNames, one item for each elemnet of 'people' firstNames = collect(from(people).getFirstName()); There are some very important limits to the use of these functions and it'd be a good idea to have a quick read before you go wading on in there. |