View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:21:46,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.model.project;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
15  import org.apache.continuum.model.release.ContinuumReleaseResult;
16  import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
17  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18  import org.apache.continuum.model.repository.LocalRepository;
19  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
20  import org.apache.maven.continuum.model.scm.ChangeFile;
21  import org.apache.maven.continuum.model.scm.ChangeSet;
22  import org.apache.maven.continuum.model.scm.ScmResult;
23  import org.apache.maven.continuum.model.system.Installation;
24  import org.apache.maven.continuum.model.system.NotificationAddress;
25  import org.apache.maven.continuum.model.system.Profile;
26  import org.apache.maven.continuum.model.system.SystemConfiguration;
27  import org.apache.maven.continuum.project.ContinuumProjectState;
28  
29  /**
30   * 
31   *        Build queue.
32   *       
33   * 
34   * @version $Revision$ $Date$
35   */
36  @SuppressWarnings( "all" )
37  public class BuildQueue
38      implements java.io.Serializable
39  {
40  
41        //--------------------------/
42       //- Class/Member Variables -/
43      //--------------------------/
44  
45      /**
46       * Field id.
47       */
48      private int id = 0;
49  
50      /**
51       * Field name.
52       */
53      private String name = "";
54  
55  
56        //-----------/
57       //- Methods -/
58      //-----------/
59  
60      /**
61       * Method equals.
62       * 
63       * @param other
64       * @return boolean
65       */
66      public boolean equals( Object other )
67      {
68          if ( this == other )
69          {
70              return true;
71          }
72  
73          if ( !( other instanceof BuildQueue ) )
74          {
75              return false;
76          }
77  
78          BuildQueue that = (BuildQueue) other;
79          boolean result = true;
80  
81          result = result && id == that.id;
82  
83          return result;
84      } //-- boolean equals( Object )
85  
86      /**
87       * Get the id field.
88       * 
89       * @return int
90       */
91      public int getId()
92      {
93          return this.id;
94      } //-- int getId()
95  
96      /**
97       * Get the name field.
98       * 
99       * @return String
100      */
101     public String getName()
102     {
103         return this.name;
104     } //-- String getName()
105 
106     /**
107      * Method hashCode.
108      * 
109      * @return int
110      */
111     public int hashCode()
112     {
113         int result = 17;
114 
115         result = 37 * result + (int) id;
116 
117         return result;
118     } //-- int hashCode()
119 
120     /**
121      * Set the id field.
122      * 
123      * @param id
124      */
125     public void setId( int id )
126     {
127         this.id = id;
128     } //-- void setId( int )
129 
130     /**
131      * Set the name field.
132      * 
133      * @param name
134      */
135     public void setName( String name )
136     {
137         this.name = name;
138     } //-- void setName( String )
139 
140     /**
141      * Method toString.
142      * 
143      * @return String
144      */
145     public java.lang.String toString()
146     {
147         StringBuilder buf = new StringBuilder( 128 );
148 
149         buf.append( "id = '" );
150         buf.append( getId() );
151         buf.append( "'" );
152 
153         return buf.toString();
154     } //-- java.lang.String toString()
155 
156 }