/** * peek at the next location * * @return */ @Override public GenomeLoc peekNextLocation() { return (aheadQueue.size() > 0) ? aheadQueue.getFirst().getLocation() : iterator.peekNextLocation(); }
/** * can we flash back to the specified location? * * @param location the location to try and flash back to * @return true if we can, false otherwise */ public boolean canFlashBackTo(GenomeLoc location) { GenomeLoc farthestBack = (pastQueue.size() > 0) ? pastQueue.getFirst().getLocation() : iterator.peekNextLocation(); return (!farthestBack.isPast(location)); }