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
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public CharVector ( ) : System
Résultat System

CharVector() public méthode

public CharVector ( char a ) : System
a char
Résultat System

CharVector() public méthode

public CharVector ( char a, int capacity ) : System
a char
capacity int
Résultat System

CharVector() public méthode

public CharVector ( int capacity ) : System
capacity int
Résultat System

alloc() public méthode

public alloc ( int size ) : int
size int
Résultat int

capacity() public méthode

returns current capacity of array
public capacity ( ) : int
Résultat int

clear() public méthode

Reset Vector but don't resize or clear elements
public clear ( ) : void
Résultat void

clone() public méthode

public clone ( ) : CharVector
Résultat CharVector

get() public méthode

public get ( int index ) : char
index int
Résultat char

length() public méthode

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

put() public méthode

public put ( int index, char val ) : void
index int
val char
Résultat void

trimToSize() public méthode

public trimToSize ( ) : void
Résultat void