Skip to content

Commit

Permalink
add toString
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Oct 31, 2023
1 parent bfa2863 commit 5561266
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,22 @@ public int hashCode() {
return Objects.hash(snapshotState, version, startTimeMillis, endTimeMillis, slmPolicy);
}

@Override
public String toString() {
return "SnapshotDetails{"
+ "snapshotState="
+ snapshotState
+ ", version="
+ version
+ ", startTimeMillis="
+ startTimeMillis
+ ", endTimeMillis="
+ endTimeMillis
+ ", slmPolicy='"
+ slmPolicy
+ "'}";
}

public static SnapshotDetails fromSnapshotInfo(SnapshotInfo snapshotInfo) {
return new SnapshotDetails(
snapshotInfo.state(),
Expand Down

0 comments on commit 5561266

Please sign in to comment.