Freigeben über


Class.IsNestmateOf(Class) Method

Definition

Determines if the given Class is a nestmate of the class or interface represented by this Class object.

[Android.Runtime.Register("isNestmateOf", "(Ljava/lang/Class;)Z", "", ApiSince=34)]
public bool IsNestmateOf (Java.Lang.Class c);
[<Android.Runtime.Register("isNestmateOf", "(Ljava/lang/Class;)Z", "", ApiSince=34)>]
member this.IsNestmateOf : Java.Lang.Class -> bool

Parameters

c
Class

the class to check

Returns

true if this class and c are members of the same nest; and false otherwise.

Attributes

Remarks

Determines if the given Class is a nestmate of the class or interface represented by this Class object. Two classes or interfaces are nestmates if they have the same #getNestHost() nest host.

Added in 11.

Java documentation for java.lang.Class.isNestmateOf(java.lang.Class<?>).

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.

Applies to