Class CircularStringBuilder
- java.lang.Object
-
- org.apache.ignite.internal.util.tostring.CircularStringBuilder
-
public class CircularStringBuilder extends Object
Basic string builder over circular buffer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CircularStringBuilderappend(Object obj)Appends the string representation of theObjectargument.CircularStringBuilderappend(String str)Appends the specified string to this character sequence.CircularStringBuilderappend(StringBuffer sb)Append StringBufferintcapacity()Returns the current capacity.intgetSkipped()intlength()Returns the length (character count).voidreset()Reset internal builder stateStringtoString()
-
-
-
Method Detail
-
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
public CircularStringBuilder append(Object obj)
Appends the string representation of theObjectargument.- Parameters:
obj- anObject.- Returns:
- a reference to this object.
-
append
public CircularStringBuilder append(String str)
Appends the specified string to this character sequence.- Parameters:
str- a string.- Returns:
- a reference to this object.
-
append
public CircularStringBuilder append(StringBuffer sb)
Append StringBuffer- Parameters:
sb- StringBuffer to append.- Returns:
- Reference to this object.
-
getSkipped
public int getSkipped()
- Returns:
- Count of skipped elements.
-
-