1 17 package org.apache.servicemix.jbi.deployment; 18 19 22 public class SharedLibraryList { 23 private String version; 24 private String name; 25 26 public SharedLibraryList() { 27 } 28 29 public SharedLibraryList(String name) { 30 this.name = name; 31 } 32 33 public String getVersion() { 34 return version; 35 } 36 37 public void setVersion(String version) { 38 this.version = version; 39 } 40 41 public String getName() { 42 return name; 43 } 44 45 public void setName(String name) { 46 this.name = name; 47 } 48 49 public boolean equals(Object o) { 50 if (this == o) { 51 return true; 52 } 53 if (!(o instanceof SharedLibraryList)) { 54 return false; 55 } 56 57 final SharedLibraryList sharedLibraryList = (SharedLibraryList) o; 58 59 if (name != null ? !name.equals(sharedLibraryList.name) : sharedLibraryList.name != null) { 60 return false; 61 } 62 if (version != null ? !version.equals(sharedLibraryList.version) : sharedLibraryList.version != null) { 63 return false; 64 } 65 66 return true; 67 } 68 69 public int hashCode() { 70 int result; 71 result = (version != null ? version.hashCode() : 0); 72 result = 29 * result + (name != null ? name.hashCode() : 0); 73 return result; 74 } 75 76 public String toString() { 77 return "SharedLibraryList[version=" + version + "; name=" + name + "]"; 78 } 79 80 } 81 | Popular Tags |