コード例 #1
0
 @Override
 public int hashCode() {
   int result = fileSize != null ? fileSize.hashCode() : 0;
   result = 31 * result + (dexSize != null ? dexSize.hashCode() : 0);
   result = 31 * result + (arscSize != null ? arscSize.hashCode() : 0);
   return result;
 }
コード例 #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    FileSizeStatistics that = (FileSizeStatistics) o;

    if (fileSize != null ? !fileSize.equals(that.fileSize) : that.fileSize != null) return false;
    if (dexSize != null ? !dexSize.equals(that.dexSize) : that.dexSize != null) return false;
    return !(arscSize != null ? !arscSize.equals(that.arscSize) : that.arscSize != null);
  }