Class CircularStringBuilder
java.lang.Object
org.apache.ignite.internal.util.tostring.CircularStringBuilder
Basic string builder over circular buffer.
-
Method Summary
Modifier and TypeMethodDescriptionAppends the string representation of theObjectargument.Appends the specified string to this character sequence.append(StringBuffer sb) Append StringBufferintcapacity()Returns the current capacity.intintlength()Returns the length (character count).voidreset()Reset internal builder statetoString()
-
Method Details
-
reset
public void reset()Reset internal builder state -
length
public int length()Returns the length (character count).- Returns:
- the length of the sequence of characters currently represented by this object
-
capacity
public int capacity()Returns the current capacity.- Returns:
- the current capacity
-
append
Appends the string representation of theObjectargument.- Parameters:
obj- anObject.- Returns:
- a reference to this object.
-
append
Appends the specified string to this character sequence.- Parameters:
str- a string.- Returns:
- a reference to this object.
-
append
Append StringBuffer- Parameters:
sb- StringBuffer to append.- Returns:
- Reference to this object.
-
getSkipped
public int getSkipped()- Returns:
- Count of skipped elements.
-
toString
-