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

Quick Search    Search Deep

Source code: org/alicebot/server/core/util/StringTriple.java


1   // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
2   // Jad home page: http://www.geocities.com/kpdus/jad.html
3   // Decompiler options: packimports(3) 
4   
5   package org.alicebot.server.core.util;
6   
7   
8   public class StringTriple
9   {
10  
11      public StringTriple(String s, String s1, String s2)
12      {
13          first = s;
14          second = s1;
15          third = s2;
16      }
17  
18      public String getFirst()
19      {
20          return first;
21      }
22  
23      public String getSecond()
24      {
25          return second;
26      }
27  
28      public String getThird()
29      {
30          return third;
31      }
32  
33      public void setFirst(String s)
34      {
35          first = s;
36      }
37  
38      public void setSecond(String s)
39      {
40          second = s;
41      }
42  
43      public void setThird(String s)
44      {
45          third = s;
46      }
47  
48      public boolean equals(Object obj)
49      {
50          StringTriple stringtriple;
51          try
52          {
53              stringtriple = (StringTriple)obj;
54          }
55          catch(ClassCastException classcastexception)
56          {
57              return false;
58          }
59          return stringtriple.getFirst().equals(first) & stringtriple.getSecond().equals(second) & stringtriple.getThird().equals(third);
60      }
61  
62      private String first;
63      private String second;
64      private String third;
65  }