Package com.liferay.portal.kernel.util
Class StringBundler
Object
com.liferay.portal.kernel.util.StringBundler
- All Implemented Interfaces:
Serializable
See https://issues.liferay.com/browse/LPS-6072.
- Author:
- Shuyang Zhou, Brian Wing Shun Chan, Preston Crary
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringBundler
(int initialCapacity) StringBundler
(String[] stringArray) StringBundler
(String[] stringArray, int extraSpace) -
Method Summary
Modifier and TypeMethodDescriptionappend
(boolean b) append
(char c) append
(char[] chars) append
(double d) append
(float f) append
(int i) append
(long l) append
(StringBundler sb) int
capacity()
static String
protected void
expandCapacity
(int newCapacity) String[]
int
index()
int
length()
void
setIndex
(int newIndex) void
setStringAt
(String s, int index) stringAt
(int index) toString()
void
-
Constructor Details
-
StringBundler
public StringBundler() -
StringBundler
public StringBundler(int initialCapacity) -
StringBundler
-
StringBundler
-
StringBundler
-
-
Method Details
-
concat
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
capacity
public int capacity() -
getStrings
-
index
public int index() -
length
public int length() -
setIndex
public void setIndex(int newIndex) -
setStringAt
-
stringAt
-
toString
-
writeTo
- Throws:
IOException
-
expandCapacity
protected void expandCapacity(int newCapacity)
-