in src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java [494:533]
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
final ZipArchiveEntry other = (ZipArchiveEntry) obj;
final String myName = getName();
final String otherName = other.getName();
if (!Objects.equals(myName, otherName)) {
return false;
}
String myComment = getComment();
String otherComment = other.getComment();
if (myComment == null) {
myComment = "";
}
if (otherComment == null) {
otherComment = "";
}
return Objects.equals(getLastModifiedTime(), other.getLastModifiedTime())
&& Objects.equals(getLastAccessTime(), other.getLastAccessTime())
&& Objects.equals(getCreationTime(), other.getCreationTime())
&& myComment.equals(otherComment)
&& getInternalAttributes() == other.getInternalAttributes()
&& getPlatform() == other.getPlatform()
&& getExternalAttributes() == other.getExternalAttributes()
&& getMethod() == other.getMethod()
&& getSize() == other.getSize()
&& getCrc() == other.getCrc()
&& getCompressedSize() == other.getCompressedSize()
&& Arrays.equals(getCentralDirectoryExtra(),
other.getCentralDirectoryExtra())
&& Arrays.equals(getLocalFileDataExtra(),
other.getLocalFileDataExtra())
&& localHeaderOffset == other.localHeaderOffset
&& dataOffset == other.dataOffset
&& gpb.equals(other.gpb);
}