|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.SetUtils
Provides static utility methods and decorators for Set
and SortedSet
instances.
Method Summary | |
static Set |
predicatedSet(Set set,
Predicate predicate)
Returns a predicated set backed by the given set. |
static SortedSet |
predicatedSortedSet(SortedSet set,
Predicate predicate)
Returns a predicated sorted set backed by the given sorted set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Set predicatedSet(Set set, Predicate predicate)
set
- the set to predicate, must not be nullpredicate
- the predicate for the set, must not be null
IllegalArgumentException
- if the Set or Predicate is nullpublic static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate)
set
- the sorted set to predicate, must not be nullpredicate
- the predicate for the sorted set, must not be null
IllegalArgumentException
- if the Set or Predicate is null
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |