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)
      • setBuffer

        protected void setBuffer​(java.lang.Object buffer)
        Specified by:
        setBuffer in class SimpleVector<E>
      • 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>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Specified by:
        hashCode in interface java.util.List<E>
        Overrides:
        hashCode in class AbstractSequence<E>
      • equals

        public abstract boolean equals​(java.lang.Object obj)
        Must override, since we override hashCode.
        Specified by:
        equals in interface java.util.Collection<E>
        Specified by:
        equals in interface java.util.List<E>
        Overrides:
        equals in class AbstractSequence<E>
      • compareTo

        public int compareTo​(java.lang.Object obj)
        Specified by:
        compareTo in interface java.lang.Comparable<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)