org.openmdx.kernel.text
Class StringBuilders

java.lang.Object
  extended by org.openmdx.kernel.text.StringBuilders

public class StringBuilders
extends Object


Constructor Summary
protected StringBuilders()
          Avoid instantiation
 
Method Summary
static StringBuilder asStringBuilder(CharSequence object)
          Cast an object to a StringBuilder
static StringBuilder newStringBuilder()
          Create a new StringBuilder instance
static StringBuilder newStringBuilder(CharSequence seq)
          Constructs a string buffer that contains the same characters as the specified CharSequence.
static StringBuilder newStringBuilder(int capacity)
          Constructs a string builder with no characters in it and an initial capacity specified by the capacity argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBuilders

protected StringBuilders()
Avoid instantiation

Method Detail

newStringBuilder

public static final StringBuilder newStringBuilder()
Create a new StringBuilder instance


newStringBuilder

public static final StringBuilder newStringBuilder(CharSequence seq)
Constructs a string buffer that contains the same characters as the specified CharSequence.

Parameters:
seq - the sequence to copy

newStringBuilder

public static final StringBuilder newStringBuilder(int capacity)
Constructs a string builder with no characters in it and an initial capacity specified by the capacity argument.

Parameters:
capacity - the initial capacity.
Throws:
NegativeArraySizeException - if the capacity argument is less than 0

asStringBuilder

public static final StringBuilder asStringBuilder(CharSequence object)
Cast an object to a StringBuilder

Parameters:
object - the StringBuilder instance
Returns:
the StringBuilder


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.