|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.compound.hyphenation.CharVector
public class CharVector
This class implements a simple char vector with access to the underlying array. This class has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.
Constructor Summary | |
---|---|
CharVector()
|
|
CharVector(char[] a)
|
|
CharVector(char[] a,
int capacity)
|
|
CharVector(int capacity)
|
Method Summary | |
---|---|
int |
alloc(int size)
|
int |
capacity()
returns current capacity of array |
void |
clear()
Reset Vector but don't resize or clear elements |
Object |
clone()
|
char |
get(int index)
|
char[] |
getArray()
|
int |
length()
return number of items in array |
void |
put(int index,
char val)
|
void |
trimToSize()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharVector()
public CharVector(int capacity)
public CharVector(char[] a)
public CharVector(char[] a, int capacity)
Method Detail |
---|
public void clear()
public Object clone()
clone
in class Object
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |