Skip to content

Commit

Permalink
Added #toString methods to Resource implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
ok2c committed Jan 8, 2024
1 parent fb46d60 commit e4d670c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,12 @@ public void dispose() {
}
}

@Override
public String toString() {
return "[" +
"file=" + getFile() + "," +
"len=" + length() +
']';
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,12 @@ public void dispose() {
this.arrayRef.set(null);
}

@Override
public String toString() {
return "[" +
"heap," +
"len=" + length() +
']';
}

}

0 comments on commit e4d670c

Please sign in to comment.