View Javadoc

1   package net.sourceforge.basher;
2   
3   /**
4    * @author Johan Lindquist
5    * @version $Revision$
6    */
7   public class ExecutionType
8   {
9       private String type;
10      private int defaultTaskInvocations;
11  
12      public String getType()
13      {
14          return type;
15      }
16  
17      public void setType(final String type)
18      {
19          this.type = type;
20      }
21  
22      public int getDefaultTaskInvocations()
23      {
24          return defaultTaskInvocations;
25      }
26  
27      public void setDefaultTaskInvocations(final int defaultTaskInvocations)
28      {
29          this.defaultTaskInvocations = defaultTaskInvocations;
30      }
31  
32  
33      public String toString()
34      {
35          return "ExecutionType{" +
36                  "type='" + type + '\'' +
37                  ", defaultTaskInvocations=" + defaultTaskInvocations +
38                  '}';
39      }
40  
41      public boolean equals(final Object o)
42      {
43          if (this == o)
44          {
45              return true;
46          }
47          if (o == null || getClass() != o.getClass())
48          {
49              return false;
50          }
51  
52          final ExecutionType that = (ExecutionType) o;
53  
54          if (defaultTaskInvocations != that.defaultTaskInvocations)
55          {
56              return false;
57          }
58          if (type != null ? !type.equals(that.type) : that.type != null)
59          {
60              return false;
61          }
62  
63          return true;
64      }
65  
66      public int hashCode()
67      {
68          int result;
69          result = (type != null ? type.hashCode() : 0);
70          result = 31 * result + defaultTaskInvocations;
71          return result;
72      }
73  }