Last change
on this file since 189 was
189,
checked in by vmipsl, 13 years ago
|
Servlet _ TimeSerie? :
- 1 paramètre ok
- même paramètre sur différentes plateformes ok
- plusieurs paramètres sur même ou différentes plateformes ok
|
File size:
662 bytes
|
Line | |
---|
1 | package com.ether; |
---|
2 | |
---|
3 | import org.jetbrains.annotations.NotNull; |
---|
4 | |
---|
5 | import java.util.ArrayList; |
---|
6 | import java.util.List; |
---|
7 | |
---|
8 | /** |
---|
9 | * @author vmipsl |
---|
10 | * @date 09 sept. 2011 |
---|
11 | */ |
---|
12 | public abstract class EtherHelper |
---|
13 | { |
---|
14 | /** |
---|
15 | * This method returns the list with the second values of a list of <Pair> |
---|
16 | * |
---|
17 | * @param pairList |
---|
18 | * @return |
---|
19 | */ |
---|
20 | @NotNull |
---|
21 | public static <T1, T2> List getSecondValues( @NotNull final List<Pair<T1, T2>> pairList ) |
---|
22 | { |
---|
23 | final List secondValues = new ArrayList<T2>( pairList.size() ); |
---|
24 | for( final Pair pair : pairList ) |
---|
25 | secondValues.add( pair.getSecondValue() ); |
---|
26 | |
---|
27 | return secondValues; |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.