Class Streams.AppendableWriter.CurrentWrite

  • All Implemented Interfaces:
    java.lang.CharSequence
    Enclosing class:
    Streams.AppendableWriter

    private static class Streams.AppendableWriter.CurrentWrite
    extends java.lang.Object
    implements java.lang.CharSequence
    A mutable char sequence pointing at a single char[].
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String cachedString  
      private char[] chars  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CurrentWrite()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int i)  
      int length()  
      (package private) void setChars​(char[] chars)  
      java.lang.CharSequence subSequence​(int start, int end)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Field Detail

      • chars

        private char[] chars
      • cachedString

        private java.lang.String cachedString
    • Constructor Detail

      • CurrentWrite

        private CurrentWrite()
    • Method Detail

      • setChars

        void setChars​(char[] chars)
      • length

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

        public char charAt​(int i)
        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