View Javadoc

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