United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8012665 : CharSequence.chars, CharSequence.codePoints

Details
Type:
Sub-task
Submit Date:
2013-04-19
Status:
Closed
Updated Date:
2013-06-14
Project Name:
JDK
Resolved Date:
2013-05-01
Component:
core-libs
OS:
Sub-Component:
java.util.stream
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
                                    

Comments
    /**
     * Returns a stream of {@code int} zero-extending the {@code char} values
     * from this sequence.  Any char which maps to a <a
     * href="{@docRoot}/java/lang/Character.html#unicode">surrogate code
     * point</a> is passed through uninterpreted.
     *
     * <p>If the sequence is mutated while the stream is being read, the
     * result is undefined.
     *
     * @return an IntStream of char values from this sequence
     * @since 1.8
     */
    public default IntStream chars() {}

    /**
     * Returns a stream of code point values from this sequence.  Any surrogate
     * pairs encountered in the sequence are combined as if by {@linkplain
     * Character#toCodePoint Character.toCodePoint} and the result is passed
     * to the stream. Any other code units, including ordinary BMP characters,
     * unpaired surrogates, and undefined code units, are zero-extended to
     * {@code int} values which are then passed to the stream.
     *
     * <p>If the sequence is mutated while the stream is being read, the result
     * is undefined.
     *
     * @return an IntStream of Unicode code points from this sequence
     * @since 1.8
     */
    public default IntStream codePoints() {}
                                     
2013-04-23
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/c6aef650e615
User:  lana
Date:  2013-05-07 18:40:01 +0000

                                     
2013-05-07
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c6aef650e615
User:  mduigou
Date:  2013-05-01 15:37:32 +0000

                                     
2013-05-01



Hardware and Software, Engineered to Work Together