public static unsafe bool NonEmptyIntersection(global::Java.Util.IComparator comparator, string[] first, string[] second) { const string __id = "nonEmptyIntersection.(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z"; IntPtr native_first = JNIEnv.NewArray(first); IntPtr native_second = JNIEnv.NewArray(second); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((comparator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)comparator).Handle); __args [1] = new JniArgumentValue(native_first); __args [2] = new JniArgumentValue(native_second); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { if (first != null) { JNIEnv.CopyArray(native_first, first); JNIEnv.DeleteLocalRef(native_first); } if (second != null) { JNIEnv.CopyArray(native_second, second); JNIEnv.DeleteLocalRef(native_second); } } }
public static unsafe string[] Intersect(global::Java.Util.IComparator comparator, string[] first, string[] second) { const string __id = "intersect.(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;"; IntPtr native_first = JNIEnv.NewArray(first); IntPtr native_second = JNIEnv.NewArray(second); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((comparator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)comparator).Handle); __args [1] = new JniArgumentValue(native_first); __args [2] = new JniArgumentValue(native_second); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return((string[])JNIEnv.GetArray(__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof(string))); } finally { if (first != null) { JNIEnv.CopyArray(native_first, first); JNIEnv.DeleteLocalRef(native_first); } if (second != null) { JNIEnv.CopyArray(native_second, second); JNIEnv.DeleteLocalRef(native_second); } } }
static IntPtr n_Sort_Ljava_util_Comparator_(IntPtr jnienv, IntPtr native__this, IntPtr native_fun) { global::Com.Mob.Tools.Java8.MapFlow __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Java8.MapFlow>(jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.IComparator fun = (global::Java.Util.IComparator)global::Java.Lang.Object.GetObject <global::Java.Util.IComparator>(native_fun, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Sort(fun)); return(__ret); }
public virtual unsafe global::Com.Mob.Tools.Java8.MapFlow Sort(global::Java.Util.IComparator fun) { const string __id = "sort.(Ljava/util/Comparator;)Lcom/mob/tools/java8/MapFlow;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue[1]; __args[0] = new JniArgumentValue((fun == null) ? IntPtr.Zero : ((global::Java.Lang.Object)fun).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Java8.MapFlow>(__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public static unsafe void DeleteFirst(global::Java.IO.File[] files, global::Java.Util.IComparator sortedBy, int numFiles) { const string __id = "deleteFirst.([Ljava/io/File;Ljava/util/Comparator;I)V"; IntPtr native_files = JNIEnv.NewArray(files); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue(native_files); __args [1] = new JniArgumentValue((sortedBy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sortedBy).Handle); __args [2] = new JniArgumentValue(numFiles); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { if (files != null) { JNIEnv.CopyArray(native_files, files); JNIEnv.DeleteLocalRef(native_files); } } }
public unsafe LinkedTreeMap(global::Java.Util.IComparator comparator) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Ljava/util/Comparator;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((comparator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)comparator).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public static unsafe int IndexOf(global::Java.Util.IComparator comparator, string[] array, string value) { const string __id = "indexOf.(Ljava/util/Comparator;[Ljava/lang/String;Ljava/lang/String;)I"; IntPtr native_array = JNIEnv.NewArray(array); IntPtr native_value = JNIEnv.NewString(value); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((comparator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)comparator).Handle); __args [1] = new JniArgumentValue(native_array); __args [2] = new JniArgumentValue(native_value); var __rm = _members.StaticMethods.InvokeInt32Method(__id, __args); return(__rm); } finally { if (array != null) { JNIEnv.CopyArray(native_array, array); JNIEnv.DeleteLocalRef(native_array); } JNIEnv.DeleteLocalRef(native_value); } }
public unsafe FuzzyKeyMemoryCache(global::Com.Nostra13.Universalimageloader.Cache.Memory.IMemoryCache p0, global::Java.Util.IComparator p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() != typeof(FuzzyKeyMemoryCache)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/nostra13/universalimageloader/cache/memory/MemoryCache;Ljava/util/Comparator;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/nostra13/universalimageloader/cache/memory/MemoryCache;Ljava/util/Comparator;)V", __args); return; } if (id_ctor_Lcom_nostra13_universalimageloader_cache_memory_MemoryCache_Ljava_util_Comparator_ == IntPtr.Zero) { id_ctor_Lcom_nostra13_universalimageloader_cache_memory_MemoryCache_Ljava_util_Comparator_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/nostra13/universalimageloader/cache/memory/MemoryCache;Ljava/util/Comparator;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_nostra13_universalimageloader_cache_memory_MemoryCache_Ljava_util_Comparator_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_nostra13_universalimageloader_cache_memory_MemoryCache_Ljava_util_Comparator_, __args); } finally { } }