`

Code fragment

 
阅读更多
1. public boolean equals(Object obj) {
        if (obj == this) {
             return true;
        }
        if (obj instanceof EncodedResource) {
             EncodedResource otherRes = (EncodedResource) obj;
             return (this.resource.equals(otherRes.resource) && ObjectUtils.nullSafeEquals(this.encoding, otherRes.encoding));
        }
        return false;
    }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics