SegmentArrayWithData () { final SegmentArrayWithData sa = new SegmentArrayWithData(createStorage()); sa.mySegmentCount = mySegmentCount; sa.myStarts = myStarts.clone(); sa.myEnds = myEnds.clone(); sa.myStorage = myStorage.copy(); return sa; }