| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
final class StringBuilder(initCapacity : Int, private initValue : String)
extends
(Int) => Char with Proxy
A mutable sequence of characters. This class provides an API compatible
with java.lang.StringBuilder, but with no guarantee of
synchronization.
- Stephane Micheloud - 1.0
def this(str : String)
|
def this
Constructs a string builder with no characters in it and an
initial capacity of 16 characters
|
def this(capacity : Int)
Constructs a string builder with no characters in it and an
initial capacity specified by the
capacity argument
[details]
|
def this(initCapacity : Int, initValue : String)
|
| capacity |
def capacity
Returns the current capacity
[details]
The capacity is the amount of storage
available for newly inserted characters, beyond which an allocation
will occur.
|
Int | |
| length |
def length
|
Int | |
| self |
def self
|
StringBuilder | |
| toArray |
def toArray
|
Array[Char] |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| andThen |
def andThen[A](g : (R) => A)
(f andThen g)(x) == g(f(x))
|
(T1) => A | Function1 |
| append |
def append(x : Array[Char])
Appends the string representation of the The characters of the array argument are appended, in order, to the contents of this sequence. The length of this sequence increases by the length of the argument.
|
StringBuilder | |
| append |
def append(x : Float)
|
StringBuilder | |
| append |
def append(x : Any)
Appends the string representation of the
The argument is converted to a string as if by the method
|
StringBuilder | |
| append |
def append(x : Char)
|
StringBuilder | |
| append |
def append(sb : StringBuilder)
Appends the specified string builder to this sequence
|
StringBuilder | |
| append |
def append(x : Int)
|
StringBuilder | |
| append |
def append(x : Boolean)
Appends the string representation of the
The argument is converted to a string as if by the method
|
StringBuilder | |
| append |
def append(x : Seq[Char])
Appends the string representation of the The characters of the sequence argument are appended, in order, to the contents of this sequence. The length of this sequence increases by the length of the argument.
|
StringBuilder | |
| append |
def append(x : Long)
|
StringBuilder | |
| append |
def append(x : Byte)
|
StringBuilder | |
| append |
def append(s : String)
Appends the specified string to this character sequence
[details]
|
StringBuilder | |
| append |
def append(x : Short)
|
StringBuilder | |
| append |
def append(x : Double)
|
StringBuilder | |
| append |
def append(x : Array[Char], offset : Int, len : Int)
Appends the string representation of a subarray of the
Characters of the
|
StringBuilder | |
| apply |
def apply(i : Int)
Same as
charAt
|
Char | |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| capacity_= |
def capacity_=(n : Int)
Same as
ensureCapacity
|
Unit | |
| charAt |
def charAt(index : Int)
Returns the
The index argument must be greater than or equal to
|
Char | |
| clone |
protected def clone
|
Object | AnyRef |
| compose |
def compose[A](g : (A) => T1)
(f compose g)(x) == f(g(x))
|
(A) => R | Function1 |
| delete |
def delete(start : Int, end : Int)
Removes the characters in a substring of this sequence
[details]
The substring begins at the specified
start and extends to
the character at index end - 1 or to the end of the
sequence if no such character exists. If
start is equal to end, no changes are made.
|
StringBuilder | |
| deleteCharAt |
def deleteCharAt(index : Int)
Removes the
|
StringBuilder | |
| ensureCapacity |
def ensureCapacity(n : Int)
Ensures that the capacity is at least equal to the specified minimum. If the current capacity is less than the argument, then a new internal array is allocated with greater capacity. The new capacity is the larger of: [details]
If the
|
Unit | |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
override def equals(that : Any)
|
Boolean | Proxy |
| finalize |
protected def finalize
|
Unit | AnyRef |
| getClass |
final def getClass
|
Class[Any] | AnyRef |
| hashCode |
override def hashCode
|
Int | Proxy |
| indexOf |
def indexOf(str : String, fromIndex : Int)
Returns the index within this string of the first occurrence of the
specified substring, starting at the specified index. The integer
returned is the smallest value
k >= Math.min(fromIndex, str.length()) &&
this.toString().startsWith(str, k)
If no such value of
|
Int | |
| indexOf |
def indexOf(str : String)
Returns the index within this string of the first occurrence of the specified substring. The integer returned is the smallest value k such that: [details]
is
|
Int | |
| insert |
def insert(at : Int, x : Array[Char])
Inserts the string representation of the
Char array
argument into this sequence
[details]
|
StringBuilder | |
| insert |
def insert(at : Int, x : Double)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(index : Int, str : Array[Char], offset : Int, len : Int)
Inserts the string representation of a subarray of the
str
array argument into this sequence
[details]
The subarray begins at the specified
offset and extends len chars.
The characters of the subarray are inserted into this sequence at
the position indicated by index. The length of this
sequence increases by len Chars.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Short)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : String)
Inserts the string into this character sequence
[details]
|
StringBuilder | |
| insert |
def insert(at : Int, x : Long)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Byte)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Seq[Char])
Inserts the string representation of the
Char sequence
argument into this sequence
[details]
|
StringBuilder | |
| insert |
def insert(at : Int, x : Float)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Char)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Any)
Inserts the string representation of the
The second argument is converted to a string as if by the method
The offset argument must be greater than or equal to
|
StringBuilder | |
| insert |
def insert(at : Int, x : Int)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| insert |
def insert(at : Int, x : Boolean)
Inserts the string representation of the The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.
|
StringBuilder | |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| lastIndexOf |
def lastIndexOf(str : String, fromIndex : Int)
Returns the index within this string of the last occurrence of the
specified substring. The integer returned is the largest value
k <= Math.min(fromIndex, str.length()) &&
this.toString().startsWith(str, k)
If no such value of
|
Int | |
| lastIndexOf |
def lastIndexOf(str : String)
Returns the index within this string of the rightmost occurrence
of the specified substring. The rightmost empty string "" is
considered to occur at the index value
is true.
|
Int | |
| length_= |
def length_=(n : Int)
|
Unit | |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| replace |
def replace(start : Int, end : Int, str : String)
Replaces the characters in a substring of this sequence
with characters in the specified
String
[details]
The substring
begins at the specified
start and extends to the character
at index end - 1 or to the end of the sequence if no such
character exists. First the characters in the substring are removed and
then the specified String is inserted at start.
|
Unit | |
| reverse |
def reverse
Causes this character sequence to be replaced by the reverse of the sequence. If there are any surrogate pairs included in the sequence, these are treated as single characters for the reverse operation. Thus, the order of the high-low surrogates is never reversed. [details]
Let n be the character length of this character sequence
(not the length in
|
StringBuilder | |
| setCharAt |
def setCharAt(index : Int, ch : Char)
The character at the specified index is set to
The index argument must be greater than or equal to
|
Unit | |
| setLength |
def setLength(n : Int)
Sets the length of the character sequence
[details]
|
Unit | |
| substring |
def substring(start : Int)
Returns a new
String that contains a subsequence of
characters currently contained in this character sequence
[details]
The
substring begins at the specified index and extends to the end of
this sequence.
|
String | |
| substring |
def substring(start : Int, end : Int)
Returns a new
String that contains a subsequence of
characters currently contained in this sequence
[details]
The
substring begins at the specified
start and
extends to the character at index end - 1.
|
String | |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString |
override def toString
Returns a string representing the data in this sequence
[details]
A new
String object is allocated and initialized to
contain the character sequence currently represented by this
object. This String is then returned. Subsequent
changes to this sequence do not affect the contents of the
String.
|
String | |
| update |
def update(i : Int, c : Char)
Same as
setCharAt
|
Unit | |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |