public void ensureRange(final int start, final int length) { if (start < position) throw new RuntimeException("Cannot move the window backwards: " + start); if (start > position || start + length > position + bases.length) moveForwardTo(start); }
public void ensure(final int start, final int end) { if (end - start > bases.length) throw new RuntimeException("Window is too small for start " + start + " end " + end); if (position < start) moveForwardTo(start); }
public void ensureRange(final int start, final int length) { if (start < position) throw new RuntimeException("Cannot move the window backwards: " + start); if (start + length > position + bases.length) moveForwardTo(start); }
public void ensure(final int start, final int end) { if (end - start > bases.length) throw new RuntimeException("Window is too small for start " + start + " end " + end); if (position < start) moveForwardTo(start); }
public void ensureRange(final int start, final int length) { if (start < position) throw new RuntimeException("Cannot move the window backwards: " + start); if (start > position || start + length > position + bases.length) moveForwardTo(start); }
public void ensure(final int start, final int end) { if (end - start > bases.length) throw new RuntimeException("Window is too small for start " + start + " end " + end); if (position < start) moveForwardTo(start); }