Arrays Arrays Class

Definition

Arrays contains static methods which operate on arrays.

[Android.Runtime.Register("java/util/Arrays", ApiSince=1, DoNotGenerateAcw=true)]
public class Arrays : Java.Lang.Object
type Arrays = class
    inherit Object
Inheritance
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Arrays(IntPtr, JniHandleOwnership) Arrays(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AsList(Object[]) AsList(Object[])
BinarySearch(Byte[], Int32, Int32, SByte) BinarySearch(Byte[], Int32, Int32, SByte)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Byte[], SByte) BinarySearch(Byte[], SByte)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Char[], Char) BinarySearch(Char[], Char)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Char[], Int32, Int32, Char) BinarySearch(Char[], Int32, Int32, Char)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Double[], Double) BinarySearch(Double[], Double)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Double[], Int32, Int32, Double) BinarySearch(Double[], Int32, Int32, Double)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Int16[], Int16) BinarySearch(Int16[], Int16)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Int16[], Int32, Int32, Int16) BinarySearch(Int16[], Int32, Int32, Int16)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Int32[], Int32) BinarySearch(Int32[], Int32)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Int32[], Int32, Int32, Int32) BinarySearch(Int32[], Int32, Int32, Int32)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Int64[], Int32, Int32, Int64) BinarySearch(Int64[], Int32, Int32, Int64)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Int64[], Int64) BinarySearch(Int64[], Int64)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Object[], Int32, Int32, Object) BinarySearch(Object[], Int32, Int32, Object)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Object[], Int32, Int32, Object, IComparator) BinarySearch(Object[], Int32, Int32, Object, IComparator)
BinarySearch(Object[], Object) BinarySearch(Object[], Object)

Performs a binary search for value in the ascending sorted array array.

BinarySearch(Object[], Object, IComparator) BinarySearch(Object[], Object, IComparator)
BinarySearch(Single[], Int32, Int32, Single) BinarySearch(Single[], Int32, Int32, Single)

Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive).

BinarySearch(Single[], Single) BinarySearch(Single[], Single)

