@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof ReportBadBlockAction)) { return false; } ReportBadBlockAction other = (ReportBadBlockAction) obj; if (block == null) { if (other.block != null) { return false; } } else if (!block.equals(other.block)) { return false; } if (storageType != other.storageType) { return false; } if (storageUuid == null) { if (other.storageUuid != null) { return false; } } else if (!storageUuid.equals(other.storageUuid)) { return false; } return true; } }
ExtendedBlock block = lBlk.getBlock(); if (!blocks.isLastBlockComplete() && lastBlock != null && lastBlock.getBlock().equals(block)) {
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof ReportBadBlockAction)) { return false; } ReportBadBlockAction other = (ReportBadBlockAction) obj; if (block == null) { if (other.block != null) { return false; } } else if (!block.equals(other.block)) { return false; } if (storageType != other.storageType) { return false; } if (storageUuid == null) { if (other.storageUuid != null) { return false; } } else if (!storageUuid.equals(other.storageUuid)) { return false; } return true; } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof ReportBadBlockAction)) { return false; } ReportBadBlockAction other = (ReportBadBlockAction) obj; if (block == null) { if (other.block != null) { return false; } } else if (!block.equals(other.block)) { return false; } if (storageType != other.storageType) { return false; } if (storageUuid == null) { if (other.storageUuid != null) { return false; } } else if (!storageUuid.equals(other.storageUuid)) { return false; } return true; } }
Iterator<LocatedBlock> newIter = newInfo.getLocatedBlocks().iterator(); while (oldIter.hasNext() && newIter.hasNext()) { if (! oldIter.next().getBlock().equals(newIter.next().getBlock())) { throw new IOException("Blocklist for " + src + " has changed!");
Iterator<LocatedBlock> newIter = newInfo.getLocatedBlocks().iterator(); while (oldIter.hasNext() && newIter.hasNext()) { if (!oldIter.next().getBlock().equals(newIter.next().getBlock())) { throw new IOException("Blocklist for " + src + " has changed!");
Iterator<LocatedBlock> newIter = newInfo.getLocatedBlocks().iterator(); while (oldIter.hasNext() && newIter.hasNext()) { if (! oldIter.next().getBlock().equals(newIter.next().getBlock())) { throw new IOException("Blocklist for " + src + " has changed!");