org.apache.commons.collections
public class SetUtils extends java.lang.Object
Set
and SortedSet
instances.Modifier and Type | Method and Description |
---|---|
static java.util.Set |
predicatedSet(java.util.Set set,
Predicate predicate)
Returns a predicated set backed by the given set.
|
static java.util.SortedSet |
predicatedSortedSet(java.util.SortedSet set,
Predicate predicate)
Returns a predicated sorted set backed by the given sorted set.
|
public static java.util.Set predicatedSet(java.util.Set set, Predicate predicate)
set
- the set to predicate, must not be nullpredicate
- the predicate for the set, must not be nulljava.lang.IllegalArgumentException
- if the Set or Predicate is nullpublic static java.util.SortedSet predicatedSortedSet(java.util.SortedSet set, Predicate predicate)
set
- the sorted set to predicate, must not be nullpredicate
- the predicate for the sorted set, must not be nulljava.lang.IllegalArgumentException
- if the Set or Predicate is nullCopyright © 2001-2004 Apache Software Foundation. Documenation generated March 13 2014.