jayunit100
jayunit100

Reputation: 17648

Are there any common, simple java logic libraries for making code more readable?

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

Answers (1)

JB Nizet
JB Nizet

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

Related Questions