Parent Directory
|
Revision Log
Initial revision
| 1 | bobby | 1.1 | package commonJava.util; |
| 2 | |||
| 3 | /** | ||
| 4 | * Just a simple tuple. | ||
| 5 | * @author <a href="mailto:pt00rsa@student.bth.se">Robert "Bobby" Sandell</a> | ||
| 6 | */ | ||
| 7 | public class IntWithString { | ||
| 8 | private String mText; | ||
| 9 | private int mValue; | ||
| 10 | |||
| 11 | public IntWithString(int pValue, String pText) { | ||
| 12 | mValue = pValue; | ||
| 13 | mText = pText; | ||
| 14 | } | ||
| 15 | |||
| 16 | public IntWithString(String pText, int pValue) { | ||
| 17 | mValue = pValue; | ||
| 18 | mText = pText; | ||
| 19 | } | ||
| 20 | |||
| 21 | public int getValue() { | ||
| 22 | return mValue; | ||
| 23 | } | ||
| 24 | |||
| 25 | public String toString() { | ||
| 26 | return mText; | ||
| 27 | } | ||
| 28 | } |
| root@recompile.se | ViewVC Help |
| Powered by ViewVC 1.1.26 |