public abstract class AbstractCharVector<E> extends SimpleVector<E> implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
data |
protected static char[] |
empty |
cantWriteMarker, indexesATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE| Constructor and Description |
|---|
AbstractCharVector() |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
char |
charAtBuffer(int index) |
protected void |
clearBuffer(int start,
int count) |
static int |
compareTo(AbstractCharVector<?> cv1,
AbstractCharVector<?> cv2,
int length) |
static int |
compareTo(char[] arr1,
char[] arr2,
int length) |
int |
compareTo(java.lang.Object obj) |
void |
ensureBufferLength(int sz) |
static boolean |
equals(AbstractCharVector<?> c1,
AbstractCharVector<?> c2) |
abstract boolean |
equals(java.lang.Object obj)
Must override, since we override hashCode.
|
char[] |
getBuffer() |
int |
getBufferLength()
Get the allocated length of the data buffer.
|
void |
getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin)
Copy characters into a destination buffer.
|
int |
hashCode() |
int |
length() |
gnu.kawa.io.CharArrayInPort |
openReader() |
gnu.kawa.io.CharArrayInPort |
openReader(int start,
int end) |
protected void |
setBuffer(java.lang.Object buffer) |
void |
setBufferLength(int length) |
add, add, addPos, addSpace, delete, fill, get, getBuffer, getGapManager, getRowMajor, getSegment, getSegment, getSegmentReadOnly, getStableManager, getTag, isAfterPos, readExternal, set, setAt, setBuffer, shift, toDataArray, transpose, writeExternalcheckCanWrite, getIndexesForce, indexesSelect, indexesSubList, nextPos, select, size, subList, withIndexesaddAll, addAll, boundedHash, clear, compare, compare, compare, consume, consume, consumeNext, consumePosRange, contains, containsAll, copyPos, createPos, createRelativePos, elements, endPos, equals, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setPosNext, setPosPrevious, stableCompare, startPos, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, setaddAll, addAll, clear, contains, containsAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, toArray, toArrayconsumeboundedHashpublic int length()
public int getBufferLength()
getBufferLength in class IndirectIndexable<E>public void setBufferLength(int length)
setBufferLength in class SimpleVector<E>public void ensureBufferLength(int sz)
public char[] getBuffer()
getBuffer in class SimpleVector<E>protected void setBuffer(java.lang.Object buffer)
setBuffer in class SimpleVector<E>public final char charAt(int index)
public final char charAtBuffer(int index)
public void getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin)
protected void clearBuffer(int start,
int count)
clearBuffer in class SimpleVector<E>public int hashCode()
hashCode in interface java.util.Collection<E>hashCode in interface java.util.List<E>hashCode in class AbstractSequence<E>public abstract boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<E>equals in interface java.util.List<E>equals in class AbstractSequence<E>public static boolean equals(AbstractCharVector<?> c1, AbstractCharVector<?> c2)
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic static int compareTo(AbstractCharVector<?> cv1, AbstractCharVector<?> cv2, int length)
public static int compareTo(char[] arr1,
char[] arr2,
int length)
public gnu.kawa.io.CharArrayInPort openReader()
public gnu.kawa.io.CharArrayInPort openReader(int start,
int end)