Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* @author STF 424_ITS_Test_Platform
* @version $URL$
* $Id$
*/
package org.etsi.common;
/**
* This class implements the ITuple interface
* @param <A> Type of the first member of the Tuple
* @param <B> Type of the second member of the Tuple
*/
public class Tuple<A, B> implements ITuple<A, B> {
/**
* A element of the tuple
*/
private A _a;
/**
* B element of the tuple
*/
private B _b;
/**
* Constructor
* @param a The A element of the new tuple
* @param b The B element of the new tuple
*/
public Tuple(A a, B b) {
_a = a;
_b = b;
}
/**
* Retrieve the A element of the tuple
* @return the _a
*/
@Override
public A getA() {
return _a;
}
/**
* Retrieve the B element of the tuple
* @return the _b
*/
@Override
public B getB() {
return _b;
}
}