Object Object Class

Definition

The root class of the Java class hierarchy.

[Android.Runtime.Register("java/lang/Object", ApiSince=1, DoNotGenerateAcw=true)]
[System.Runtime.Serialization.DataContract]
public class Object : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
type Object = class
    interface IDisposable
    interface IJavaObject
    interface IJavaPeerable
Inheritance
ObjectObject
Derived
Attributes
Implements

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

Object() Object()

Constructs a new instance of Object.

Object(IntPtr, JniHandleOwnership) Object(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.

Handle Handle

The handle to the underlying Android instance.

JniIdentityHashCode JniIdentityHashCode
JniPeerMembers JniPeerMembers
PeerReference PeerReference
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

Clone() Clone()

Creates and returns a copy of this Object.

Dispose() Dispose()
Dispose(Boolean) Dispose(Boolean)
Equals(Object) Equals(Object)

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

Finalize() Finalize()
FromArray<T>(T[]) FromArray<T>(T[])
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

GetObject<T>(IntPtr, IntPtr, JniHandleOwnership) GetObject<T>(IntPtr, IntPtr, JniHandleOwnership)
GetObject<T>(IntPtr, JniHandleOwnership) GetObject<T>(IntPtr, JniHandleOwnership)

Wraps a JNI object reference into a fully typed IJavaObject implementation.

JavaFinalize() JavaFinalize()

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

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.

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.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

ToArray<T>() ToArray<T>()
ToString() ToString()

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

UnregisterFromRuntime() UnregisterFromRuntime()
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this 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.

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.

Operators

Explicit(Object to Char[]) Explicit(Object to Char[])
Explicit(Object to Double) Explicit(Object to Double)
Explicit(Object to Double[]) Explicit(Object to Double[])
Explicit(Object to Int32) Explicit(Object to Int32)
Explicit(Object to String) Explicit(Object to String)
Explicit(Object to Int64[]) Explicit(Object to Int64[])
Explicit(Object to SByte) Explicit(Object to SByte)
Explicit(Object to Single) Explicit(Object to Single)
Explicit(Object to Single[]) Explicit(Object to Single[])
Explicit(Object to Char) Explicit(Object to Char)
Explicit(Object to String[]) Explicit(Object to String[])
Explicit(Object to UInt32) Explicit(Object to UInt32)
Explicit(Object to UInt64) Explicit(Object to UInt64)
Explicit(Object to Int64) Explicit(Object to Int64)
Explicit(Object to Byte[]) Explicit(Object to Byte[])
Explicit(Object to Int32[]) Explicit(Object to Int32[])
Explicit(Object to Boolean[]) Explicit(Object to Boolean[])
Explicit(Object to Boolean) Explicit(Object to Boolean)
Explicit(Object to Object[]) Explicit(Object to Object[])
Explicit(Object to Byte) Explicit(Object to Byte)
Implicit(Char[] to Object) Implicit(Char[] to Object)
Implicit(Double[] to Object) Implicit(Double[] to Object)
Implicit(Int32 to Object) Implicit(Int32 to Object)
Implicit(Int32[] to Object) Implicit(Int32[] to Object)
Implicit(Int64 to Object) Implicit(Int64 to Object)
Implicit(Int64[] to Object) Implicit(Int64[] to Object)
Implicit(SByte to Object) Implicit(SByte to Object)
Implicit(Single to Object) Implicit(Single to Object)
Implicit(Single[] to Object) Implicit(Single[] to Object)
Implicit(String to Object) Implicit(String to Object)
Implicit(String[] to Object) Implicit(String[] to Object)
Implicit(UInt32 to Object) Implicit(UInt32 to Object)
Implicit(UInt64 to Object) Implicit(UInt64 to Object)
Implicit(Char to Object) Implicit(Char to Object)
Implicit(Byte[] to Object) Implicit(Byte[] to Object)
Implicit(Double to Object) Implicit(Double to Object)
Implicit(Boolean[] to Object) Implicit(Boolean[] to Object)
Implicit(Boolean to Object) Implicit(Boolean to Object)
Implicit(Object[] to Object) Implicit(Object[] to Object)
Implicit(Byte to Object) Implicit(Byte to Object)

Explicit Interface Implementations

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation
IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle()
IJavaPeerable.Disposed() IJavaPeerable.Disposed()
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced()
IJavaPeerable.Finalized() IJavaPeerable.Finalized()
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference)

Extension Methods

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

Performs an Android runtime-checked type conversion.

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