Package | Description |
---|---|
cz.cuni.amis.utils.collections |
Collection wrappers supporting change events.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
MyCollections.asList(Collection<T> objects,
IFilter filter) |
static <T> List<T> |
MyCollections.asList(T[] objects,
IFilter filter) |
static <T> List<T> |
MyCollections.getFiltered(Collection<T> col,
IFilter filter)
Returns new list that contains only objects from 'col' that are
isAccepted(Object) . |
static <T> T[] |
MyCollections.getFiltered(T[] array,
IFilter filter)
Returns new array that contains only objects from 'array' that are
isAccepted(Object) . |
static <T> T |
MyCollections.getRandomFiltered(Collection<T> col,
IFilter filter)
Returns random element from the collection that is
isAccepted(Object) by the 'filter'. |
static <T> T |
MyCollections.getRandomFiltered(T[] array,
IFilter filter)
Returns random element from the array that is
isAccepted(Object) by the 'filter'. |
static <T> void |
MyCollections.toList(T[] objects,
List<T> list,
IFilter filter)
Adds 'objects' that satisfies 'filter' to 'list'.
|
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.