![JAR search and dependency download from the Maven repository](/logo.png)
org.bff.javampd.art.MPDArtwork Maven / Gradle / Ivy
package org.bff.javampd.art;
import java.util.Objects;
public class MPDArtwork {
private String name;
private String path;
private byte[] bytes;
public MPDArtwork(String name, String path) {
this.name = name;
this.path = path;
}
public String getName() {
return name;
}
public String getPath() {
return path;
}
public byte[] getBytes() {
return bytes;
}
public void setBytes(byte[] bytes) {
this.bytes = bytes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof MPDArtwork)) {
return false;
}
MPDArtwork artwork = (MPDArtwork) o;
return Objects.equals(this.path, artwork.path);
}
@Override
public int hashCode() {
return path != null ? path.hashCode() : 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy