Source code: joelib/util/types/StringString.java
1 ///////////////////////////////////////////////////////////////////////////////
2 // Filename: $RCSfile: StringString.java,v $
3 // Purpose: Atom representation.
4 // Language: Java
5 // Compiler: JDK 1.4
6 // Authors: Joerg K. Wegner
7 // Version: $Revision: 1.6 $
8 // $Date: 2003/08/19 13:11:29 $
9 // $Author: wegner $
10 //
11 // Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
12 //
13 // This program is free software; you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation version 2 of the License.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 ///////////////////////////////////////////////////////////////////////////////
22 package joelib.util.types;
23
24
25 /*==========================================================================*
26 * IMPORTS
27 *========================================================================== */
28 /*==========================================================================*
29 * CLASS DECLARATION
30 *========================================================================== */
31
32 /**
33 * Two String values.
34 *
35 * @author wegnerj
36 * @license GPL
37 * @cvsversion $Revision: 1.6 $, $Date: 2003/08/19 13:11:29 $
38 */
39 public class StringString implements java.io.Serializable
40 {
41 //~ Instance fields ////////////////////////////////////////////////////////
42
43 /*-------------------------------------------------------------------------*
44 * public member variables
45 *------------------------------------------------------------------------- */
46
47 /**
48 * Description of the Field
49 */
50 public String s1;
51
52 /**
53 * Description of the Field
54 */
55 public String s2;
56
57 //~ Constructors ///////////////////////////////////////////////////////////
58
59 /*-------------------------------------------------------------------------*
60 * constructor
61 *------------------------------------------------------------------------- */
62
63 /**
64 * Constructor for the StringString object
65 *
66 * @param _s1 Description of the Parameter
67 * @param _s2 Description of the Parameter
68 */
69 public StringString(String _s1, String _s2)
70 {
71 s1 = _s1;
72 s2 = _s2;
73 }
74
75 //~ Methods ////////////////////////////////////////////////////////////////
76
77 public String toString()
78 {
79 return s1 + "," + s2;
80 }
81 }
82 ///////////////////////////////////////////////////////////////////////////////
83 // END OF FILE.
84 ///////////////////////////////////////////////////////////////////////////////