Class LazyStringBuilder

  • All Implemented Interfaces:
    java.lang.Appendable, java.lang.CharSequence

    public class LazyStringBuilder
    extends java.lang.Object
    implements java.lang.Appendable, java.lang.CharSequence
    • Method Detail

      • append

        public LazyStringBuilder append​(java.lang.CharSequence csq)
        Specified by:
        append in interface java.lang.Appendable
      • append

        public LazyStringBuilder append​(java.lang.CharSequence csq,
                                        int start,
                                        int end)
        Specified by:
        append in interface java.lang.Appendable
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object
      • getAsList

        public java.util.List<java.lang.CharSequence> getAsList()
        Get the List of CharSequences representation of this instance. The list is unmodifiable. If the resulting String was already cached, a list with a single String entry will be returned.
        Returns:
        a List of CharSequences representing this instance.