Skip to content

Commit c1ca1f8

Browse files
committed
ICU-22789 Add design option to TODO comment
1 parent 1c59eaf commit c1ca1f8

File tree

1 file changed

+2
-0
lines changed
  • icu4j/main/core/src/main/java/com/ibm/icu/text/segmenter

1 file changed

+2
-0
lines changed

icu4j/main/core/src/main/java/com/ibm/icu/text/segmenter/Segments.java

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ enum IterationDirection {
5454
// 2) make Segment an interface (getSource, getStart, getLimit, getRuleStatus, newSegment), and
5555
// maybe an abstract class that implements the interface, maybe with a default method impl
5656
// for convenience for getting (allocating & returning) the subsequence
57+
// 3) do not link the multiple Segment objects and the single Segments object via a field, and
58+
// instead provide a function on Segments that can convert each Segment into a CharSequence
5759
class Segment {
5860
public final int start;
5961
public final int limit;

0 commit comments

Comments
 (0)