Class CircularStringBuilder


  • public class CircularStringBuilder
    extends Object
    Basic string builder over circular buffer.
    • 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 the Object argument.
        Parameters:
        obj - an Object.
        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.
      • getSkipped

        public int getSkipped()
        Returns:
        Count of skipped elements.