Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK

## java.lang
Class StringBuffer

Method Summary
`StringBuffer` | `leftShift(Object value)` Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuffer
`String` | `plus(String value)` Appends a String to this StringBuffer
`void` | `putAt(IntRange range, Object value)` Support the range subscript operator for StringBuffer treated as characters within the buffer
`void` | `putAt(EmptyRange range, Object value)` Support the range subscript operator for StringBuffer
`int` | `size()` Provide the standard Groovy `size()` method for `StringBuffer`

Method Detail

### leftShift

    public StringBuffer leftShift(Object value)

  Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuffer.

Parameters:
  `value` - a value to append.
Returns:
  the StringBuffer on which this operation was invoked

### plus

    public String plus(String value)

  Appends a String to this StringBuffer.

Parameters:
  `value` - a String.
Returns:
  a String

### putAt

    public void putAt(IntRange range, Object value)

  Support the range subscript operator for StringBuffer. Index values are treated as characters within the buffer.

Parameters:
  `range` - a Range.
  `value` - the object that's toString() will be inserted.

### putAt

    public void putAt(EmptyRange range, Object value)

  Support the range subscript operator for StringBuffer.

Parameters:
  `range` - a Range.
  `value` - the object that's toString() will be inserted.

### size

    public int size()

  Provide the standard Groovy `size()` method for `StringBuffer`.

Returns:
  the length of the StringBuffer

Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK