size += 1 * getBlocksList().size();
hash = (53 * hash) + getBlocksList().hashCode();
== other.getCacheable()); result = result && getBlocksList() .equals(other.getBlocksList()); result = result && (hasTtl() == other.hasTtl()); if (hasTtl()) {
size += 1 * getBlocksList().size();
/** * 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); }
.setBlockIds(entry.getBlocksList()) .setBlockSizeBytes(entry.getBlockSizeBytes()) .setCacheable(entry.getCacheable())