Created
July 29, 2025 07:24
-
-
Save CayasSoftware/15d0aef552ee7f728e76cd22f8a8fac6 to your computer and use it in GitHub Desktop.
Error CS0111 : The type "Maps" defines already a member "FilterEntries" with same parameter types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <class abstract="false" deprecated="not deprecated" extends="java.lang.Object" extends-generic-aware="java.lang.Object" jni-extends="Ljava/lang/Object;" final="true" name="Maps" static="false" visibility="public" jni-signature="Lcom/google/common/collect/Maps;"> | |
| ... | |
| <method abstract="false" deprecated="not deprecated" final="false" name="filterEntries" jni-signature="(Lcom/google/common/collect/BiMap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/BiMap;" bridge="false" native="false" return="com.google.common.collect.BiMap<K, V>" jni-return="Lcom/google/common/collect/BiMap<TK;TV;>;" static="true" synchronized="false" synthetic="false" visibility="public"> | |
| <typeParameters> | |
| <typeParameter name="K" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| <typeParameter name="V" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| </typeParameters> | |
| <parameter name="unfiltered" type="com.google.common.collect.BiMap<K, V>" jni-type="Lcom/google/common/collect/BiMap<TK;TV;>;" /> | |
| <parameter name="entryPredicate" type="com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>" jni-type="Lcom/google/common/base/Predicate<-Ljava/util/Map$Entry<TK;TV;>;>;" /> | |
| </method> | |
| <method abstract="false" deprecated="not deprecated" final="false" name="filterEntries" jni-signature="(Ljava/util/Map;Lcom/google/common/base/Predicate;)Ljava/util/Map;" bridge="false" native="false" return="java.util.Map<K, V>" jni-return="Ljava/util/Map<TK;TV;>;" static="true" synchronized="false" synthetic="false" visibility="public"> | |
| <typeParameters> | |
| <typeParameter name="K" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| <typeParameter name="V" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| </typeParameters> | |
| <parameter name="unfiltered" type="java.util.Map<K, V>" jni-type="Ljava/util/Map<TK;TV;>;" /> | |
| <parameter name="entryPredicate" type="com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>" jni-type="Lcom/google/common/base/Predicate<-Ljava/util/Map$Entry<TK;TV;>;>;" /> | |
| </method> | |
| <method abstract="false" deprecated="not deprecated" final="false" name="filterEntries" jni-signature="(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)Ljava/util/NavigableMap;" bridge="false" native="false" return="java.util.NavigableMap<K, V>" jni-return="Ljava/util/NavigableMap<TK;TV;>;" static="true" synchronized="false" synthetic="false" visibility="public"> | |
| <typeParameters> | |
| <typeParameter name="K" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| <typeParameter name="V" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| </typeParameters> | |
| <parameter name="unfiltered" type="java.util.NavigableMap<K, V>" jni-type="Ljava/util/NavigableMap<TK;TV;>;" /> | |
| <parameter name="entryPredicate" type="com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>" jni-type="Lcom/google/common/base/Predicate<-Ljava/util/Map$Entry<TK;TV;>;>;" /> | |
| </method> | |
| <method abstract="false" deprecated="not deprecated" final="false" name="filterEntries" jni-signature="(Ljava/util/SortedMap;Lcom/google/common/base/Predicate;)Ljava/util/SortedMap;" bridge="false" native="false" return="java.util.SortedMap<K, V>" jni-return="Ljava/util/SortedMap<TK;TV;>;" static="true" synchronized="false" synthetic="false" visibility="public"> | |
| <typeParameters> | |
| <typeParameter name="K" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| <typeParameter name="V" classBound="java.lang.Object" jni-classBound="Ljava/lang/Object;" /> | |
| </typeParameters> | |
| <parameter name="unfiltered" type="java.util.SortedMap<K, V>" jni-type="Ljava/util/SortedMap<TK;TV;>;" /> | |
| <parameter name="entryPredicate" type="com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>" jni-type="Lcom/google/common/base/Predicate<-Ljava/util/Map$Entry<TK;TV;>;>;" /> | |
| </method> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Metadata.xml XPath class reference: path="/api/package[@name='com.google.common.collect']/class[@name='Maps']" | |
| [global::Android.Runtime.Register ("com/google/common/collect/Maps", DoNotGenerateAcw=true)] | |
| public sealed partial class Maps : global::Java.Lang.Object { | |
| // Metadata.xml XPath method reference: path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='com.google.common.collect.BiMap<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" | |
| [Register ("filterEntries", "(Lcom/google/common/collect/BiMap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/BiMap;", "")] | |
| [global::Java.Interop.JavaTypeParameters (new string [] {"K", "V"})] | |
| public static unsafe global::Com.Google.Common.Collect.IBiMap? FilterEntries (global::Com.Google.Common.Collect.IBiMap? unfiltered, global::Com.Google.Common.Base.IPredicate? entryPredicate) | |
| { | |
| const string __id = "filterEntries.(Lcom/google/common/collect/BiMap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/BiMap;"; | |
| try { | |
| JniArgumentValue* __args = stackalloc JniArgumentValue [2]; | |
| __args [0] = new JniArgumentValue ((unfiltered == null) ? IntPtr.Zero : ((global::Java.Lang.Object) unfiltered).Handle); | |
| __args [1] = new JniArgumentValue ((entryPredicate == null) ? IntPtr.Zero : ((global::Java.Lang.Object) entryPredicate).Handle); | |
| var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); | |
| return global::Java.Lang.Object.GetObject<global::Com.Google.Common.Collect.IBiMap> (__rm.Handle, JniHandleOwnership.TransferLocalRef); | |
| } finally { | |
| global::System.GC.KeepAlive (unfiltered); | |
| global::System.GC.KeepAlive (entryPredicate); | |
| } | |
| } | |
| // Metadata.xml XPath method reference: path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.Map<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" | |
| [Register ("filterEntries", "(Ljava/util/Map;Lcom/google/common/base/Predicate;)Ljava/util/Map;", "")] | |
| [global::Java.Interop.JavaTypeParameters (new string [] {"K", "V"})] | |
| public static unsafe global::Java.Util.IMap? FilterEntries (global::System.Collections.IDictionary? unfiltered, global::Com.Google.Common.Base.IPredicate? entryPredicate) | |
| { | |
| const string __id = "filterEntries.(Ljava/util/Map;Lcom/google/common/base/Predicate;)Ljava/util/Map;"; | |
| IntPtr native_unfiltered = global::Android.Runtime.JavaDictionary.ToLocalJniHandle (unfiltered); | |
| try { | |
| JniArgumentValue* __args = stackalloc JniArgumentValue [2]; | |
| __args [0] = new JniArgumentValue (native_unfiltered); | |
| __args [1] = new JniArgumentValue ((entryPredicate == null) ? IntPtr.Zero : ((global::Java.Lang.Object) entryPredicate).Handle); | |
| var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); | |
| return global::Android.Runtime.JavaDictionary.FromJniHandle (__rm.Handle, JniHandleOwnership.TransferLocalRef); | |
| } finally { | |
| JNIEnv.DeleteLocalRef (native_unfiltered); | |
| global::System.GC.KeepAlive (unfiltered); | |
| global::System.GC.KeepAlive (entryPredicate); | |
| } | |
| } | |
| // Metadata.xml XPath method reference: path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.NavigableMap<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" | |
| [Register ("filterEntries", "(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)Ljava/util/NavigableMap;", "")] | |
| [global::Java.Interop.JavaTypeParameters (new string [] {"K", "V"})] | |
| public static unsafe global::Java.Util.INavigableMap? FilterEntries (global::Java.Util.INavigableMap? unfiltered, global::Com.Google.Common.Base.IPredicate? entryPredicate) | |
| { | |
| const string __id = "filterEntries.(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)Ljava/util/NavigableMap;"; | |
| try { | |
| JniArgumentValue* __args = stackalloc JniArgumentValue [2]; | |
| __args [0] = new JniArgumentValue ((unfiltered == null) ? IntPtr.Zero : ((global::Java.Lang.Object) unfiltered).Handle); | |
| __args [1] = new JniArgumentValue ((entryPredicate == null) ? IntPtr.Zero : ((global::Java.Lang.Object) entryPredicate).Handle); | |
| var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); | |
| return global::Java.Lang.Object.GetObject<global::Java.Util.INavigableMap> (__rm.Handle, JniHandleOwnership.TransferLocalRef); | |
| } finally { | |
| global::System.GC.KeepAlive (unfiltered); | |
| global::System.GC.KeepAlive (entryPredicate); | |
| } | |
| } | |
| // Metadata.xml XPath method reference: path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.SortedMap<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" | |
| [Register ("filterEntries", "(Ljava/util/SortedMap;Lcom/google/common/base/Predicate;)Ljava/util/SortedMap;", "")] | |
| [global::Java.Interop.JavaTypeParameters (new string [] {"K", "V"})] | |
| public static unsafe global::Java.Util.ISortedMap? FilterEntries (global::System.Collections.IDictionary? unfiltered, global::Com.Google.Common.Base.IPredicate? entryPredicate) | |
| { | |
| const string __id = "filterEntries.(Ljava/util/SortedMap;Lcom/google/common/base/Predicate;)Ljava/util/SortedMap;"; | |
| IntPtr native_unfiltered = global::Android.Runtime.JavaDictionary.ToLocalJniHandle (unfiltered); | |
| try { | |
| JniArgumentValue* __args = stackalloc JniArgumentValue [2]; | |
| __args [0] = new JniArgumentValue (native_unfiltered); | |
| __args [1] = new JniArgumentValue ((entryPredicate == null) ? IntPtr.Zero : ((global::Java.Lang.Object) entryPredicate).Handle); | |
| var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); | |
| return global::Android.Runtime.JavaDictionary.FromJniHandle (__rm.Handle, JniHandleOwnership.TransferLocalRef); | |
| } finally { | |
| JNIEnv.DeleteLocalRef (native_unfiltered); | |
| global::System.GC.KeepAlive (unfiltered); | |
| global::System.GC.KeepAlive (entryPredicate); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Fix returnType to match api.xml returnType --> | |
| <!-- Does not fix CS0111 --> | |
| <attr path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.Map<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" name="managedReturn">Java.Util.IMap</attr> | |
| <attr path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.SortedMap<K, V>'] and parameter[2][@type='com.google.common.base.Predicate<? super java.util.Map.Entry<K, V>>']]" name="managedReturn">Java.Util.ISortedMap</attr> | |
| <!-- Fix paramterType to match api.xml parameterType --> | |
| <!-- Does not fix CS0111 --> | |
| <attr path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.Map<K, V>']]" name="managedType">Java.Util.IMap</attr> | |
| <attr path="/api/package[@name='com.google.common.collect']/class[@name='Maps']/method[@name='filterEntries' and count(parameter)=2 and parameter[1][@type='java.util.SortedMap<K, V>']]" name="managedType">Java.Util.ISortedMap</attr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment