Added #toString methods to Resource implementations

This commit is contained in:
Oleg Kalnichevski 2024-01-04 09:28:53 +01:00
parent 7c0d083b12
commit d7108f60ae
2 changed files with 16 additions and 0 deletions

View File

@ -109,4 +109,12 @@ public class FileResource extends Resource {
}
}
@Override
public String toString() {
return "[" +
"file=" + getFile() + "," +
"len=" + length() +
']';
}
}

View File

@ -74,4 +74,12 @@ public class HeapResource extends Resource {
this.arrayRef.set(null);
}
@Override
public String toString() {
return "[" +
"heap," +
"len=" + length() +
']';
}
}