Class Arrays
  
  
  
  
    Inheritance
    System.Object
    Arrays
   
  
  Assembly: Lucene.Net.dll
  Syntax
  
    public static class Arrays : object
   
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AsList<T>(T[])
  
  
  Declaration
  
    public static List<T> AsList<T>(params T[] objects)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        objects | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CopyOf<T>(T[], Int32)
  
  
  Declaration
  
    public static T[] CopyOf<T>(T[] original, int newLength)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        original | 
         | 
      
      
        | System.Int32 | 
        newLength | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CopyOfRange<T>(T[], Int32, Int32)
  
  
  Declaration
  
    public static T[] CopyOfRange<T>(T[] original, int startIndexInc, int endIndexExc)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        original | 
         | 
      
      
        | System.Int32 | 
        startIndexInc | 
         | 
      
      
        | System.Int32 | 
        endIndexExc | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals<T>(T[], T[])
  Compares the entire members of one array whith the other one.
 
  
  Declaration
  
    public static bool Equals<T>(T[] a, T[] b)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        a | 
        The array to be compared. 
 | 
      
      
        | T[] | 
        b | 
        The array to be compared with. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
        Returns true if the two specified arrays of Objects are equal
to one another. The two arrays are considered equal if both arrays
contain the same number of elements, and all corresponding pairs of
elements in the two arrays are equal. Two objects e1 and e2 are
considered equal if (e1==null ? e2==null : e1.Equals(e2)). In other
words, the two arrays are equal if they contain the same elements in
the same order. Also, two array references are considered equal if
both are null.
 
Note that if the type of  is a ,
, or , its values and any nested collection values
will be compared for equality as well. 
 | 
      
    
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Fill<T>(T[], T)
  Assigns the specified value to each element of the specified array.
 
  
  Declaration
  
    public static void Fill<T>(T[] a, T val)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        a | 
        the array to be filled 
 | 
      
      
        | T | 
        val | 
        the value to be stored in all elements of the array 
 | 
      
    
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | T | 
        the type of the array 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Fill<T>(T[], Int32, Int32, T)
  Assigns the specified long value to each element of the specified
range of the specified array of longs.  The range to be filled
extends from index fromIndex, inclusive, to index
toIndex, exclusive.  (If fromIndex==toIndex, the
range to be filled is empty.)
 
  
  Declaration
  
    public static void Fill<T>(T[] a, int fromIndex, int toIndex, T val)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        a | 
        the array to be filled 
 | 
      
      
        | System.Int32 | 
        fromIndex | 
        the index of the first element (inclusive) to be
filled with the specified value 
 | 
      
      
        | System.Int32 | 
        toIndex | 
        the index of the last element (exclusive) to be
filled with the specified value 
 | 
      
      
        | T | 
        val | 
        the value to be stored in all elements of the array 
 | 
      
    
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | T | 
        the type of the array 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode<T>(T[])
  Returns a hash code based on the contents of the given array. For any two
T arrays a and b, if
Arrays.Equals(b) returns true, it means
that the return value of Arrays.GetHashCode(a) equals Arrays.GetHashCode(b).
 
  
  Declaration
  
    public static int GetHashCode<T>(T[] array)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        array | 
        The array whose hash code to compute. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
        The hash code for array. 
 | 
      
    
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | T | 
        The array element type. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString<T>(T[])
  Creates a  representation of the array passed.
The result is surrounded by brackets "[]", each
element is converted to a  via the
 and separated by ", ". If
the array is null, then "null" is returned.
 
  
  Declaration
  
    public static string ToString<T>(T[] array)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T[] | 
        array | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | T | 
        The type of array element. 
 |