public class OpenStringBuilder extends Object implements Appendable, CharSequence
Constructor and Description |
---|
OpenStringBuilder() |
OpenStringBuilder(char[] arr,
int len) |
OpenStringBuilder(int size) |
Modifier and Type | Method and Description |
---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
int |
capacity() |
char |
charAt(int index) |
void |
flush() |
char[] |
getArray() |
int |
length() |
void |
reserve(int num) |
void |
reset() |
protected void |
resize(int len) |
void |
set(char[] arr,
int end) |
void |
setCharAt(int index,
char ch) |
void |
setLength(int len) |
int |
size() |
CharSequence |
subSequence(int start,
int end) |
char[] |
toCharArray() |
String |
toString() |
void |
unsafeWrite(char b) |
void |
unsafeWrite(char[] b,
int off,
int len) |
void |
unsafeWrite(int b) |
void |
write(char b) |
void |
write(char[] b) |
void |
write(char[] b,
int off,
int len) |
void |
write(int b) |
void |
write(OpenStringBuilder arr) |
void |
write(String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
public OpenStringBuilder()
public OpenStringBuilder(int size)
public OpenStringBuilder(char[] arr, int len)
public void setLength(int len)
public void set(char[] arr, int end)
public char[] getArray()
public int size()
public int length()
length
in interface CharSequence
public int capacity()
public Appendable append(CharSequence csq)
append
in interface Appendable
public Appendable append(CharSequence csq, int start, int end)
append
in interface Appendable
public Appendable append(char c)
append
in interface Appendable
public char charAt(int index)
charAt
in interface CharSequence
public void setCharAt(int index, char ch)
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public void unsafeWrite(char b)
public void unsafeWrite(int b)
public void unsafeWrite(char[] b, int off, int len)
protected void resize(int len)
public void reserve(int num)
public void write(char b)
public void write(int b)
public final void write(char[] b)
public void write(char[] b, int off, int len)
public final void write(OpenStringBuilder arr)
public void write(String s)
public void flush()
public final void reset()
public char[] toCharArray()
public String toString()
toString
in interface CharSequence
toString
in class Object
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.