public class CharVector extends Object implements Cloneable
Constructor and Description |
---|
CharVector() |
CharVector(char[] a) |
CharVector(char[] a,
int capacity) |
CharVector(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
alloc(int size) |
int |
capacity()
returns current capacity of array
|
void |
clear()
Reset Vector but don't resize or clear elements
|
CharVector |
clone() |
char |
get(int index) |
char[] |
getArray() |
int |
length()
return number of items in array
|
void |
put(int index,
char val) |
void |
trimToSize() |
public CharVector()
public CharVector(int capacity)
public CharVector(char[] a)
public CharVector(char[] a, int capacity)
public void clear()
public CharVector clone()
public char[] getArray()
public int length()
public int capacity()
public void put(int index, char val)
public char get(int index)
public int alloc(int size)
public void trimToSize()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.