@Deprecated public class StringBuilderPool extends SimplePool<StringBuilder>
_avail, _name, _out, _size
Constructor and Description |
---|
StringBuilderPool(String name,
int maxToKeep)
Deprecated.
Initializes a pool of a given number of StringBuilders, each of a certain size.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
createNew()
Deprecated.
Create a new string builder.
|
protected long |
memSize(StringBuilder buf)
Deprecated.
|
boolean |
ok(StringBuilder buf)
Deprecated.
Checks that the given string builder is within the size limit.
|
cleanup, close, done, get, get, getAvailable, getInUse, getMaxSize, getName, getTotal, pick, remove, toString
public StringBuilderPool(String name, int maxToKeep)
maxToKeep
- the number of string builders in the poolpublic StringBuilder createNew()
createNew
in class SimplePool<StringBuilder>
public boolean ok(StringBuilder buf)
buf
- the builder to checkprotected long memSize(StringBuilder buf)