Object Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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) |
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, 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. |
Operators
Explicit Interface Implementations
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |