private static AlignedString createBase(final String base) { final AlignedString d = new AlignedString(); d._first._next = d.new BaseSegment(d._first, d._last, base); d._last._prev = d._first._next; return d; }
public AlignedString(final AlignedString underlying) { _underlying = underlying; _underlying.addChangeListener(this); _first._next = new ObliqueSegment(_first, _last, _underlying.getAnchor(0), _underlying.getAnchor(_underlying.length())); _last._prev = _first._next; }
/** * Get an iterator over the internal data segments. */ @Override public Iterator<DataSegment> iterator() { return new DataSegmentIterator((AbstractDataSegment) getFirst()); }