예제 #1
0
  @Override
  public boolean equals(Object o) {
    if (!(o instanceof BitmapMemoryCacheKey)) {
      return false;
    }

    BitmapMemoryCacheKey otherKey = (BitmapMemoryCacheKey) o;
    return mHash == otherKey.mHash
        && mSourceString.equals(otherKey.mSourceString)
        && Objects.equal(this.mResizeOptions, otherKey.mResizeOptions)
        && mAutoRotated == otherKey.mAutoRotated
        && Objects.equal(mImageDecodeOptions, otherKey.mImageDecodeOptions);
  }
예제 #2
0
 @Override
 public String toString() {
   return Objects.toStringHelper(this)
       .add("holder", mDraweeHolder != null ? mDraweeHolder.toString() : "<no holder set>")
       .toString();
 }