Class AbstractArrayBuffer
java.lang.Object
com.oracle.truffle.regex.tregex.buffer.AbstractArrayBuffer
- Direct Known Subclasses:
ByteArrayBuffer,CharArrayBuffer,IntArrayBuffer,LongArrayBuffer,ObjectArrayBuffer,ShortArrayBuffer
Abstract base class of all ArrayBuffer classes, exists solely to avoid code duplication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidensureCapacity(int newLength) booleanisEmpty()intlength()voidsetLength(int size)
-
Constructor Details
-
AbstractArrayBuffer
public AbstractArrayBuffer()
-
-
Method Details
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
length
public int length() -
setLength
public void setLength(int size) -
ensureCapacity
public void ensureCapacity(int newLength)
-