| | |
| | | */ |
| | | package de.uhilger.mediaz.store; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * |
| | | * @author ulrich |
| | |
| | | |
| | | private String name; |
| | | private String typ; |
| | | private String interpret = ""; |
| | | private String titelAnzName = ""; |
| | | private String album = ""; |
| | | |
| | | public String getName() { |
| | | return name; |
| | |
| | | public void setTyp(String typ) { |
| | | this.typ = typ; |
| | | } |
| | | |
| | | public String getInterpret() { |
| | | return interpret; |
| | | } |
| | | |
| | | public void setInterpret(String ip) { |
| | | if(ip != null) { |
| | | this.interpret = ip; |
| | | } |
| | | } |
| | | |
| | | public String getTitelAnzName() { |
| | | return titelAnzName; |
| | | } |
| | | |
| | | public void setTitelAnzName(String tan) { |
| | | if(tan != null) { |
| | | this.titelAnzName = tan; |
| | | } |
| | | } |
| | | |
| | | public String getAlbum() { |
| | | return album; |
| | | } |
| | | |
| | | public void setAlbum(String a) { |
| | | if(a != null) { |
| | | this.album = a; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "StorageFile{" + "name=" + name + '}'; |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | int hash = 3; |
| | | return hash; |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object obj) { |
| | | if (this == obj) { |
| | | return true; |
| | | } |
| | | if (obj == null) { |
| | | return false; |
| | | } |
| | | if (getClass() != obj.getClass()) { |
| | | return false; |
| | | } |
| | | final StorageFile other = (StorageFile) obj; |
| | | if (!Objects.equals(this.name, other.name)) { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | } |