Interface CharClass.RunReplacement

Enclosing class:
CharClass
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface private static interface CharClass.RunReplacement
Chooses the code point that replaces one maximal run of member code points.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    replacementFor(int runStart, int runEnd)
    Returns the replacement for one member run.
  • Method Details

    • replacementFor

      int replacementFor(int runStart, int runEnd)
      Returns the replacement for one member run.
      Parameters:
      runStart - The index where the member run starts.
      runEnd - The index of the first code point after the run.
      Returns:
      The code point to emit for the run.