Module :
java.base - Package :
java.lang
Version documentée : Java SE 17
Classe « StringBuffer »
Informations générales
Héritage
java.lang.Object
java.lang.AbstractStringBuilder
java.lang.StringBuffer
Interfaces implémentées
java.io.Serializable
java.lang.CharSequence
java.lang.Comparable<java.lang.StringBuffer>
Définition
public final class StringBuffer extends java.lang.AbstractStringBuilder
implements java.io.Serializable,
java.lang.CharSequence,
java.lang.Comparable<java.lang.StringBuffer>
Description
A venir.
Liste des attributs
Tous les attributs
Attributs d'instance
Attributs statiques
Attributs dépréciés
Liste des constructeurs
Constructeurs
Constructeurs dépréciés
StringBuffer() |
|
StringBuffer( CharSequence seq ) |
|
StringBuffer( String str ) |
|
StringBuffer( int capacity ) |
|
Liste des propriétés (getters/setters)
Propriétés
Propriétés dépréciées
public synchronized |
int |
length |
-/W |
Propriétés héritées de la classe java.lang.AbstractStringBuilder
length
Propriétés héritées de la classe java.lang.Object
class
Liste des méthodes
Toutes les méthodes
Méthodes d'instance
Méthodes statiques
Méthodes concrètes
Méthodes abstraites
Méthodes dépréciées
public synchronized |
StringBuffer |
append( int i ) |
|
public synchronized |
StringBuffer |
append( long lng ) |
|
public synchronized |
StringBuffer |
append( float f ) |
|
public synchronized |
StringBuffer |
append( char[] str ) |
|
public synchronized |
StringBuffer |
append( char[] str, int offset, int len ) |
|
public synchronized |
StringBuffer |
append( boolean b ) |
|
public synchronized |
StringBuffer |
append( char c ) |
|
public synchronized |
StringBuffer |
append( double d ) |
|
public synchronized |
StringBuffer |
append( String str ) |
|
public synchronized |
StringBuffer |
append( StringBuffer sb ) |
|
public synchronized |
StringBuffer |
append( CharSequence s, int start, int end ) |
|
public synchronized |
StringBuffer |
append( Object obj ) |
|
public synchronized |
StringBuffer |
append( CharSequence s ) |
|
public synchronized |
StringBuffer |
appendCodePoint( int codePoint ) |
|
public synchronized |
int |
capacity() |
|
public synchronized |
char |
charAt( int index ) |
|
public synchronized |
int |
codePointAt( int index ) |
|
public synchronized |
int |
codePointBefore( int index ) |
|
public synchronized |
int |
codePointCount( int beginIndex, int endIndex ) |
|
public synchronized |
int |
compareTo( StringBuffer another ) |
|
public synchronized |
StringBuffer |
delete( int start, int end ) |
|
public synchronized |
StringBuffer |
deleteCharAt( int index ) |
|
public synchronized |
void |
ensureCapacity( int minimumCapacity ) |
|
public synchronized |
void |
getChars( int srcBegin, int srcEnd, char[] dst, int dstBegin ) |
|
public |
int |
indexOf( String str ) |
|
public synchronized |
int |
indexOf( String str, int fromIndex ) |
|
public synchronized |
StringBuffer |
insert( int index, char[] str, int offset, int len ) |
|
public |
StringBuffer |
insert( int offset, float f ) |
|
public |
StringBuffer |
insert( int dstOffset, CharSequence s ) |
|
public |
StringBuffer |
insert( int offset, double d ) |
|
public synchronized |
StringBuffer |
insert( int offset, char[] str ) |
|
public synchronized |
StringBuffer |
insert( int offset, String str ) |
|
public |
StringBuffer |
insert( int offset, boolean b ) |
|
public synchronized |
StringBuffer |
insert( int offset, char c ) |
|
public |
StringBuffer |
insert( int offset, int i ) |
|
public |
StringBuffer |
insert( int offset, long l ) |
|
public synchronized |
StringBuffer |
insert( int offset, Object obj ) |
|
public synchronized |
StringBuffer |
insert( int dstOffset, CharSequence s, int start, int end ) |
|
public synchronized |
int |
lastIndexOf( String str, int fromIndex ) |
|
public |
int |
lastIndexOf( String str ) |
|
public synchronized |
int |
length() |
|
public synchronized |
int |
offsetByCodePoints( int index, int codePointOffset ) |
|
public synchronized |
StringBuffer |
replace( int start, int end, String str ) |
|
public synchronized |
StringBuffer |
reverse() |
|
public synchronized |
void |
setCharAt( int index, char ch ) |
|
public synchronized |
void |
setLength( int newLength ) |
|
public synchronized |
CharSequence |
subSequence( int start, int end ) |
|
public synchronized |
String |
substring( int start, int end ) |
|
public synchronized |
String |
substring( int start ) |
|
public synchronized |
String |
toString() |
|
public synchronized |
void |
trimToSize() |
|
Méthodes héritées de la classe java.lang.AbstractStringBuilder
append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, capacity, charAt, chars, codePointAt, codePointBefore, codePointCount, codePoints, delete, deleteCharAt, ensureCapacity, getChars, indexOf, indexOf, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, lastIndexOf, lastIndexOf, length, offsetByCodePoints, replace, reverse, setCharAt, setLength, subSequence, substring, substring, toString, trimToSize
Méthodes héritées de la classe java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :