Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Static Public Member Functions | List of all members
Lucene.Net.Util.ArrayUtil Class Reference

Methods for manipulating arrays. More...

Static Public Member Functions

static int ParseInt (char[] chars)
 Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity.
 
static int ParseInt (char[] chars, int offset, int len)
 Parses a char array into an int.
 
static int ParseInt (char[] chars, int offset, int len, int radix)
 Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity. The second argument specifies the radix to use when parsing the value.
 
static int GetNextSize (int targetSize)
 
static int GetShrinkSize (int currentSize, int targetSize)
 
static int[] Grow (int[] array, int minSize)
 
static int[] Grow (int[] array)
 
static int[] Shrink (int[] array, int targetSize)
 
static long[] Grow (long[] array, int minSize)
 
static long[] Grow (long[] array)
 
static long[] Shrink (long[] array, int targetSize)
 
static byte[] Grow (byte[] array, int minSize)
 
static byte[] Grow (byte[] array)
 
static byte[] Shrink (byte[] array, int targetSize)
 
static int HashCode (char[] array, int start, int end)
 Returns hash of chars in range start (inclusive) to end (inclusive)
 
static int HashCode (byte[] array, int start, int end)
 Returns hash of chars in range start (inclusive) to end (inclusive)
 

Detailed Description

Methods for manipulating arrays.

Definition at line 24 of file ArrayUtil.cs.

Member Function Documentation

static int Lucene.Net.Util.ArrayUtil.GetNextSize ( int  targetSize)
static

Definition at line 146 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.GetShrinkSize ( int  currentSize,
int  targetSize 
)
static

Definition at line 158 of file ArrayUtil.cs.

static int [] Lucene.Net.Util.ArrayUtil.Grow ( int[]  array,
int  minSize 
)
static

Definition at line 170 of file ArrayUtil.cs.

static int [] Lucene.Net.Util.ArrayUtil.Grow ( int[]  array)
static

Definition at line 182 of file ArrayUtil.cs.

static long [] Lucene.Net.Util.ArrayUtil.Grow ( long[]  array,
int  minSize 
)
static

Definition at line 200 of file ArrayUtil.cs.

static long [] Lucene.Net.Util.ArrayUtil.Grow ( long[]  array)
static

Definition at line 212 of file ArrayUtil.cs.

static byte [] Lucene.Net.Util.ArrayUtil.Grow ( byte[]  array,
int  minSize 
)
static

Definition at line 230 of file ArrayUtil.cs.

static byte [] Lucene.Net.Util.ArrayUtil.Grow ( byte[]  array)
static

Definition at line 242 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.HashCode ( char[]  array,
int  start,
int  end 
)
static

Returns hash of chars in range start (inclusive) to end (inclusive)

Definition at line 263 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.HashCode ( byte[]  array,
int  start,
int  end 
)
static

Returns hash of chars in range start (inclusive) to end (inclusive)

Definition at line 274 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.ParseInt ( char[]  chars)
static

Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity.

Parameters
charsa string representation of an int quantity.
Returns
int the value represented by the argument

<throws> NumberFormatException if the argument could not be parsed as an int quantity. </throws>

Definition at line 43 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.ParseInt ( char[]  chars,
int  offset,
int  len 
)
static

Parses a char array into an int.

Parameters
charsthe character array
offsetThe offset into the array
lenThe length
Returns
the int

<throws> NumberFormatException if it can't parse </throws>

Definition at line 58 of file ArrayUtil.cs.

static int Lucene.Net.Util.ArrayUtil.ParseInt ( char[]  chars,
int  offset,
int  len,
int  radix 
)
static

Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity. The second argument specifies the radix to use when parsing the value.

Parameters
charsa string representation of an int quantity.
offset
len
radixthe base to use for conversion.
Returns
int the value represented by the argument

<throws> NumberFormatException if the argument could not be parsed as an int quantity. </throws>

Definition at line 78 of file ArrayUtil.cs.

static int [] Lucene.Net.Util.ArrayUtil.Shrink ( int[]  array,
int  targetSize 
)
static

Definition at line 187 of file ArrayUtil.cs.

static long [] Lucene.Net.Util.ArrayUtil.Shrink ( long[]  array,
int  targetSize 
)
static

Definition at line 217 of file ArrayUtil.cs.

static byte [] Lucene.Net.Util.ArrayUtil.Shrink ( byte[]  array,
int  targetSize 
)
static

Definition at line 247 of file ArrayUtil.cs.


The documentation for this class was generated from the following file: