KetraTerm
API · DevelopmentAll versions

SwingShellSuggestionMatchRanges

Immutable ordered UTF-16 match ranges for a Swing suggestion display string.

The representation is a packed primitive array owned by this value object. Public factories defensively copy input, while indexed access lets the popup paint ranges without allocating on each frame.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Number of [start, end) matched ranges.

Functions

Link copied to clipboard

Returns an independent packed [start0, end0, ...] interoperability copy.

Link copied to clipboard
fun endOffset(index: Int): Int

Returns the exclusive UTF-16 end offset of range index.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns whether this set has no ranges.

Link copied to clipboard
fun startOffset(index: Int): Int

Returns the inclusive UTF-16 start offset of range index.

Link copied to clipboard
open override fun toString(): String