Package gnu.lists

Class AbstractCharVector<E>

    • Field Detail

      • data

        protected char[] data
      • empty

        protected static char[] empty
    • Constructor Detail

      • AbstractCharVector

        public AbstractCharVector()
    • Method Detail

      • length

        public int length()
      • getBufferLength

        public int getBufferLength()
        Get the allocated length of the data buffer.
        Specified by:
        getBufferLength in class SimpleVector<E>
      • ensureBufferLength

        public void ensureBufferLength​(int sz)
      • charAt

        public final char charAt​(int index)
      • getChars

        public void getChars​(int srcBegin,
                             int srcEnd,
                             char[] dst,
                             int dstBegin)
        Copy characters into a destination buffer. Same interface as java.lang.String's getChars.
      • clearBuffer

        protected void clearBuffer​(int start,
                                   int count)
        Specified by:
        clearBuffer in class SimpleVector<E>
      • compareTo

        public static int compareTo​(char[] arr1,
                                    char[] arr2,
                                    int length)
      • openReader

        public gnu.kawa.io.CharArrayInPort openReader()
      • openReader

        public gnu.kawa.io.CharArrayInPort openReader​(int start,
                                                      int end)