Partager via


Object Class

Definition

Class Object is the root of the class hierarchy.

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

Remarks

Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.

Added in 1.0.

Java documentation for java.lang.Object.

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()

Constructs a new object.

Object(IntPtr, JniHandleOwnership)

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

Properties

Class

Returns the runtime class of this Object.

Handle

The handle to the underlying Android instance.

JniIdentityHashCode
JniPeerMembers
PeerReference
ThresholdClass

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

ThresholdType

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

Methods

Clone()

Creates and returns a copy of this object.

Dispose()
Dispose(Boolean)
Equals(Object)

Indicates whether some other object is "equal to" this one.

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

Returns a hash code value for the object.

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

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

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

ToArray<T>()
ToString()

Returns a string representation of the object.

UnregisterFromRuntime()
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

Operators

Explicit(Object to Boolean)
Explicit(Object to Boolean[])
Explicit(Object to Byte)
Explicit(Object to Byte[])
Explicit(Object to Char)
Explicit(Object to Char[])
Explicit(Object to Double)
Explicit(Object to Double[])
Explicit(Object to Int32)
Explicit(Object to Int32[])
Explicit(Object to Int64)
Explicit(Object to Int64[])
Explicit(Object to Object[])
Explicit(Object to SByte)
Explicit(Object to Single)
Explicit(Object to Single[])
Explicit(Object to String)
Explicit(Object to String[])
Explicit(Object to UInt32)
Explicit(Object to UInt64)
Implicit(Boolean to Object)
Implicit(Boolean[] to Object)
Implicit(Byte to Object)
Implicit(Byte[] to Object)
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(Int64 to Object)
Implicit(Int64[] to Object)
Implicit(Object[] to Object)
Implicit(SByte to Object)
Implicit(Single to Object)
Implicit(Single[] to Object)
Implicit(String to Object)
Implicit(String[] to Object)
Implicit(UInt32 to Object)
Implicit(UInt64 to Object)

Explicit Interface Implementations

IJavaPeerable.Disposed()
IJavaPeerable.DisposeUnlessReferenced()
IJavaPeerable.Finalized()
IJavaPeerable.JniManagedPeerState
IJavaPeerable.SetJniIdentityHashCode(Int32)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)
IJavaPeerable.SetPeerReference(JniObjectReference)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to