|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.core.CollectionUtils
public class CollectionUtils
Some auxiliary methods for collections.
| Method Summary | ||
|---|---|---|
static
|
doFilter(Collection<T> coll,
Predicate<T> p)
Destructively removes the elements for which p returns
false. |
|
static
|
filter(Collection<T> coll,
Predicate<T> p)
Returns a filtered copy of the collection coll. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> void doFilter(Collection<T> coll,
Predicate<T> p)
p returns
false.
coll - the collection to modify.p - the predicate to filter by.
public static <T> Collection<T> filter(Collection<T> coll,
Predicate<T> p)
coll.
coll - the collection to filter.p - the predicate to filter by.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||