if (obj == null) return false;
if (obj == this) return true;
if (!(obj instanceof FileInfo)) return false;
FileInfo other = (FileInfo) obj;
if (!Objects.equals(this.getId(), other.getId())) return false;
if (!Objects.equals(this.getFileName(), other.getFileName())) return false;
if (!Objects.equals(this.getContentType(), other.getContentType())) return false;
if (!Objects.equals(this.getLength(), other.getLength())) return false;
if (!Objects.equals(this.getChunkSize(), other.getChunkSize())) return false;
if (!Objects.equals(this.getUploadDate(), other.getUploadDate())) return false;
return true;
}