Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindprod.fastcat
Class DummyString

    java.lang.Object
      com.mindprod.fastcat.DummyString

    public class DummyString

extends java.lang.Object

Demonstrate how a new efficient concatenating String constructor would work.

Constructor permits more efficient concatenation than StringBuffer or StringBuilder. It uses no intermediate buffers and no intermediate character copying. It might be used to more efficiently implement the + concatenation operator and StringWriter. Why bother? Webservers do almost nothing but concatenate Strings and garbage collection. I have reported this as an RFE to Sun with ID 1620012.

1.0 2009-09-30 - initial release

Since:
  2009-09-30
Version:
  1.0 2009-09-29 - initial release
Author:
  Roedy Green, Canadian Mind Products

Constructor Summary
`DummyString()` Initializes a newly created `String` object so that it represents an empty character sequence.
`DummyString(java.lang.String... pieces)` concatenating String constructor

Method Summary

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DummyString

    public DummyString()

  Initializes a newly created `String` object so that it represents an empty character sequence. Note that use of this constructor is unnecessary since Strings are immutable.

### DummyString

    public DummyString(java.lang.String... pieces)

  concatenating String constructor

  Parameters:
    `pieces` - vararg of Strings to be concatenated to create this new String.

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD