Open mahesh-hegde opened 1 year ago
IsSameObject - should we overload == to call IsSameObject from JNI? (Different ref values can point to same object).
isSameObject
can be its own method. In the branch I'm currently working on, I decided to overload ==
to call equals
as I think this is idiomatic in Dart.
obj.isInstanceOf(ClassName.type)
I like this.
JNI API provides few useful methods related to class and objects equality. It would be nice to have higher-level wrappers for them working on
JObject
subclasses.[ ] #1033
obj.isInstanceOf(ClassName.type)
isInstanceOf
from JNI.[ ]
IsSameObject
- should we overload==
to callIsSameObject
from JNI? (Different ref values can point to same object).[ ] Get class name
jclass
and call some methods on it: https://stackoverflow.com/questions/9265457/class-name-from-jclass-in-jniClass<T>
type.