mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Add] 增加toString方法的覆写, 以提供快速输出对象详情的功能;
This commit is contained in:
parent
5a50977be5
commit
e6c0633a5e
@ -54,4 +54,13 @@ public class ImageCacheObject implements EventObject {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(imageCache, illustId, downloadLink, storeFile);
|
return Objects.hash(imageCache, illustId, downloadLink, storeFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ImageCacheObject@" + Integer.toHexString(hashCode()) + "{" +
|
||||||
|
"illustId=" + illustId +
|
||||||
|
", downloadLink='" + downloadLink + '\'' +
|
||||||
|
", storeFile=" + storeFile +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user