MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / StringBuffer

Class StringBuffer

Ports/CLDC11/src/java/lang/StringBuffer.java:34–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32/// Every string buffer has a capacity. As long as the length of the character sequence contained in the string buffer does not exceed the capacity, it is not necessary to allocate a new internal buffer array. If the internal buffer overflows, it is automatically made larger.
33/// Since: JDK1.0, CLDC 1.0 See Also:ByteArrayOutputStream, String
34public final class StringBuffer implements CharSequence {
35 /// Constructs a string buffer with no characters in it and an initial capacity of 16 characters.
36 public StringBuffer(){
37 //TODO codavaj!!
38 }
39
40 /// Constructs a string buffer with no characters in it and an initial capacity specified by the length argument.
41 /// length - the initial capacity.
42 /// - if the length argument is less than 0.
43 public StringBuffer(int length){
44 //TODO codavaj!!
45 }
46
47 /// Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string. The initial capacity of the string buffer is 16 plus the length of the string argument.
48 /// str - the initial contents of the buffer.
49 public StringBuffer(java.lang.String str){
50 //TODO codavaj!!
51 }
52
53 /// Appends the string representation of the boolean argument to the string buffer.
54 /// The argument is converted to a string as if by the method String.valueOf, and the characters of that string are then appended to this string buffer.
55 public java.lang.StringBuffer append(boolean b){
56 return null; //TODO codavaj!!
57 }
58
59 /// Appends the string representation of the char argument to this string buffer.
60 /// The argument is appended to the contents of this string buffer. The length of this string buffer increases by 1.
61 /// The overall effect is exactly as if the argument were converted to a string by the method String.valueOf(char) and the character in that string were then appended to this StringBuffer object.
62 public java.lang.StringBuffer append(char c){
63 return null; //TODO codavaj!!
64 }
65
66 java.lang.StringBuffer append(char[] str){
67 return null; //TODO codavaj!!
68 }
69
70 /// Appends the string representation of a subarray of the char array argument to this string buffer.
71 /// Characters of the character array str, starting at index offset, are appended, in order, to the contents of this string buffer. The length of this string buffer increases by the value of len.
72 /// The overall effect is exactly as if the arguments were converted to a string by the method String.valueOf(char[],int,int) and the characters of that string were then appended to this StringBuffer object.
73 public java.lang.StringBuffer append(char[] str, int offset, int len){
74 return null; //TODO codavaj!!
75 }
76
77 /// Appends the string representation of the double argument to this string buffer.
78 /// The argument is converted to a string as if by the method String.valueOf, and the characters of that string are then appended to this string buffer.
79 public java.lang.StringBuffer append(double d){
80 return null; //TODO codavaj!!
81 }
82
83 /// Appends the string representation of the float argument to this string buffer.
84 /// The argument is converted to a string as if by the method String.valueOf, and the characters of that string are then appended to this string buffer.
85 public java.lang.StringBuffer append(float f){
86 return null; //TODO codavaj!!
87 }
88
89 /// Appends the string representation of the int argument to this string buffer.
90 /// The argument is converted to a string as if by the method String.valueOf, and the characters of that string are then appended to this string buffer.
91 public java.lang.StringBuffer append(int i){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected