class SnapshotMetadata {

  @Override
  public boolean equals(@Nullable Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof SnapshotMetadata)) {
      return false;
    }
    SnapshotMetadata other = (SnapshotMetadata) obj;
    return hasPendingWrites == other.hasPendingWrites && isFromCache == other.isFromCache;
  }

    SnapshotMetadata(boolean hasPendingWrites, boolean isFromCache);

}