io.takari.maven.plugins.compile.jdt.ArtifactFile Maven / Gradle / Ivy
package io.takari.maven.plugins.compile.jdt;
import java.io.File;
import java.io.Serializable;
class ArtifactFile implements Serializable {
private static final long serialVersionUID = 1L;
final File file;
ArtifactFile(File file) {
this.file = file;
}
@Override
public int hashCode() {
return file.hashCode();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ArtifactFile)) {
return false;
}
ArtifactFile other = (ArtifactFile) obj;
return file.equals(other.file);
}
@Override
public String toString() {
return file.toString();
}
}