mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add copy method to SegmentArrayWithData for on-air
(cherry picked from commit e3476cb)
This commit is contained in:
@@ -120,5 +120,13 @@ public class SegmentArrayWithData extends SegmentArray {
|
||||
return newArray;
|
||||
}
|
||||
|
||||
public SegmentArrayWithData copy() {
|
||||
final SegmentArrayWithData sa = new SegmentArrayWithData();
|
||||
sa.mySegmentCount = this.mySegmentCount;
|
||||
sa.myStarts = this.myStarts.clone();
|
||||
sa.myEnds = this.myEnds.clone();
|
||||
sa.myData = this.myData.clone();
|
||||
return sa;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user