|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsjrd.util.ListUtils
public class ListUtils
Fonctions utilitaires sur des listes
Constructor Summary | |
---|---|
ListUtils()
|
Method Summary | ||
---|---|---|
static
|
mapList(List<T> source,
Mapper<? super T,? extends V> mapper)
Convertit les éléments d'une liste en un autre type, avec un mapper Chaque élément de la liste source est converti via la méthode map du mapper, et le résultat est placé ŕ l'index correspondant du résultat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListUtils()
Method Detail |
---|
public static <T,V> List<V> mapList(List<T> source, Mapper<? super T,? extends V> mapper)
Chaque élément de la liste source est converti via la méthode map du mapper, et le résultat est placé ŕ l'index correspondant du résultat.
T
- Type d'origine des élémentsV
- Type de destination des élémentssource
- Liste sourcemapper
- Mapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |