1 44 45 package org.jfree.base; 46 47 import org.jfree.ui.about.AboutFrame; 48 49 55 public class Library { 56 57 58 private String name; 59 60 61 private String version; 62 63 64 private String licenceName; 65 66 67 private String info; 68 69 77 public Library(final String name, final String version, 78 final String licence, final String info) { 79 80 this.name = name; 81 this.version = version; 82 this.licenceName = licence; 83 this.info = info; 84 } 85 86 89 protected Library() { 90 } 92 93 98 public String getName() { 99 return this.name; 100 } 101 102 107 public String getVersion() { 108 return this.version; 109 } 110 111 116 public String getLicenceName() { 117 return this.licenceName; 118 } 119 120 125 public String getInfo() { 126 return this.info; 127 } 128 129 134 protected void setInfo(final String info) { 135 this.info = info; 136 } 137 138 143 protected void setLicenceName(final String licenceName) { 144 this.licenceName = licenceName; 145 } 146 147 152 protected void setName(final String name) { 153 this.name = name; 154 } 155 156 161 protected void setVersion(final String version) { 162 this.version = version; 163 } 164 165 public boolean equals(final Object o) 166 { 167 if (this == o) 168 { 169 return true; 170 } 171 if (o == null || getClass() != o.getClass()) 172 { 173 return false; 174 } 175 176 final Library library = (Library) o; 177 178 if (name != null ? !name.equals(library.name) : library.name != null) 179 { 180 return false; 181 } 182 183 return true; 184 } 185 186 public int hashCode() 187 { 188 return (name != null ? name.hashCode() : 0); 189 } 190 } 191 | Popular Tags |