/** * Rewrites the value at the current cursor position. */ public LineRange _set(final LineRange v) { Cursor c = copy(); LineRange old = c.next(); int oldSize = c.pos - pos; int newSize = sizeOf(v); adjust(newSize - oldSize); write(v); return old; }
public LineRange previous() { prev(); prev(); return copy().next(); }
/** * Removes the current value at the cursor position. */ public LineRange delete() { Cursor c = copy(); LineRange old = c.next(); adjust(pos - c.pos); return old; }
/** * Rewrites the value at the current cursor position. */ public LineRange _set(final LineRange v) { Cursor c = copy(); LineRange old = c.next(); int oldSize = c.pos - pos; int newSize = sizeOf(v); adjust(newSize - oldSize); write(v); return old; }
public LineRange previous() { prev(); prev(); return copy().next(); }
/** * Removes the current value at the cursor position. */ public LineRange delete() { Cursor c = copy(); LineRange old = c.next(); adjust(pos - c.pos); return old; }