hash = (53 * hash) + ttlAction_; if (hasUfsFingerprint()) { hash = (37 * hash) + UFS_FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getUfsFingerprint().hashCode();
result = result && ttlAction_ == other.ttlAction_; result = result && (hasUfsFingerprint() == other.hasUfsFingerprint()); if (hasUfsFingerprint()) { result = result && getUfsFingerprint() .equals(other.getUfsFingerprint());
setTtlAction(other.getTtlAction()); if (other.hasUfsFingerprint()) { bitField0_ |= 0x00020000; ufsFingerprint_ = other.ufsFingerprint_;
setTtlAction(other.getTtlAction()); if (other.hasUfsFingerprint()) { bitField0_ |= 0x00020000; ufsFingerprint_ = other.ufsFingerprint_;
/** * Converts the entry to an {@link InodeFile}. * * @param entry the entry to convert * @return the {@link InodeFile} representation */ public static InodeFile fromJournalEntry(InodeFileEntry entry) { // If journal entry has no mode set, set default mode for backwards-compatibility. short mode = entry.hasMode() ? (short) entry.getMode() : Constants.DEFAULT_FILE_SYSTEM_MODE; return new InodeFile(BlockId.getContainerId(entry.getId())) .setName(entry.getName()) .setBlockIds(entry.getBlocksList()) .setBlockSizeBytes(entry.getBlockSizeBytes()) .setCacheable(entry.getCacheable()) .setCompleted(entry.getCompleted()) .setCreationTimeMs(entry.getCreationTimeMs()) .setLastModificationTimeMs(entry.getLastModificationTimeMs(), true) .setLength(entry.getLength()) .setParentId(entry.getParentId()) .setPersistenceState(PersistenceState.valueOf(entry.getPersistenceState())) .setPinned(entry.getPinned()) .setTtl(entry.getTtl()) .setTtlAction((ProtobufUtils.fromProtobuf(entry.getTtlAction()))) .setOwner(entry.getOwner()) .setGroup(entry.getGroup()) .setMode(mode) .setUfsFingerprint(entry.hasUfsFingerprint() ? entry.getUfsFingerprint() : Constants.INVALID_UFS_FINGERPRINT); }
.setTtl(entry.getTtl()) .setTtlAction((ProtobufUtils.fromProtobuf(entry.getTtlAction()))) .setUfsFingerprint(entry.hasUfsFingerprint() ? entry.getUfsFingerprint() : Constants.INVALID_UFS_FINGERPRINT); if (entry.hasAcl()) {