@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (!(o instanceof FileMetadata)) {
      return false;
    }

    FileMetadata that = (FileMetadata) o;

    return new EqualsBuilder()
        .append(getCreationTimeMillis(), that.getCreationTimeMillis())
        .append(getLastModifiedTimeMillis(), that.getLastModifiedTimeMillis())
        .append(getSize(), that.getSize())
        .append(getOwner(), that.getOwner())
        .append(getGroup(), that.getGroup())
        .append(getPermissions(), that.getPermissions())
        .isEquals();
  }
Representation of metadata associated with a File.
samza-core/src/main/java/org/apache/samza/storage/blobstore/index/FileMetadata.java