Performs a binary search for value in the ascending sorted array array.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CopyOf(Boolean[], Int32) CopyOf(Boolean[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Byte[], Int32) CopyOf(Byte[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Char[], Int32) CopyOf(Char[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Double[], Int32) CopyOf(Double[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Int16[], Int32) CopyOf(Int16[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Int32[], Int32) CopyOf(Int32[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Int64[], Int32) CopyOf(Int64[], Int32)

Copies newLength elements from original into a new array.

CopyOf(Object[], Int32) CopyOf(Object[], Int32)
CopyOf(Object[], Int32, Class) CopyOf(Object[], Int32, Class)
CopyOf(Single[], Int32) CopyOf(Single[], Int32)

Copies newLength elements from original into a new array.

CopyOfRange(Boolean[], Int32, Int32) CopyOfRange(Boolean[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Byte[], Int32, Int32) CopyOfRange(Byte[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Char[], Int32, Int32) CopyOfRange(Char[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Double[], Int32, Int32) CopyOfRange(Double[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Int16[], Int32, Int32) CopyOfRange(Int16[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Int32[], Int32, Int32) CopyOfRange(Int32[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Int64[], Int32, Int32) CopyOfRange(Int64[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

CopyOfRange(Object[], Int32, Int32) CopyOfRange(Object[], Int32, Int32)
CopyOfRange(Object[], Int32, Int32, Class) CopyOfRange(Object[], Int32, Int32, Class)
CopyOfRange(Single[], Int32, Int32) CopyOfRange(Single[], Int32, Int32)

Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive).

DeepEquals(Object[], Object[]) DeepEquals(Object[], Object[])

Returns true if the two given arrays are deeply equal to one another.

DeepHashCode(Object[]) DeepHashCode(Object[])

Returns a hash code based on the "deep contents" of the given array.

DeepToString(Object[]) DeepToString(Object[])

Creates a "deep"String representation of the Object[] passed, such that if the array contains other arrays, the String representation of those arrays is generated as well.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Boolean[], Boolean[]) Equals(Boolean[], Boolean[])

Compares the two arrays.

Equals(Byte[], Byte[]) Equals(Byte[], Byte[])

Compares the two arrays.

Equals(Char[], Char[]) Equals(Char[], Char[])

Compares the two arrays.

Equals(Double[], Double[]) Equals(Double[], Double[])

Compares the two arrays.

Equals(Int16[], Int16[]) Equals(Int16[], Int16[])

Compares the two arrays.

Equals(Int32[], Int32[]) Equals(Int32[], Int32[])

Compares the two arrays.

Equals(Int64[], Int64[]) Equals(Int64[], Int64[])

Compares the two arrays.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
Equals(Object[], Object[]) Equals(Object[], Object[])

Compares the two arrays.

Equals(Single[], Single[]) Equals(Single[], Single[])

Compares the two arrays.

Fill(Boolean[], Boolean) Fill(Boolean[], Boolean)

Fills the specified array with the specified element.

Fill(Boolean[], Int32, Int32, Boolean) Fill(Boolean[], Int32, Int32, Boolean)

Fills the specified range in the array with the specified element.

Fill(Byte[], Int32, Int32, SByte) Fill(Byte[], Int32, Int32, SByte)

Fills the specified range in the array with the specified element.

Fill(Byte[], SByte) Fill(Byte[], SByte)

Fills the specified array with the specified element.

Fill(Char[], Char) Fill(Char[], Char)

Fills the specified array with the specified element.

Fill(Char[], Int32, Int32, Char) Fill(Char[], Int32, Int32, Char)

Fills the specified range in the array with the specified element.

Fill(Double[], Double) Fill(Double[], Double)

Fills the specified array with the specified element.

Fill(Double[], Int32, Int32, Double) Fill(Double[], Int32, Int32, Double)

Fills the specified range in the array with the specified element.

Fill(Int16[], Int16) Fill(Int16[], Int16)

Fills the specified array with the specified element.

Fill(Int16[], Int32, Int32, Int16) Fill(Int16[], Int32, Int32, Int16)

Fills the specified range in the array with the specified element.

Fill(Int32[], Int32) Fill(Int32[], Int32)

Fills the specified array with the specified element.

Fill(Int32[], Int32, Int32, Int32) Fill(Int32[], Int32, Int32, Int32)

Fills the specified range in the array with the specified element.

Fill(Int64[], Int32, Int32, Int64) Fill(Int64[], Int32, Int32, Int64)

Fills the specified range in the array with the specified element.

Fill(Int64[], Int64) Fill(Int64[], Int64)

Fills the specified array with the specified element.

Fill(Object[], Int32, Int32, Object) Fill(Object[], Int32, Int32, Object)

Fills the specified range in the array with the specified element.

Fill(Object[], Object) Fill(Object[], Object)

Fills the specified array with the specified element.

Fill(Single[], Int32, Int32, Single) Fill(Single[], Int32, Int32, Single)

Fills the specified range in the array with the specified element.

Fill(Single[], Single) Fill(Single[], Single)

Fills the specified array with the specified element.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
HashCode(Boolean[]) HashCode(Boolean[])

Returns a hash code based on the contents of the given array.

HashCode(Byte[]) HashCode(Byte[])

Returns a hash code based on the contents of the given array.

HashCode(Char[]) HashCode(Char[])

Returns a hash code based on the contents of the given array.

HashCode(Double[]) HashCode(Double[])

Returns a hash code based on the contents of the given array.

HashCode(Int16[]) HashCode(Int16[])

Returns a hash code based on the contents of the given array.

HashCode(Int32[]) HashCode(Int32[])

Returns a hash code based on the contents of the given array.

HashCode(Int64[]) HashCode(Int64[])

Returns a hash code based on the contents of the given array.

HashCode(Object[]) HashCode(Object[])

Returns a hash code based on the contents of the given array.

HashCode(Single[]) HashCode(Single[])

Returns a hash code based on the contents of the given array.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
ParallelPrefix(Double[], IDoubleBinaryOperator) ParallelPrefix(Double[], IDoubleBinaryOperator)
ParallelPrefix(Double[], Int32, Int32, IDoubleBinaryOperator) ParallelPrefix(Double[], Int32, Int32, IDoubleBinaryOperator)
ParallelPrefix(Int32[], IIntBinaryOperator) ParallelPrefix(Int32[], IIntBinaryOperator)
ParallelPrefix(Int32[], Int32, Int32, IIntBinaryOperator) ParallelPrefix(Int32[], Int32, Int32, IIntBinaryOperator)
ParallelPrefix(Int64[], ILongBinaryOperator) ParallelPrefix(Int64[], ILongBinaryOperator)
ParallelPrefix(Int64[], Int32, Int32, ILongBinaryOperator) ParallelPrefix(Int64[], Int32, Int32, ILongBinaryOperator)
ParallelPrefix(Object[], IBinaryOperator) ParallelPrefix(Object[], IBinaryOperator)
ParallelPrefix(Object[], Int32, Int32, IBinaryOperator) ParallelPrefix(Object[], Int32, Int32, IBinaryOperator)
ParallelSetAll(Double[], IIntToDoubleFunction) ParallelSetAll(Double[], IIntToDoubleFunction)
ParallelSetAll(Int32[], IIntUnaryOperator) ParallelSetAll(Int32[], IIntUnaryOperator)
ParallelSetAll(Int64[], IIntToLongFunction) ParallelSetAll(Int64[], IIntToLongFunction)
ParallelSetAll(Object[], IIntFunction) ParallelSetAll(Object[], IIntFunction)
ParallelSort(Byte[]) ParallelSort(Byte[])
ParallelSort(Byte[], Int32, Int32) ParallelSort(Byte[], Int32, Int32)
ParallelSort(Char[]) ParallelSort(Char[])
ParallelSort(Char[], Int32, Int32) ParallelSort(Char[], Int32, Int32)
ParallelSort(Double[]) ParallelSort(Double[])
ParallelSort(Double[], Int32, Int32) ParallelSort(Double[], Int32, Int32)
ParallelSort(Int16[]) ParallelSort(Int16[])
ParallelSort(Int16[], Int32, Int32) ParallelSort(Int16[], Int32, Int32)
ParallelSort(Int32[]) ParallelSort(Int32[])
ParallelSort(Int32[], Int32, Int32) ParallelSort(Int32[], Int32, Int32)
ParallelSort(Int64[]) ParallelSort(Int64[])
ParallelSort(Int64[], Int32, Int32) ParallelSort(Int64[], Int32, Int32)
ParallelSort(Object[]) ParallelSort(Object[])
ParallelSort(Object[], IComparator) ParallelSort(Object[], IComparator)
ParallelSort(Object[], Int32, Int32) ParallelSort(Object[], Int32, Int32)
ParallelSort(Object[], Int32, Int32, IComparator) ParallelSort(Object[], Int32, Int32, IComparator)
ParallelSort(Single[]) ParallelSort(Single[])
ParallelSort(Single[], Int32, Int32) ParallelSort(Single[], Int32, Int32)
SetAll(Double[], IIntToDoubleFunction) SetAll(Double[], IIntToDoubleFunction)
SetAll(Int32[], IIntUnaryOperator) SetAll(Int32[], IIntUnaryOperator)
SetAll(Int64[], IIntToLongFunction) SetAll(Int64[], IIntToLongFunction)
SetAll(Object[], IIntFunction) SetAll(Object[], IIntFunction)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Sort(Byte[]) Sort(Byte[])

Sorts the specified array in ascending numerical order.

Sort(Byte[], Int32, Int32) Sort(Byte[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Char[]) Sort(Char[])

Sorts the specified array in ascending numerical order.

Sort(Char[], Int32, Int32) Sort(Char[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Double[]) Sort(Double[])

Sorts the specified array in ascending numerical order.

Sort(Double[], Int32, Int32) Sort(Double[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Int16[]) Sort(Int16[])

Sorts the specified array in ascending numerical order.

Sort(Int16[], Int32, Int32) Sort(Int16[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Int32[]) Sort(Int32[])

Sorts the specified array in ascending numerical order.

Sort(Int32[], Int32, Int32) Sort(Int32[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Int64[]) Sort(Int64[])

Sorts the specified array in ascending numerical order.

Sort(Int64[], Int32, Int32) Sort(Int64[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Sort(Object[]) Sort(Object[])

Sorts the specified array in ascending natural order.

Sort(Object[], IComparator) Sort(Object[], IComparator)
Sort(Object[], Int32, Int32) Sort(Object[], Int32, Int32)

Sorts the specified range in the array in ascending natural order.

Sort(Object[], Int32, Int32, IComparator) Sort(Object[], Int32, Int32, IComparator)
Sort(Single[]) Sort(Single[])

Sorts the specified array in ascending numerical order.

Sort(Single[], Int32, Int32) Sort(Single[], Int32, Int32)

Sorts the specified range in the array in ascending numerical order.

Spliterator(Object[]) Spliterator(Object[])
Spliterator(Object[], Int32, Int32) Spliterator(Object[], Int32, Int32)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
ToString(Boolean[]) ToString(Boolean[])

Creates a String representation of the boolean[] passed.

ToString(Byte[]) ToString(Byte[])

Creates a String representation of the byte[] passed.

ToString(Char[]) ToString(Char[])

Creates a String representation of the char[] passed.

ToString(Double[]) ToString(Double[])

Creates a String representation of the double[] passed.

ToString(Int16[]) ToString(Int16[])

Creates a String representation of the short[] passed.

ToString(Int32[]) ToString(Int32[])

Creates a String representation of the int[] passed.

ToString(Int64[]) ToString(Int64[])

Creates a String representation of the long[] passed.

ToString(Object[]) ToString(Object[])

Creates a String representation of the Object[] passed.

ToString(Single[]) ToString(Single[])

Creates a String representation of the float[] passed.

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to