C# Class org.apache.lucene.analysis.compound.hyphenation.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.
Inheritance: ICloneable
Mostra file Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
CharVector ( ) : System
CharVector ( char a ) : System
CharVector ( char a, int capacity ) : System
CharVector ( int capacity ) : System
alloc ( int size ) : int
capacity ( ) : int

returns current capacity of array

clear ( ) : void

Reset Vector but don't resize or clear elements

clone ( ) : CharVector
get ( int index ) : char
length ( ) : int

return number of items in array

put ( int index, char val ) : void
trimToSize ( ) : void

Method Details

CharVector() public method

public CharVector ( ) : System
return System

CharVector() public method

public CharVector ( char a ) : System
a char
return System

CharVector() public method

public CharVector ( char a, int capacity ) : System
a char
capacity int
return System

CharVector() public method

public CharVector ( int capacity ) : System
capacity int
return System

alloc() public method

public alloc ( int size ) : int
size int
return int

capacity() public method

returns current capacity of array
public capacity ( ) : int
return int

clear() public method

Reset Vector but don't resize or clear elements
public clear ( ) : void
return void

clone() public method

public clone ( ) : CharVector
return CharVector

get() public method

public get ( int index ) : char
index int
return char

length() public method

return number of items in array
public length ( ) : int
return int

put() public method

public put ( int index, char val ) : void
index int
val char
return void

trimToSize() public method

public trimToSize ( ) : void
return void