Class CharVector
java.lang.Object
com.lowagie.text.pdf.hyphenation.CharVector
- All Implemented Interfaces:
Serializable, Cloneable
Deprecated.
This class implements a simple char vector with access to the underlying array.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate char[]Deprecated.The encapsulated arrayprivate intDeprecated.private static final intDeprecated.Capacity increment sizeprivate intDeprecated.Points to next free itemprivate static final longDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.CharVector(char[] a) Deprecated.CharVector(char[] a, int capacity) Deprecated.CharVector(int capacity) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionintalloc(int size) Deprecated.intcapacity()Deprecated.returns current capacity of arrayvoidclear()Deprecated.Reset Vector but don't resize or clear elementsclone()Deprecated.charget(int index) Deprecated.char[]getArray()Deprecated.intlength()Deprecated.voidput(int index, char val) Deprecated.voidDeprecated.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
DEFAULT_BLOCK_SIZE
private static final int DEFAULT_BLOCK_SIZEDeprecated.Capacity increment size- See Also:
-
blockSize
private int blockSizeDeprecated. -
array
private char[] arrayDeprecated.The encapsulated array -
n
private int nDeprecated.Points to next free item
-
-
Constructor Details
-
CharVector
public CharVector()Deprecated. -
CharVector
public CharVector(int capacity) Deprecated. -
CharVector
public CharVector(char[] a) Deprecated. -
CharVector
public CharVector(char[] a, int capacity) Deprecated.
-
-
Method Details
-
clear
public void clear()Deprecated.Reset Vector but don't resize or clear elements -
clone
-
getArray
public char[] getArray()Deprecated. -
length
public int length()Deprecated.- Returns:
- the number of items in array
-
capacity
public int capacity()Deprecated.returns current capacity of array- Returns:
- the current capacity of array
-
put
public void put(int index, char val) Deprecated. -
get
public char get(int index) Deprecated. -
alloc
public int alloc(int size) Deprecated. -
trimToSize
public void trimToSize()Deprecated.
-