예제 #1
0
        static IntPtr n_OrElse_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_spare)
        {
            global::Com.Mob.Tools.Java8.Optional __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Java8.Optional> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object             spare  = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_spare, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.OrElse(spare));

            return(__ret);
        }
예제 #2
0
 static IntPtr n_Get(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mob.Tools.Java8.Optional __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Java8.Optional> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Get()));
 }