Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
399 bytes
|
Line | |
---|
1 | package com.framsticks.util; |
---|
2 | |
---|
3 | /** |
---|
4 | * @author Piotr Sniegowski |
---|
5 | */ |
---|
6 | public class Pair<T1, T2> { |
---|
7 | public final T1 first; |
---|
8 | public final T2 second; |
---|
9 | |
---|
10 | public Pair(T1 first, T2 second) { |
---|
11 | this.first = first; |
---|
12 | this.second = second; |
---|
13 | } |
---|
14 | |
---|
15 | @Override |
---|
16 | public String toString() { |
---|
17 | return Strings.toStringNullProof(first) + " " + Strings.toStringNullProof(second); |
---|
18 | } |
---|
19 | |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.