/** * Creates an instance of the <code>BlockEntry</code> class with the specified id and search mode. * * @param id * A <code>String</code> which represents the ID of the block. * @param searchMode * A {@link BlockSearchMode} value which represents the block search mode. */ public BlockEntry(final String id, final BlockSearchMode searchMode) { this.setId(id); this.searchMode = searchMode; }
/** * Creates an instance of the <code>BlockEntry</code> class with the specified id and default search mode * {@link BlockSearchMode#LATEST}. * * @param id * A <code>String</code> which represents the ID of the block. */ public BlockEntry(final String id) { this.setId(id); this.searchMode = BlockSearchMode.LATEST; }
/** * Creates an instance of the <code>BlockEntry</code> class with the specified id and default search mode * {@link BlockSearchMode#LATEST}. * * @param id * A <code>String</code> which represents the ID of the block. */ public BlockEntry(final String id) { this.setId(id); this.searchMode = BlockSearchMode.LATEST; }
/** * Creates an instance of the <code>BlockEntry</code> class with the specified id and search mode. * * @param id * A <code>String</code> which represents the ID of the block. * @param searchMode * A {@link BlockSearchMode} value which represents the block search mode. */ public BlockEntry(final String id, final BlockSearchMode searchMode) { this.setId(id); this.searchMode = searchMode; }
newBlock.setId(blockId); newBlock.setSearchMode(BlockSearchMode.LATEST); newBlock.setSize(maxSegmentOffsetEnd - maxSegmentOffsetBegin);