If I understand correctly, there are perhaps dozens of ways to do what you want. You can brute for it - loop through all the objects and find ones with the appropriate values, you could create a Map...