Basic Java collections query library