[Add] 增加toString方法的覆写, 以提供快速输出对象详情的功能;

This commit is contained in:
LamGC 2020-04-14 10:39:17 +08:00
parent 5a50977be5
commit e6c0633a5e

View File

@ -54,4 +54,13 @@ public class ImageCacheObject implements EventObject {
public int hashCode() {
return Objects.hash(imageCache, illustId, downloadLink, storeFile);
}
@Override
public String toString() {
return "ImageCacheObject@" + Integer.toHexString(hashCode()) + "{" +
"illustId=" + illustId +
", downloadLink='" + downloadLink + '\'' +
", storeFile=" + storeFile +
'}';
}
}