Added #toString methods to Resource implementations
This commit is contained in:
parent
7c0d083b12
commit
d7108f60ae
|
@ -109,4 +109,12 @@ public class FileResource extends Resource {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "[" +
|
||||
"file=" + getFile() + "," +
|
||||
"len=" + length() +
|
||||
']';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -74,4 +74,12 @@ public class HeapResource extends Resource {
|
|||
this.arrayRef.set(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "[" +
|
||||
"heap," +
|
||||
"len=" + length() +
|
||||
']';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue