Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: joelib/util/types/IntIntInt.java


1   ///////////////////////////////////////////////////////////////////////////////
2   //  Filename: $RCSfile: IntIntInt.java,v $
3   //  Purpose:  Atom representation.
4   //  Language: Java
5   //  Compiler: JDK 1.4
6   //  Authors:  Joerg K. Wegner
7   //  Version:  $Revision: 1.7 $
8   //            $Date: 2003/08/22 15:56:22 $
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   * {@link IntInt} and one more integer value.
34   *
35   * @author     wegnerj
36   * @license GPL
37   * @cvsversion    $Revision: 1.7 $, $Date: 2003/08/22 15:56:22 $
38   */
39  public class IntIntInt 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 IntInt ii;
51  
52      /**
53       *  Description of the Field
54       */
55      public int i;
56  
57      //~ Constructors ///////////////////////////////////////////////////////////
58  
59      /*-------------------------------------------------------------------------*
60       * constructor
61       *------------------------------------------------------------------------- */
62  
63      /**
64       *  Constructor for the IntIntInt object
65       */
66      public IntIntInt()
67      {
68          ii = new IntInt();
69      }
70  
71      /**
72       *  Constructor for the IntIntInt object
73       *
74       * @param  _ii  Description of the Parameter
75       * @param  _i   Description of the Parameter
76       */
77      public IntIntInt(IntInt _ii, int _i)
78      {
79          i = _i;
80          ii = _ii;
81      }
82  
83      //~ Methods ////////////////////////////////////////////////////////////////
84  
85      public boolean equals(Object otherObj)
86      {
87          if (otherObj instanceof IntIntInt)
88          {
89              IntIntInt iii = (IntIntInt) otherObj;
90  
91              if ((iii.i == this.i) && iii.ii.equals(this.ii))
92              {
93                  return true;
94              }
95              else
96              {
97                  return false;
98              }
99          }
100         else
101         {
102             return false;
103         }
104     }
105 }
106 ///////////////////////////////////////////////////////////////////////////////
107 //  END OF FILE.
108 ///////////////////////////////////////////////////////////////////////////////