~ubuntu-branches/ubuntu/precise/triplea/precise

« back to all changes in this revision

Viewing changes to src/games/strategy/util/Tuple.java

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-11-11 21:40:11 UTC
  • Revision ID: package-import@ubuntu.com-20111111214011-sehf2rwat36o2xqf
Tags: upstream-1.3.2.2
ImportĀ upstreamĀ versionĀ 1.3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package games.strategy.util;
 
2
 
 
3
import java.io.Serializable;
 
4
 
 
5
public class Tuple<T,S> implements Serializable
 
6
{
 
7
    private final T m_first;
 
8
    private final S m_second;
 
9
   
 
10
    public Tuple(T first, S second)
 
11
    {
 
12
        m_first = first;
 
13
        m_second = second;
 
14
    }
 
15
 
 
16
    public T getFirst()
 
17
    {
 
18
        return m_first;
 
19
    }
 
20
 
 
21
    public S getSecond()
 
22
    {
 
23
        return m_second;
 
24
    }
 
25
 
 
26
    
 
27
    
 
28
    
 
29
    
 
30
}