Reputation: 17648
hi guys : does anyone know if there is a common apache or other logic library for simplifying code blocks ? For example, to handle logical questions such as (isOneOf, containsNOf, ...) ?
Im not looking for something too fancy, or experimental, but rather, a simple java library with apis that make my code read more functionally .
Upvotes: 0
Views: 521
Reputation: 691805
java.util.Set has contains, containsAll, size, retainAll, removeAll. Without knowing precisely what you're after, it's hard to answer more precisely. Guava also has excellent collection utilities (predicates, etc.), and some additional useful collections.
Upvotes: 4