/** Returns true if this buffer contains the record at the given index, false otherwise */ public boolean contains(final SamRecordWithOrdinal samRecordWithOrdinal) { return (null != getBlock(samRecordWithOrdinal)); }
/** Returns true if this buffer contains the record at the given index, false otherwise */ public boolean contains(final SamRecordWithOrdinal samRecordWithOrdinal) { return (null != getBlock(samRecordWithOrdinal)); }
/** * Mark the current samRecordWithOrdinal as having been examined. * * @param samRecordWithOrdinal The samRecordWithOrdinal to be marked * @param resultState Boolean flag indicating the result of the examination of this record. * @throws SAMException if the provided recordIndex is not found within the SamRecordTrackingBuffer */ public void setResultState(final SamRecordWithOrdinal samRecordWithOrdinal, final boolean resultState) { final BufferBlock block = getBlock(samRecordWithOrdinal); if (null == block) { throw new SAMException("Attempted to set examined information on a samRecordWithOrdinal whose index is not found " + "in the SamRecordTrackingBuffer. recordIndex: " + samRecordWithOrdinal.getRecordOrdinal()); } block.setResultState(samRecordWithOrdinal, resultState); }
/** * Mark the current samRecordWithOrdinal as having been examined. * * @param samRecordWithOrdinal The samRecordWithOrdinal to be marked * @param resultState Boolean flag indicating the result of the examination of this record. * @throws SAMException if the provided recordIndex is not found within the SamRecordTrackingBuffer */ public void setResultState(final SamRecordWithOrdinal samRecordWithOrdinal, final boolean resultState) { final BufferBlock block = getBlock(samRecordWithOrdinal); if (null == block) { throw new SAMException("Attempted to set examined information on a samRecordWithOrdinal whose index is not found " + "in the SamRecordTrackingBuffer. recordIndex: " + samRecordWithOrdinal.getRecordOrdinal()); } block.setResultState(samRecordWithOrdinal, resultState); }