nashorn/src/jdk/nashorn/internal/runtime/ConsString.java
changeset 16226 0e4f37e6cc40
parent 16151 97c1e756ae1e
child 21686 5c6946f97d6f
equal deleted inserted replaced
16225:81d58c2b9fcf 16226:0e4f37e6cc40
    31 /**
    31 /**
    32  * This class represents a string composed of two parts which may themselves be
    32  * This class represents a string composed of two parts which may themselves be
    33  * instances of <tt>ConsString</tt> or {@link String}. Copying of characters to
    33  * instances of <tt>ConsString</tt> or {@link String}. Copying of characters to
    34  * a proper string is delayed until it becomes necessary.
    34  * a proper string is delayed until it becomes necessary.
    35  */
    35  */
    36 public class ConsString implements CharSequence {
    36 public final class ConsString implements CharSequence {
    37 
    37 
    38     private CharSequence left, right;
    38     private CharSequence left, right;
    39     final private int length;
    39     final private int length;
    40     private boolean flat = false;
    40     private boolean flat = false;
    41 
    41