Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343110 Add getChars(int, int, char[], int) to CharSequence and CharBuffer
  3. JDK-8354468

Release Note: New getChars(int, int, char[], int) Method in CharSequence and CharBuffer

XMLWordPrintable

    • In Review
    • 25

      The absolute bulk get method `getChars(int, int, char[], int)` has been added to read from any `CharSequence` into a provided character array. This method is more efficient than a loop over all characters. `String`, `StringBuilder` and `StringBuffer` are examples of `CharSequence` which already provided this method before. `CharBuffer` is an example of a `CharSequence` which now benefits from this unified API. Callers hence can now rely on unified fast-path access, and can abstain from class-specific optimizations.

            mkarg Markus Karg
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: