Skip to main content
summaryrefslogtreecommitdiffstats
blob: 0a5c8c3ad38f2fd5027949494578d3c652c506b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package org.eclipse.osee.ote.rest.model;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class OteConfigurationItem {

	private String locationUrl;
	private String md5Digest;
	private String bundleVersion;
	private String bundleName;
	
	public String getLocationUrl() {
		return locationUrl;
	}
	public void setLocationUrl(String locationUrl) {
		this.locationUrl = locationUrl;
	}
	public String getMd5Digest() {
		return md5Digest;
	}
	
	@Override
   public int hashCode() {
      final int prime = 31;
      int result = 1;
      result = prime * result + ((bundleName == null) ? 0 : bundleName.hashCode());
      result = prime * result + ((bundleVersion == null) ? 0 : bundleVersion.hashCode());
      result = prime * result + ((locationUrl == null) ? 0 : locationUrl.hashCode());
      result = prime * result + ((md5Digest == null) ? 0 : md5Digest.hashCode());
      return result;
   }
	
   @Override
   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      OteConfigurationItem other = (OteConfigurationItem) obj;
      if (bundleName == null) {
         if (other.bundleName != null)
            return false;
      } else if (!bundleName.equals(other.bundleName))
         return false;
      if (bundleVersion == null) {
         if (other.bundleVersion != null)
            return false;
      } else if (!bundleVersion.equals(other.bundleVersion))
         return false;
      if (locationUrl == null) {
         if (other.locationUrl != null)
            return false;
      } else if (!locationUrl.equals(other.locationUrl))
         return false;
      if (md5Digest == null) {
         if (other.md5Digest != null)
            return false;
      } else if (!md5Digest.equals(other.md5Digest))
         return false;
      return true;
   }
   public void setMd5Digest(String md5Digest) {
		this.md5Digest = md5Digest;
	}
	public String getBundleVersion() {
		return bundleVersion;
	}
	public void setBundleVersion(String bundleVersion) {
		this.bundleVersion = bundleVersion;
	}
	public String getBundleName() {
		return bundleName;
	}
	public void setBundleName(String bundleName) {
		this.bundleName = bundleName;
	}
	public String getSymbolicName() {
		return bundleName;
	}
	public String getVersion() {
		return bundleVersion;
	}

}

Back to the top