diff --git a/README.md b/README.md index 77782f6..9928ce2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Library Wrapper Unity OpenJDK8 Library +[![openupm](https://img.shields.io/npm/v/com.google.librarywrapper.openjdk8?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.google.librarywrapper.openjdk8/) + [Library Wrapper](https://developer.android.com/games/develop/custom/wrapper) is a code generator that parses Java API and produces wrapper APIs in Unity C#. It does this by creating wrappers around every class in the Java API, handling the @@ -12,16 +14,21 @@ an optional dependency for some Library Wrapper generated Unity packages. ## Installation -This package can be installed from the Unity Package Manager. See +This package can be installed with +[OpenUPM](https://openupm.com/packages/com.google.librarywrapper.openjdk8/): + +```shell +$ openupm add com.google.librarywrapper.openjdk8 +``` + +This package can also be installed via the Unity Package Manager. See [this guide](https://docs.unity3d.com/Manual/upm-ui-giturl.html) for details. This package can be installed by downloading this repo and extract its content to your project's `Packages/` folder ([embedded package](https://docs.unity3d.com/Manual/upm-ui-local.html)). -We are working to support this package on OpenUPM. - -## Use +## How-tos All the wrappers can be accessed by importing `Java.Lang` or `Java.Util`. All methods and fields are renamed with CamelCase. diff --git a/Runtime/Java.meta b/Runtime/Java.meta index b897096..bdae1df 100644 --- a/Runtime/Java.meta +++ b/Runtime/Java.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 79c64b73bf13390790f8b99eaca4e6e1 +guid: 49e432a01c1f3c879886c3ac8e27d0aa folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType.meta b/Runtime/Java/ExternalType.meta index 02d08f9..74b8ace 100644 --- a/Runtime/Java/ExternalType.meta +++ b/Runtime/Java/ExternalType.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 568fa999191d37cc9bc4ad95a433527b +guid: 7f8979836cf6361ba2b064ac4ceaec69 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java.meta b/Runtime/Java/ExternalType/Java.meta index 7906ac2..8d4ce38 100644 --- a/Runtime/Java/ExternalType/Java.meta +++ b/Runtime/Java/ExternalType/Java.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8eee79e0b53330cc8c4373b4dc5199f1 +guid: 917d5e10336d3c978c00a584aac5c625 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Io.meta b/Runtime/Java/ExternalType/Java/Io.meta index 3f5fd56..5d5be3d 100644 --- a/Runtime/Java/ExternalType/Java/Io.meta +++ b/Runtime/Java/ExternalType/Java/Io.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bdb262e155463a0fb5582609e6ef15d3 +guid: 4158f14e20b038e8a84f784a38ad765a folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Io/Closeable.cs b/Runtime/Java/ExternalType/Java/Io/Closeable.cs index b8ca60e..a1b67ac 100644 --- a/Runtime/Java/ExternalType/Java/Io/Closeable.cs +++ b/Runtime/Java/ExternalType/Java/Io/Closeable.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Io { public interface Closeable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Closeable + private static readonly IntPtr _classObject; + + static Closeable() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Closeable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Closeable + + public class CloseableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Closeable + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static CloseableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Closeable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public CloseableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/io/Closeable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of CloseableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(CloseableAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator CloseableAnonymousImplementation(IntPtr rawObject) + { + return new CloseableAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Closeable + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.io.Closeable") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class CloseableAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class CloseableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Closeable + { + public CloseableCallbackHelper() : base("java.io.Closeable") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Closeable + } + } // end class CloseableCallbackHelper } // end namespace Java.ExternalType.Java.Io diff --git a/Runtime/Java/ExternalType/Java/Io/Closeable.cs.meta b/Runtime/Java/ExternalType/Java/Io/Closeable.cs.meta index 978d354..b3c6679 100644 --- a/Runtime/Java/ExternalType/Java/Io/Closeable.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Closeable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 99984166d56131e0a4784b8434262424 +guid: 67d1a5fc9f6c3feea9eb30f914ace615 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/Console.cs.meta b/Runtime/Java/ExternalType/Java/Io/Console.cs.meta index 0b2e429..506825b 100644 --- a/Runtime/Java/ExternalType/Java/Io/Console.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Console.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 816e18befc233c3e8870ea23bd364a06 +guid: f896bddbd97c31a780603d061e8498d1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/File.cs.meta b/Runtime/Java/ExternalType/Java/Io/File.cs.meta index c9892d6..0ead1fb 100644 --- a/Runtime/Java/ExternalType/Java/Io/File.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/File.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 44dcb74591bb3ef78d09dc241d57ffeb +guid: 29be7eb8a1f53889b2fa8e8d466c6536 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs.meta b/Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs.meta deleted file mode 100644 index 41cbb8e..0000000 --- a/Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6524be34e60c3a1faddb839356ab948e -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/ExternalType/Java/Io/Flushable.cs b/Runtime/Java/ExternalType/Java/Io/Flushable.cs index 73dc6fb..767d615 100644 --- a/Runtime/Java/ExternalType/Java/Io/Flushable.cs +++ b/Runtime/Java/ExternalType/Java/Io/Flushable.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Io { public interface Flushable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Flushable + private static readonly IntPtr _classObject; + + static Flushable() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Flushable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Flushable + + public class FlushableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Flushable + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static FlushableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Flushable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public FlushableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/io/Flushable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of FlushableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(FlushableAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator FlushableAnonymousImplementation(IntPtr rawObject) + { + return new FlushableAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Flushable + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.io.Flushable") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class FlushableAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class FlushableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Flushable + { + public FlushableCallbackHelper() : base("java.io.Flushable") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Flushable + } + } // end class FlushableCallbackHelper } // end namespace Java.ExternalType.Java.Io diff --git a/Runtime/Java/ExternalType/Java/Io/Flushable.cs.meta b/Runtime/Java/ExternalType/Java/Io/Flushable.cs.meta index b944969..b6d188a 100644 --- a/Runtime/Java/ExternalType/Java/Io/Flushable.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Flushable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cf14cfd58ac3324eb8fbf6f5137e41c5 +guid: 9783f318e5983e1596697e1ca7171dca MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/IOException.cs.meta b/Runtime/Java/ExternalType/Java/Io/IOException.cs.meta index ee1559d..a471549 100644 --- a/Runtime/Java/ExternalType/Java/Io/IOException.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/IOException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 798b0f8844293049a97f61de341195dd +guid: 1ba3cf6278f733b6a3e78a227fa3bdf8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/InputStream.cs.meta b/Runtime/Java/ExternalType/Java/Io/InputStream.cs.meta index 548c392..4eab81a 100644 --- a/Runtime/Java/ExternalType/Java/Io/InputStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/InputStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b40444603a8e3d8ba433e6a70a433f1a +guid: 275c3bd351e43158a02c8a954056edaf MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/OutputStream.cs.meta b/Runtime/Java/ExternalType/Java/Io/OutputStream.cs.meta index cd59062..0a6e556 100644 --- a/Runtime/Java/ExternalType/Java/Io/OutputStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/OutputStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 597fb457aee23b779276b950a4acfaec +guid: ffb6c3c24c773979897067c6479823b6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/PrintStream.cs.meta b/Runtime/Java/ExternalType/Java/Io/PrintStream.cs.meta index add071c..98bdab6 100644 --- a/Runtime/Java/ExternalType/Java/Io/PrintStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/PrintStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c83615aa38233c3f88d44d38b9431c65 +guid: b499af57ee973778b94c1343d732e441 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/PrintWriter.cs.meta b/Runtime/Java/ExternalType/Java/Io/PrintWriter.cs.meta index 6edd6a5..e1d938c 100644 --- a/Runtime/Java/ExternalType/Java/Io/PrintWriter.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/PrintWriter.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e99763cde849399bafd0b2a3c5802444 +guid: 348fe0d4f83d34ee8dbc42d4952ec9c4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/Reader.cs.meta b/Runtime/Java/ExternalType/Java/Io/Reader.cs.meta index 0186eb2..879c8f1 100644 --- a/Runtime/Java/ExternalType/Java/Io/Reader.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Reader.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ce1e83a0de22338cb0f94b47614c880f +guid: 248e27ccc8b630ec9fbba981276f9f8a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/Serializable.cs b/Runtime/Java/ExternalType/Java/Io/Serializable.cs index eb19f5b..617ac16 100644 --- a/Runtime/Java/ExternalType/Java/Io/Serializable.cs +++ b/Runtime/Java/ExternalType/Java/Io/Serializable.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Io { public interface Serializable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Serializable + private static readonly IntPtr _classObject; + + static Serializable() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Serializable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Serializable + + public class SerializableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Io.Serializable + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static SerializableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/io/Serializable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public SerializableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/io/Serializable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of SerializableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(SerializableAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator SerializableAnonymousImplementation(IntPtr rawObject) + { + return new SerializableAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Serializable + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.io.Serializable") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class SerializableAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class SerializableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Io.Serializable + { + public SerializableCallbackHelper() : base("java.io.Serializable") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Serializable + } + } // end class SerializableCallbackHelper } // end namespace Java.ExternalType.Java.Io diff --git a/Runtime/Java/ExternalType/Java/Io/Serializable.cs.meta b/Runtime/Java/ExternalType/Java/Io/Serializable.cs.meta index 6ba9ea4..df48e80 100644 --- a/Runtime/Java/ExternalType/Java/Io/Serializable.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Serializable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e3fff3fb36163a759f1b803a824dd733 +guid: 46a425bd9f3b37f1a4bc915a1b442415 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/Writer.cs.meta b/Runtime/Java/ExternalType/Java/Io/Writer.cs.meta index d24e006..e0070e5 100644 --- a/Runtime/Java/ExternalType/Java/Io/Writer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Io/Writer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e1032e4e2cf343d9d67ce80863e5fda +guid: e15c7d195a9f3961885fcb5bf2dd2e49 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang.meta b/Runtime/Java/ExternalType/Java/Lang.meta index 31a3ff7..add0665 100644 --- a/Runtime/Java/ExternalType/Java/Lang.meta +++ b/Runtime/Java/ExternalType/Java/Lang.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d2188a29f44d373db237d5a1a7c28144 +guid: 5cd48f64f28e3c91b4307ce6fb00eaf2 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Lang/AbstractStringBuilder.cs.meta b/Runtime/Java/ExternalType/Java/Lang/AbstractStringBuilder.cs.meta index 9e37466..11fd53c 100644 --- a/Runtime/Java/ExternalType/Java/Lang/AbstractStringBuilder.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/AbstractStringBuilder.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4ce1c0acdd23340b9b4b1ca11552a248 +guid: 095d21d0175531fd88b22a8caa61e11b MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Annotation.meta b/Runtime/Java/ExternalType/Java/Lang/Annotation.meta index b94da24..75cc087 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Annotation.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Annotation.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 36464b882aa43c71a6bfdab7a9f3f4a6 +guid: ddda06abd5ec3caab64dee92be47371a folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs b/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs index 29ebc13..1c26af0 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs +++ b/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Lang.Annotation { public interface Annotation : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Annotation.Annotation + private static readonly IntPtr _classObject; + + static Annotation() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/annotation/Annotation"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Annotation + + public class AnnotationAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Annotation.Annotation + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static AnnotationAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/annotation/Annotation"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public AnnotationAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/annotation/Annotation"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of AnnotationAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(AnnotationAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator AnnotationAnonymousImplementation(IntPtr rawObject) + { + return new AnnotationAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Annotation.Annotation + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.annotation.Annotation") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class AnnotationAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class AnnotationCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Annotation.Annotation + { + public AnnotationCallbackHelper() : base("java.lang.annotation.Annotation") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Annotation + } + } // end class AnnotationCallbackHelper } // end namespace Java.ExternalType.Java.Lang.Annotation diff --git a/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs.meta index 68cbec5..985c1ff 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Annotation/Annotation.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 408a884b9ee1328ab0cfbc6695e9efd9 +guid: 68b2d15b2e3d329bbc333efa12f65aef MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Comparable.cs b/Runtime/Java/ExternalType/Java/Lang/Comparable.cs index 14348ab..df63786 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Comparable.cs +++ b/Runtime/Java/ExternalType/Java/Lang/Comparable.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Lang { public interface Comparable : global::Google.LibraryWrapper.Java.JavaInterface where T0 : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Comparable + private static readonly IntPtr _classObject; + + static Comparable() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Comparable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Comparable + + public class ComparableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Comparable where T0 : class + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static ComparableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Comparable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public ComparableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Comparable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ComparableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(ComparableAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator ComparableAnonymousImplementation(IntPtr rawObject) + { + return new ComparableAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Comparable + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.Comparable") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ComparableAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class ComparableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Comparable where T0 : class + { + public ComparableCallbackHelper() : base("java.lang.Comparable") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Comparable + } + } // end class ComparableCallbackHelper } // end namespace Java.ExternalType.Java.Lang diff --git a/Runtime/Java/ExternalType/Java/Lang/Comparable.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Comparable.cs.meta index fa52559..cee840d 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Comparable.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Comparable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b00a9adf08d433a68c99ef5892129de8 +guid: 73342f1b4ae337bc9fb35858fa08b908 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect.meta index faae05d..22ab64a 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6ce0350779e13c239380eb6f0c47c37b +guid: 62faf79e7d1f30f297cf574b7c1f9182 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs index 63cbd87..1d36db6 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Lang.Reflect { public interface AnnotatedElement : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.AnnotatedElement + private static readonly IntPtr _classObject; + + static AnnotatedElement() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/AnnotatedElement"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class AnnotatedElement + + public class AnnotatedElementAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.AnnotatedElement + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static AnnotatedElementAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/AnnotatedElement"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public AnnotatedElementAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/AnnotatedElement"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of AnnotatedElementAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(AnnotatedElementAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator AnnotatedElementAnonymousImplementation(IntPtr rawObject) + { + return new AnnotatedElementAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.AnnotatedElement + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.reflect.AnnotatedElement") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class AnnotatedElementAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class AnnotatedElementCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.AnnotatedElement + { + public AnnotatedElementCallbackHelper() : base("java.lang.reflect.AnnotatedElement") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class AnnotatedElement + } + } // end class AnnotatedElementCallbackHelper } // end namespace Java.ExternalType.Java.Lang.Reflect diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs.meta index 32b8bef..754317c 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedElement.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7e94a3bca48431bfb735b024fa5d649f +guid: b7118b2b635637d980437feea8a9828a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedType.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedType.cs.meta index 6ef78c9..ef7debc 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedType.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/AnnotatedType.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5a96725f88353aba9bd816d842a11fc4 +guid: 85beceabb82039e7938664884dcf3575 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/Constructor.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/Constructor.cs.meta index a1aea8c..3e834b9 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/Constructor.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/Constructor.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1e84da05340637b5943c2a5f9c5af935 +guid: 4d72d6c4828930dda6bd51ddca7b725b MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/Field.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/Field.cs.meta index 8e66d29..f3b42cd 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/Field.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/Field.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d349538318543817a411f3173dad87ce +guid: 0de74fda6b9432a18edc32b679c99c90 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs b/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs index 3dc543a..f8797a3 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Lang.Reflect { public interface GenericDeclaration : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.GenericDeclaration + private static readonly IntPtr _classObject; + + static GenericDeclaration() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/GenericDeclaration"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class GenericDeclaration + + public class GenericDeclarationAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.GenericDeclaration + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static GenericDeclarationAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/GenericDeclaration"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public GenericDeclarationAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/GenericDeclaration"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of GenericDeclarationAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(GenericDeclarationAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator GenericDeclarationAnonymousImplementation(IntPtr rawObject) + { + return new GenericDeclarationAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.GenericDeclaration + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.reflect.GenericDeclaration") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class GenericDeclarationAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class GenericDeclarationCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.GenericDeclaration + { + public GenericDeclarationCallbackHelper() : base("java.lang.reflect.GenericDeclaration") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class GenericDeclaration + } + } // end class GenericDeclarationCallbackHelper } // end namespace Java.ExternalType.Java.Lang.Reflect diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs.meta index d290d31..9c0cb46 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/GenericDeclaration.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 274b3b5543093dc28ec613cabae9f7e6 +guid: e4cd2c7367083b8ca39d6bdd2f64e448 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/Method.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/Method.cs.meta index ff3d355..6411a95 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/Method.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/Method.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4e8ace67a2d936299a1aa9f1fa23d597 +guid: 8fa9a2857d463f22a942bd3cb16a79d0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs b/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs index 610fd35..a1fcff7 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Lang.Reflect { public interface Type : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.Type + private static readonly IntPtr _classObject; + + static Type() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/Type"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Type + + public class TypeAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Lang.Reflect.Type + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static TypeAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/Type"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public TypeAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/reflect/Type"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of TypeAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(TypeAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator TypeAnonymousImplementation(IntPtr rawObject) + { + return new TypeAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.Type + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.reflect.Type") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class TypeAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class TypeCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Lang.Reflect.Type + { + public TypeCallbackHelper() : base("java.lang.reflect.Type") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Type + } + } // end class TypeCallbackHelper } // end namespace Java.ExternalType.Java.Lang.Reflect diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs.meta index a6d44b5..b450be4 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/Type.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5905b65cb1553e66a0fcd726265f0650 +guid: 207a74941d6e3f1680fafdb293dd8445 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/Reflect/TypeVariable.cs.meta b/Runtime/Java/ExternalType/Java/Lang/Reflect/TypeVariable.cs.meta index 866a750..da812f3 100644 --- a/Runtime/Java/ExternalType/Java/Lang/Reflect/TypeVariable.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/Reflect/TypeVariable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f859497bc46f3370a2764235a75050f3 +guid: 2c5fe8e2a6dd34509ae1ab455714b44f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs b/Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs similarity index 64% rename from Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs rename to Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs index 33d8ddd..9b83806 100644 --- a/Runtime/Java/ExternalType/Java/Io/FileDescriptor.cs +++ b/Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs @@ -2,21 +2,21 @@ using UnityEngine; -namespace Java.ExternalType.Java.Io +namespace Java.ExternalType.Java.Lang { - public class FileDescriptor : global::Google.LibraryWrapper.Java.JavaObject + public class SecurityManager : global::Google.LibraryWrapper.Java.JavaObject { private static readonly IntPtr _classObject; - static FileDescriptor() + static SecurityManager() { AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/io/FileDescriptor"); + IntPtr classObject = AndroidJNI.FindClass("java/lang/SecurityManager"); _classObject = AndroidJNI.NewGlobalRef(classObject); AndroidJNI.DeleteLocalRef(classObject); } - public FileDescriptor(IntPtr rawObject) : base(IntPtr.Zero) + public SecurityManager(IntPtr rawObject) : base(IntPtr.Zero) { if (rawObject == IntPtr.Zero) { @@ -28,7 +28,7 @@ public FileDescriptor(IntPtr rawObject) : base(IntPtr.Zero) IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - throw new ArgumentException("The provided reference is not an instance of FileDescriptor."); + throw new ArgumentException("The provided reference is not an instance of SecurityManager."); } _rawObject = AndroidJNI.NewGlobalRef(rawObject); } @@ -38,19 +38,19 @@ public FileDescriptor(IntPtr rawObject) : base(IntPtr.Zero) } } - public static explicit operator IntPtr(FileDescriptor wrapper) + public static explicit operator IntPtr(SecurityManager wrapper) { return wrapper.GetRawObject(); } - public static explicit operator FileDescriptor(IntPtr rawObject) + public static explicit operator SecurityManager(IntPtr rawObject) { - return new FileDescriptor(rawObject); + return new SecurityManager(rawObject); } public new static IntPtr GetRawClass() { return AndroidJNI.NewLocalRef(_classObject); } - } // end class FileDescriptor -} // end namespace Java.ExternalType.Java.Io + } // end class SecurityManager +} // end namespace Java.ExternalType.Java.Lang diff --git a/Runtime/Java/Lang/SecurityManager.cs.meta b/Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs.meta similarity index 83% rename from Runtime/Java/Lang/SecurityManager.cs.meta rename to Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs.meta index 7b68ccb..f28e353 100644 --- a/Runtime/Java/Lang/SecurityManager.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/SecurityManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 93197516e19c367199418ad322a910df +guid: ead69269fd453bc0a73facf543ac15f4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Lang/StringBuilder.cs.meta b/Runtime/Java/ExternalType/Java/Lang/StringBuilder.cs.meta index c68a8a8..8126455 100644 --- a/Runtime/Java/ExternalType/Java/Lang/StringBuilder.cs.meta +++ b/Runtime/Java/ExternalType/Java/Lang/StringBuilder.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ea7315033bb532488a4ddb5dd34d13ac +guid: c046c5b38045313f832ad8f6880aecba MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Net.meta b/Runtime/Java/ExternalType/Java/Net.meta index 86cacbf..51d0999 100644 --- a/Runtime/Java/ExternalType/Java/Net.meta +++ b/Runtime/Java/ExternalType/Java/Net.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 56a862a179293e818ea922edee7cf37a +guid: b3d5bc7add903ea8afe9037d649b923c folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Net/InetAddress.cs b/Runtime/Java/ExternalType/Java/Net/InetAddress.cs deleted file mode 100644 index 9c1756d..0000000 --- a/Runtime/Java/ExternalType/Java/Net/InetAddress.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.ExternalType.Java.Net -{ - public class InetAddress : global::Google.LibraryWrapper.Java.JavaObject - { - private static readonly IntPtr _classObject; - - static InetAddress() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/net/InetAddress"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public InetAddress(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of InetAddress."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(InetAddress wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator InetAddress(IntPtr rawObject) - { - return new InetAddress(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class InetAddress -} // end namespace Java.ExternalType.Java.Net diff --git a/Runtime/Java/ExternalType/Java/Net/InetAddress.cs.meta b/Runtime/Java/ExternalType/Java/Net/InetAddress.cs.meta deleted file mode 100644 index cfe8213..0000000 --- a/Runtime/Java/ExternalType/Java/Net/InetAddress.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f24a578210103931932668044a6f3332 -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/ExternalType/Java/Net/URL.cs.meta b/Runtime/Java/ExternalType/Java/Net/URL.cs.meta index 323def9..4a13e9e 100644 --- a/Runtime/Java/ExternalType/Java/Net/URL.cs.meta +++ b/Runtime/Java/ExternalType/Java/Net/URL.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5e0f5e6bfd143b3181c174026e1ab7a6 +guid: 093e094c82db39baa74528cb206598b8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Nio.meta b/Runtime/Java/ExternalType/Java/Nio.meta index 43105e1..4674f56 100644 --- a/Runtime/Java/ExternalType/Java/Nio.meta +++ b/Runtime/Java/ExternalType/Java/Nio.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c85287ff31ba36d98c22b7b6209b49ef +guid: a3f269c5b90638cab63b3f5f99da1b36 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Nio/ByteBuffer.cs.meta b/Runtime/Java/ExternalType/Java/Nio/ByteBuffer.cs.meta index 06256b5..9d14d85 100644 --- a/Runtime/Java/ExternalType/Java/Nio/ByteBuffer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Nio/ByteBuffer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0729c990e7553fc2b27c0b17ff4ac875 +guid: 1f7f71ed9a98384aae2a3dc402232fe8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Nio/Channels.meta b/Runtime/Java/ExternalType/Java/Nio/Channels.meta index 5ccdd09..9b3cb88 100644 --- a/Runtime/Java/ExternalType/Java/Nio/Channels.meta +++ b/Runtime/Java/ExternalType/Java/Nio/Channels.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2e1cdbe61ce43d41ad262c123e5aed91 +guid: 4edfb5d37ab938ab9f89c54450983644 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Nio/Channels/Channel.cs.meta b/Runtime/Java/ExternalType/Java/Nio/Channels/Channel.cs.meta index 954fce1..2d7cd0f 100644 --- a/Runtime/Java/ExternalType/Java/Nio/Channels/Channel.cs.meta +++ b/Runtime/Java/ExternalType/Java/Nio/Channels/Channel.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a7ce627a3bdd376aa0267c5d4459a6b5 +guid: 12939b74d4493c619394c4e1475165a6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Nio/CharBuffer.cs.meta b/Runtime/Java/ExternalType/Java/Nio/CharBuffer.cs.meta index 41e0aff..b41cc11 100644 --- a/Runtime/Java/ExternalType/Java/Nio/CharBuffer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Nio/CharBuffer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9f49766d473c3ef4b17db5528c0a2b9f +guid: b32d2d598f753f81a15c20aabb76a42a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Nio/Charset.meta b/Runtime/Java/ExternalType/Java/Nio/Charset.meta index 0c98443..211dff8 100644 --- a/Runtime/Java/ExternalType/Java/Nio/Charset.meta +++ b/Runtime/Java/ExternalType/Java/Nio/Charset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 28040e6834623c319d6ebc1197e48933 +guid: e9667bf12e0f3b10a916b8fc55549021 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Nio/Charset/Charset.cs.meta b/Runtime/Java/ExternalType/Java/Nio/Charset/Charset.cs.meta index aaa28c5..5375044 100644 --- a/Runtime/Java/ExternalType/Java/Nio/Charset/Charset.cs.meta +++ b/Runtime/Java/ExternalType/Java/Nio/Charset/Charset.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1f41fee49d4a398d8fef65b9c4cb1959 +guid: ff12f42911e132ceadb51133cd5105c2 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Nio/LongBuffer.cs.meta b/Runtime/Java/ExternalType/Java/Nio/LongBuffer.cs.meta index 0293397..426493c 100644 --- a/Runtime/Java/ExternalType/Java/Nio/LongBuffer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Nio/LongBuffer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 13a90d57db333397a494de4f2284c73e +guid: 73a0474fe81a3ed4b113084cfbdae371 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Security.meta b/Runtime/Java/ExternalType/Java/Security.meta index 4cd58c3..6fc0104 100644 --- a/Runtime/Java/ExternalType/Java/Security.meta +++ b/Runtime/Java/ExternalType/Java/Security.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 681b5cc7524d3378a8443655275d25f8 +guid: 2156f2b3b82b3e7f8e51d52661da7e6c folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Security/BasicPermission.cs.meta b/Runtime/Java/ExternalType/Java/Security/BasicPermission.cs.meta index b9858aa..0f778e4 100644 --- a/Runtime/Java/ExternalType/Java/Security/BasicPermission.cs.meta +++ b/Runtime/Java/ExternalType/Java/Security/BasicPermission.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 784a82d85af7334eb4164c173659e82b +guid: ed7d69bbc65833539c3e3fa0743d031c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Security/Permission.cs.meta b/Runtime/Java/ExternalType/Java/Security/Permission.cs.meta index 6413773..a46f715 100644 --- a/Runtime/Java/ExternalType/Java/Security/Permission.cs.meta +++ b/Runtime/Java/ExternalType/Java/Security/Permission.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7ba198171d343fefa35281ad9cb5015f +guid: 25ff90f13a6d3be69b89b3652dd56fc1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Security/PermissionCollection.cs.meta b/Runtime/Java/ExternalType/Java/Security/PermissionCollection.cs.meta index 88929f7..7415cde 100644 --- a/Runtime/Java/ExternalType/Java/Security/PermissionCollection.cs.meta +++ b/Runtime/Java/ExternalType/Java/Security/PermissionCollection.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ea5a3d48affc3faa81713852b6a1b459 +guid: e1333bbd7e763b518de544eb35750c9e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Security/ProtectionDomain.cs.meta b/Runtime/Java/ExternalType/Java/Security/ProtectionDomain.cs.meta index fa15334..fe0bdb9 100644 --- a/Runtime/Java/ExternalType/Java/Security/ProtectionDomain.cs.meta +++ b/Runtime/Java/ExternalType/Java/Security/ProtectionDomain.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9dfd0db1cb5f3c48be0c3bf3878784ac +guid: 3c69422cb4a530359745e2f4d31ec7f4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Time.meta b/Runtime/Java/ExternalType/Java/Time.meta index 9195e68..30200b8 100644 --- a/Runtime/Java/ExternalType/Java/Time.meta +++ b/Runtime/Java/ExternalType/Java/Time.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7e015aafa72735588e37031b5f04f366 +guid: 13e92822b002354bba665587f3503196 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Time/Instant.cs.meta b/Runtime/Java/ExternalType/Java/Time/Instant.cs.meta index 06b1d0c..f31f2e3 100644 --- a/Runtime/Java/ExternalType/Java/Time/Instant.cs.meta +++ b/Runtime/Java/ExternalType/Java/Time/Instant.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 05db8983a3ae3d47bef0cfb1aed305dd +guid: 1de7b22eb7ad3c498897cad2de3d6cde MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Time/ZoneId.cs.meta b/Runtime/Java/ExternalType/Java/Time/ZoneId.cs.meta index 7afb069..155a0a7 100644 --- a/Runtime/Java/ExternalType/Java/Time/ZoneId.cs.meta +++ b/Runtime/Java/ExternalType/Java/Time/ZoneId.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 633ed2955e663be09b66f28c5859c107 +guid: 3807ce24eecb33d1a2cf67a686f070ff MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Time/ZonedDateTime.cs.meta b/Runtime/Java/ExternalType/Java/Time/ZonedDateTime.cs.meta index 0e03d61..953ea06 100644 --- a/Runtime/Java/ExternalType/Java/Time/ZonedDateTime.cs.meta +++ b/Runtime/Java/ExternalType/Java/Time/ZonedDateTime.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f546bc5028d4374995b768eaf65997f3 +guid: 68a99f4f793733b798a7b5fc48a76547 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util.meta b/Runtime/Java/ExternalType/Java/Util.meta index 7265520..24e33c3 100644 --- a/Runtime/Java/ExternalType/Java/Util.meta +++ b/Runtime/Java/ExternalType/Java/Util.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b55d0f16e8e831f3a4fa741c878a9ff0 +guid: ca1f835ccbda3b57b473edac8df382ee folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Util/Concurrent.meta b/Runtime/Java/ExternalType/Java/Util/Concurrent.meta index 8067aa3..f52f196 100644 --- a/Runtime/Java/ExternalType/Java/Util/Concurrent.meta +++ b/Runtime/Java/ExternalType/Java/Util/Concurrent.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 590e313f0bd83b9591cc2a919893cab0 +guid: 716de75a1528330eb6264e21f4ab5ed7 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Util/Concurrent/TimeUnit.cs.meta b/Runtime/Java/ExternalType/Java/Util/Concurrent/TimeUnit.cs.meta index d00aeb1..b690506 100644 --- a/Runtime/Java/ExternalType/Java/Util/Concurrent/TimeUnit.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Concurrent/TimeUnit.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a539112a2438319cb39f5bced82fb96c +guid: f26e8e154a333aa29aa54a913873702b MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function.meta b/Runtime/Java/ExternalType/Java/Util/Function.meta index f8548ad..bd2642d 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4078cfaa2e4739e3b381432215909da7 +guid: a5b842761a1439fea9b9455f0a96e2f7 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Util/Function/BiConsumer.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/BiConsumer.cs.meta index 22191bf..520a021 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/BiConsumer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/BiConsumer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 581766d716193f3288e94cb99a8328ab +guid: 0d8da44adf26329f896ac9e3399e3f55 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/BiFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/BiFunction.cs.meta index 957d47f..470e08a 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/BiFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/BiFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 399cac9c30363d7cb877dab85c844ca9 +guid: 802bdca3fea8333cbe378e57643d4ea0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/BinaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/BinaryOperator.cs.meta index 83af425..dd13d31 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/BinaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/BinaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 246047d5794f3c419cb65515c87af578 +guid: 0dcda896d846363ba21f6469d1313501 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/Consumer.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/Consumer.cs.meta index 8e27a3e..4adac46 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/Consumer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/Consumer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5943b3b817f7351e90d66b222b5766ce +guid: f05520476f703f2bb036ca43ccecfe15 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/DoubleBinaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/DoubleBinaryOperator.cs.meta index 1ad99ea..c0ba612 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/DoubleBinaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/DoubleBinaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 88931d3fbdc23041b707bd67ac75e032 +guid: c8bba8b2663731ac99a7424e32faa769 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs b/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs index 1928c53..17e035d 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs +++ b/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Util.Function { public interface DoubleConsumer : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.DoubleConsumer + private static readonly IntPtr _classObject; + + static DoubleConsumer() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/DoubleConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class DoubleConsumer + + public class DoubleConsumerAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.DoubleConsumer + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static DoubleConsumerAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/DoubleConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public DoubleConsumerAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/function/DoubleConsumer"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of DoubleConsumerAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(DoubleConsumerAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator DoubleConsumerAnonymousImplementation(IntPtr rawObject) + { + return new DoubleConsumerAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.DoubleConsumer + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.function.DoubleConsumer") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class DoubleConsumerAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class DoubleConsumerCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.DoubleConsumer + { + public DoubleConsumerCallbackHelper() : base("java.util.function.DoubleConsumer") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class DoubleConsumer + } + } // end class DoubleConsumerCallbackHelper } // end namespace Java.ExternalType.Java.Util.Function diff --git a/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs.meta index 2ab4114..29009cb 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/DoubleConsumer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 57b512e997e5364eb4abcc8873709f31 +guid: 02adec77edc4321baa009f26e6e42396 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/DoubleSupplier.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/DoubleSupplier.cs.meta index f08fe46..c7f484f 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/DoubleSupplier.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/DoubleSupplier.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 294592b2019f35b194db039e9b7bdb32 +guid: 15c4ab490d013504bd2171524bce5940 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/Function.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/Function.cs.meta index 022627c..6c343df 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/Function.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/Function.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bb56ffabb48c36b9ba9b7ff77196988c +guid: 72147c531b343c659413ef5bf5ee0f74 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntBinaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntBinaryOperator.cs.meta index b6b5191..e3f9a23 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntBinaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntBinaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7699a91f6c62365e977358ee533e0d3d +guid: 58ffdaab13ae3b408e59bfffeaec0917 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs b/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs index 4ccd782..ef1ef28 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Util.Function { public interface IntConsumer : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.IntConsumer + private static readonly IntPtr _classObject; + + static IntConsumer() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/IntConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class IntConsumer + + public class IntConsumerAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.IntConsumer + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static IntConsumerAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/IntConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public IntConsumerAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/function/IntConsumer"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of IntConsumerAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(IntConsumerAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator IntConsumerAnonymousImplementation(IntPtr rawObject) + { + return new IntConsumerAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.IntConsumer + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.function.IntConsumer") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class IntConsumerAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class IntConsumerCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.IntConsumer + { + public IntConsumerCallbackHelper() : base("java.util.function.IntConsumer") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class IntConsumer + } + } // end class IntConsumerCallbackHelper } // end namespace Java.ExternalType.Java.Util.Function diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs.meta index 2f70228..9353d5d 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntConsumer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 515da18a88903d85be3c99a72092ab10 +guid: 66561ca89c68345ea2c83758bca02197 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntFunction.cs.meta index a2e9a02..75d7a4d 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0439184c2aa93c1bb01e9bdd1de656ce +guid: 5d2579f2221b3fb2b330c8c2740d2a3f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntSupplier.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntSupplier.cs.meta index 48c4eb9..10f140b 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntSupplier.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntSupplier.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c51ebda8fedd3887a7c68c36584318b0 +guid: f9eaca2f08213a6b9c5ac8ce48a4c7c6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntToDoubleFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntToDoubleFunction.cs.meta index a1ff685..d0cbecd 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntToDoubleFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntToDoubleFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 824e566a450630a580e4f8c92cf85dc7 +guid: 122624f9519931f38ec731080483c53a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntToLongFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntToLongFunction.cs.meta index 649f97d..053ab78 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntToLongFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntToLongFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 887297bc569a39cfa3c6dfb97b04322b +guid: e2a362fa2ff2338cbb36075c00e1b4c9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/IntUnaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/IntUnaryOperator.cs.meta index aaa0237..84cfc5d 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/IntUnaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/IntUnaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 99cb99b18cf33c7eba342363744cfcf0 +guid: 8bab45bb3ce43c6d848d7309eb08692d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/LongBinaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/LongBinaryOperator.cs.meta index bc44fd0..5a7362b 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/LongBinaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/LongBinaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9e0b410bacc032ca985cacba20df2a0f +guid: a8f22a17b7833503a061b005c1eb4337 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs b/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs index 3a58d88..df2be5c 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs +++ b/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs @@ -6,64 +6,74 @@ namespace Java.ExternalType.Java.Util.Function { public interface LongConsumer : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.LongConsumer + private static readonly IntPtr _classObject; + + static LongConsumer() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/LongConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class LongConsumer + + public class LongConsumerAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Function.LongConsumer + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static LongConsumerAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/function/LongConsumer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public LongConsumerAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/function/LongConsumer"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of LongConsumerAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(LongConsumerAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator LongConsumerAnonymousImplementation(IntPtr rawObject) + { + return new LongConsumerAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.LongConsumer + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.function.LongConsumer") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class LongConsumerAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class LongConsumerCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Function.LongConsumer + { + public LongConsumerCallbackHelper() : base("java.util.function.LongConsumer") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class LongConsumer + } + } // end class LongConsumerCallbackHelper } // end namespace Java.ExternalType.Java.Util.Function diff --git a/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs.meta index dd75dc0..e252ab9 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/LongConsumer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 70ed34ada12f35fc8699a953e86e9e52 +guid: a6421a60ec1b319d8973669e8ffbff26 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/LongSupplier.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/LongSupplier.cs.meta index 3ae204a..9d094ae 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/LongSupplier.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/LongSupplier.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 61ad8a78386338e78126dde37e65c9be +guid: bf17d20dcdf33c3595401445abaade0b MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/Predicate.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/Predicate.cs.meta index fb946da..07ba900 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/Predicate.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/Predicate.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 22ab16d6b3c03007b30cfafee516de8e +guid: ae66ece63e133691af9a0f21e91cde98 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/Supplier.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/Supplier.cs.meta index 79306d5..f5ae7c4 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/Supplier.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/Supplier.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c24be6fcb45a34a3b9c3d4a2e9b0f71a +guid: 76ebccfdfa7a30bdaecd6886a924afb7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/ToDoubleFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/ToDoubleFunction.cs.meta index 42b61a6..b6181dd 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/ToDoubleFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/ToDoubleFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7366e93b0f6a3d8fb0f2970cf77b4948 +guid: 2459593afec83134b48fca7eac4e14ff MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/ToIntFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/ToIntFunction.cs.meta index 97007e8..67f2cbf 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/ToIntFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/ToIntFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ee838a31488031b1886d340f9410c1a9 +guid: 8574d4708598352397ba9e67244ce0cb MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/ToLongFunction.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/ToLongFunction.cs.meta index 1b9ec15..268bfdb 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/ToLongFunction.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/ToLongFunction.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 653dbfea4b01368faeacf5effb25564e +guid: 053cb334579b32abb5f8ffe1b78c4693 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Function/UnaryOperator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Function/UnaryOperator.cs.meta index 55784bf..56fa01e 100644 --- a/Runtime/Java/ExternalType/Java/Util/Function/UnaryOperator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Function/UnaryOperator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f73f6eb95e6f35afb471b8af1a23fad4 +guid: 8f4d75ab1e4532b3a0df073599e72ec7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/PrimitiveIterator.cs.meta b/Runtime/Java/ExternalType/Java/Util/PrimitiveIterator.cs.meta index 356ced0..22bea92 100644 --- a/Runtime/Java/ExternalType/Java/Util/PrimitiveIterator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/PrimitiveIterator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c7da5ddf710b30e0b35af45e38c7eec1 +guid: 24697cb9bf3f338aac896cfbde380612 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Spliterator.cs b/Runtime/Java/ExternalType/Java/Util/Spliterator.cs index 254aab2..c3f548e 100644 --- a/Runtime/Java/ExternalType/Java/Util/Spliterator.cs +++ b/Runtime/Java/ExternalType/Java/Util/Spliterator.cs @@ -8,209 +8,176 @@ public static class Spliterator { public interface OfDouble : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfDouble - { - private static readonly IntPtr _classObject; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfDouble"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + private static readonly IntPtr _classObject; - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfDouble + static OfDouble() { - public CallbackHelper() : base("java.util.Spliterator$OfDouble") {} - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - return base.Invoke(methodName, args); - } - } // end class CallbackHelper + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfDouble"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } } // end class OfDouble - public interface OfInt : global::Google.LibraryWrapper.Java.JavaInterface + public class OfDoubleAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfDouble { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfInt + private static readonly IntPtr _classObject; + + static OfDoubleAnonymousImplementation() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfDouble"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() + public OfDoubleAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfInt"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of OfDoubleAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(OfDoubleAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator OfDoubleAnonymousImplementation(IntPtr rawObject) + { + return new OfDoubleAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfInt + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.Spliterator$OfInt") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class OfDoubleAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class OfDoubleCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfDouble + { + public OfDoubleCallbackHelper() : base("java.util.Spliterator$OfDouble") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper + } + } // end class OfDoubleCallbackHelper + + public interface OfInt : global::Google.LibraryWrapper.Java.JavaInterface + { + private static readonly IntPtr _classObject; + + static OfInt() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfInt"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } } // end class OfInt - public interface OfLong : global::Google.LibraryWrapper.Java.JavaInterface + public class OfIntAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfInt { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfLong + private static readonly IntPtr _classObject; + + static OfIntAnonymousImplementation() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfInt"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() + public OfIntAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfLong"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of OfIntAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(OfIntAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator OfIntAnonymousImplementation(IntPtr rawObject) + { + return new OfIntAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfLong + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.Spliterator$OfLong") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class OfIntAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class OfIntCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfInt + { + public OfIntCallbackHelper() : base("java.util.Spliterator$OfInt") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper + } + } // end class OfIntCallbackHelper + + public interface OfLong : global::Google.LibraryWrapper.Java.JavaInterface + { + private static readonly IntPtr _classObject; + + static OfLong() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfLong"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } } // end class OfLong - } // end class Spliterator - public interface Spliterator : global::Google.LibraryWrapper.Java.JavaInterface where T0 : class - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator + public class OfLongAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator.OfLong { private static readonly IntPtr _classObject; - static AnonymousImplementation() + static OfLongAnonymousImplementation() { AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator"); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator$OfLong"); _classObject = AndroidJNI.NewGlobalRef(classObject); AndroidJNI.DeleteLocalRef(classObject); } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public OfLongAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) { if (rawObject == IntPtr.Zero) { @@ -222,7 +189,7 @@ public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); + throw new ArgumentException("The provided reference is not an instance of OfLongAnonymousImplementation."); } _rawObject = AndroidJNI.NewGlobalRef(rawObject); } @@ -232,30 +199,103 @@ public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) } } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public static explicit operator IntPtr(OfLongAnonymousImplementation wrapper) { return wrapper.GetRawObject(); } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public static explicit operator OfLongAnonymousImplementation(IntPtr rawObject) { - return new AnonymousImplementation(rawObject); + return new OfLongAnonymousImplementation(rawObject); } public new static IntPtr GetRawClass() { return AndroidJNI.NewLocalRef(_classObject); } - } // end class AnonymousImplementation + } // end class OfLongAnonymousImplementation - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator + public abstract class OfLongCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator.OfLong { - public CallbackHelper() : base("java.util.Spliterator") {} + public OfLongCallbackHelper() : base("java.util.Spliterator$OfLong") {} public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) { - return base.Invoke(methodName, args); + return base.Invoke(methodName, args); } - } // end class CallbackHelper + } // end class OfLongCallbackHelper + } // end class Spliterator + public interface Spliterator : global::Google.LibraryWrapper.Java.JavaInterface where T0 : class + { + private static readonly IntPtr _classObject; + + static Spliterator() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class Spliterator + + public class SpliteratorAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.ExternalType.Java.Util.Spliterator where T0 : class + { + private static readonly IntPtr _classObject; + + static SpliteratorAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Spliterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public SpliteratorAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) + { + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) + { + throw new ArgumentException("The provided reference is not an instance of SpliteratorAnonymousImplementation."); + } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public static explicit operator IntPtr(SpliteratorAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } + + public static explicit operator SpliteratorAnonymousImplementation(IntPtr rawObject) + { + return new SpliteratorAnonymousImplementation(rawObject); + } + + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class SpliteratorAnonymousImplementation + + public abstract class SpliteratorCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.ExternalType.Java.Util.Spliterator where T0 : class + { + public SpliteratorCallbackHelper() : base("java.util.Spliterator") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { + return base.Invoke(methodName, args); + } + } // end class SpliteratorCallbackHelper } // end namespace Java.ExternalType.Java.Util diff --git a/Runtime/Java/ExternalType/Java/Util/Spliterator.cs.meta b/Runtime/Java/ExternalType/Java/Util/Spliterator.cs.meta index df28d2d..4dead2a 100644 --- a/Runtime/Java/ExternalType/Java/Util/Spliterator.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Spliterator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bec26efb50393438976b1c4ae1986771 +guid: 9c3fbd7f02e8360db5794fd9c52e8632 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Stream.meta b/Runtime/Java/ExternalType/Java/Util/Stream.meta index d50b5bf..b520765 100644 --- a/Runtime/Java/ExternalType/Java/Util/Stream.meta +++ b/Runtime/Java/ExternalType/Java/Util/Stream.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dbc296ce5edc36d3a8b033ca09130a9c +guid: 55dfd18b277c38c08995cd76cb7570f8 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/ExternalType/Java/Util/Stream/DoubleStream.cs.meta b/Runtime/Java/ExternalType/Java/Util/Stream/DoubleStream.cs.meta index e845b8b..e0cf717 100644 --- a/Runtime/Java/ExternalType/Java/Util/Stream/DoubleStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Stream/DoubleStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0aa2a0b1334c320d9160ce59b99936be +guid: b17554b9e4863bea960a517f732e9e0e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Stream/IntStream.cs.meta b/Runtime/Java/ExternalType/Java/Util/Stream/IntStream.cs.meta index dad8898..13e513a 100644 --- a/Runtime/Java/ExternalType/Java/Util/Stream/IntStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Stream/IntStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d9c440ce83c13edcb6c51b435c673ed4 +guid: 5c8161b06a103695b0262055451c73da MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Stream/LongStream.cs.meta b/Runtime/Java/ExternalType/Java/Util/Stream/LongStream.cs.meta index 6c6f390..a40d6cd 100644 --- a/Runtime/Java/ExternalType/Java/Util/Stream/LongStream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Stream/LongStream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4b59eb94258a327e9828cb707f5097c7 +guid: c6a97c26eb94320d98f7d976773c7d5e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/ExternalType/Java/Util/Stream/Stream.cs.meta b/Runtime/Java/ExternalType/Java/Util/Stream/Stream.cs.meta index 48cede3..0dc6436 100644 --- a/Runtime/Java/ExternalType/Java/Util/Stream/Stream.cs.meta +++ b/Runtime/Java/ExternalType/Java/Util/Stream/Stream.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: aaf57af327863a448ddbf6385377f480 +guid: 5929d74ea0113ebd98db52a3cb053614 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang.meta b/Runtime/Java/Lang.meta index 3c0c904..6142a91 100644 --- a/Runtime/Java/Lang.meta +++ b/Runtime/Java/Lang.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 143271a2f9123645889c0cc8f3e9b559 +guid: 0dfd59041dd33cd2bdc8d2d5f938f210 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/Lang/AbstractMethodError.cs b/Runtime/Java/Lang/AbstractMethodError.cs index e9928f3..f3cf45c 100644 --- a/Runtime/Java/Lang/AbstractMethodError.cs +++ b/Runtime/Java/Lang/AbstractMethodError.cs @@ -25,7 +25,7 @@ public AbstractMethodError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public AbstractMethodError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/AbstractMethodError.cs.meta b/Runtime/Java/Lang/AbstractMethodError.cs.meta index 46e2806..4ba3f15 100644 --- a/Runtime/Java/Lang/AbstractMethodError.cs.meta +++ b/Runtime/Java/Lang/AbstractMethodError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 779b850906543059b321cc00a78f10d2 +guid: 23db83b2d5aa3800b1331f28f35256c8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Appendable.cs b/Runtime/Java/Lang/Appendable.cs index 1545efb..ddca2d6 100644 --- a/Runtime/Java/Lang/Appendable.cs +++ b/Runtime/Java/Lang/Appendable.cs @@ -6,136 +6,152 @@ namespace Java.Lang { public interface Appendable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Appendable + private static readonly IntPtr _classObject; + + static Appendable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Appendable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq); + + global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end); + + global::Java.Lang.Appendable Append(char c); + } // end class Appendable + + public class AppendableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Appendable + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; - static AnonymousImplementation() + static AppendableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Appendable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "append", "(Ljava/lang/CharSequence;)Ljava/lang/Appendable;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "append", "(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "append", "(C)Ljava/lang/Appendable;"); + } + + public AppendableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Appendable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "append", "(Ljava/lang/CharSequence;)Ljava/lang/Appendable;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "append", "(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "append", "(C)Ljava/lang/Appendable;"); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of AppendableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = csq.GetRawObject() }}; - return new global::Java.Lang.Appendable.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end) + public global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = csq.GetRawObject() }, new jvalue { i = start }, new jvalue { i = end }}; - return new global::Java.Lang.Appendable.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = csq.GetRawObject() } }; + return new global::Java.Lang.AppendableAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } - - public global::Java.Lang.Appendable Append(char c) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; - return new global::Java.Lang.Appendable.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end) + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = csq.GetRawObject() }, + new jvalue { i = start }, + new jvalue { i = end } + }; + return new global::Java.Lang.AppendableAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public global::Java.Lang.Appendable Append(char c) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; + return new global::Java.Lang.AppendableAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } + + public static explicit operator IntPtr(AppendableAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } + + public static explicit operator AppendableAnonymousImplementation(IntPtr rawObject) + { + return new AppendableAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Appendable + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.lang.Appendable") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class AppendableAnonymousImplementation + + public abstract class AppendableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Appendable + { + public AppendableCallbackHelper() : base("java.lang.Appendable") {} - public abstract global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq); + public abstract global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq); - public abstract global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end); + public abstract global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end); - public abstract global::Java.Lang.Appendable Append(char c); + public abstract global::Java.Lang.Appendable Append(char c); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "append" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append(new global::Java.Lang.CharSequence.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append(new global::Java.Lang.CharSequenceAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "append" && args.Length == 3) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append(new global::Java.Lang.CharSequence.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()), (int) args[1], (int) args[2])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append(new global::Java.Lang.CharSequenceAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()), (int) args[1], (int) args[2])); } else if (methodName == "append" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append((char) args[0])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Append((char) args[0])); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq); - - global::Java.Lang.Appendable Append(global::Java.Lang.CharSequence csq, int start, int end); - - global::Java.Lang.Appendable Append(char c); - } // end class Appendable + } + } // end class AppendableCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Appendable.cs.meta b/Runtime/Java/Lang/Appendable.cs.meta index 27afa36..be51b29 100644 --- a/Runtime/Java/Lang/Appendable.cs.meta +++ b/Runtime/Java/Lang/Appendable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d02b16750193327b9f01c653c39cd584 +guid: 04bc761cf4853594be47a0021e87c523 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ArithmeticException.cs b/Runtime/Java/Lang/ArithmeticException.cs index ee96505..8f065d2 100644 --- a/Runtime/Java/Lang/ArithmeticException.cs +++ b/Runtime/Java/Lang/ArithmeticException.cs @@ -25,7 +25,7 @@ public ArithmeticException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public ArithmeticException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ArithmeticException.cs.meta b/Runtime/Java/Lang/ArithmeticException.cs.meta index a02c4ce..1f75161 100644 --- a/Runtime/Java/Lang/ArithmeticException.cs.meta +++ b/Runtime/Java/Lang/ArithmeticException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ab63902c26d9304491166f96a917d4e8 +guid: b31de71e285d34da9946e6d307a1accf MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs b/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs index f27953b..cef3655 100644 --- a/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs +++ b/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs @@ -27,7 +27,7 @@ public ArrayIndexOutOfBoundsException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -42,7 +42,7 @@ public ArrayIndexOutOfBoundsException(int index) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -57,7 +57,7 @@ public ArrayIndexOutOfBoundsException(global::System.String s) : base(IntPtr.Zer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs.meta b/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs.meta index 158dc22..3e57273 100644 --- a/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs.meta +++ b/Runtime/Java/Lang/ArrayIndexOutOfBoundsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 60030639583332c5ad2c7a5434d1b75f +guid: a9d6dead194c32308717945c56493333 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ArrayStoreException.cs b/Runtime/Java/Lang/ArrayStoreException.cs index 97cf335..7ab7e00 100644 --- a/Runtime/Java/Lang/ArrayStoreException.cs +++ b/Runtime/Java/Lang/ArrayStoreException.cs @@ -25,7 +25,7 @@ public ArrayStoreException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public ArrayStoreException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ArrayStoreException.cs.meta b/Runtime/Java/Lang/ArrayStoreException.cs.meta index 18737ea..e6a5d1b 100644 --- a/Runtime/Java/Lang/ArrayStoreException.cs.meta +++ b/Runtime/Java/Lang/ArrayStoreException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 33969593cc4e306b875eb4e448497d7f +guid: 74ecd50f15a936c7bb230e08b60e2eda MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/AssertionError.cs b/Runtime/Java/Lang/AssertionError.cs index 9e0bb85..c45e95c 100644 --- a/Runtime/Java/Lang/AssertionError.cs +++ b/Runtime/Java/Lang/AssertionError.cs @@ -39,7 +39,7 @@ public AssertionError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -54,7 +54,7 @@ public AssertionError(global::Google.LibraryWrapper.Java.JavaObject detailMessag try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = detailMessage.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = detailMessage.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -69,7 +69,7 @@ public AssertionError(bool detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -84,7 +84,7 @@ public AssertionError(char detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -99,7 +99,7 @@ public AssertionError(int detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -114,7 +114,7 @@ public AssertionError(long detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -129,7 +129,7 @@ public AssertionError(float detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId6, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -144,7 +144,7 @@ public AssertionError(double detailMessage) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = detailMessage }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = detailMessage } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId7, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -159,7 +159,12 @@ public AssertionError(global::System.String message, global::Java.Lang.Throwable try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId8, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/AssertionError.cs.meta b/Runtime/Java/Lang/AssertionError.cs.meta index 119775d..15e882d 100644 --- a/Runtime/Java/Lang/AssertionError.cs.meta +++ b/Runtime/Java/Lang/AssertionError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dfd763aa0bb33977870b675105cd2575 +guid: 906ec2c1c1563098a2cc25f799af5859 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/AutoCloseable.cs b/Runtime/Java/Lang/AutoCloseable.cs index 4c69587..2ce79e9 100644 --- a/Runtime/Java/Lang/AutoCloseable.cs +++ b/Runtime/Java/Lang/AutoCloseable.cs @@ -6,89 +6,99 @@ namespace Java.Lang { public interface AutoCloseable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.AutoCloseable + private static readonly IntPtr _classObject; + + static AutoCloseable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/AutoCloseable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/AutoCloseable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "close", "()V"); - } + void Close(); + } // end class AutoCloseable + + public class AutoCloseableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.AutoCloseable + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static AutoCloseableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/AutoCloseable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "close", "()V"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public AutoCloseableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void Close() + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of AutoCloseableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void Close() + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.AutoCloseable + public static explicit operator IntPtr(AutoCloseableAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.AutoCloseable") {} + return wrapper.GetRawObject(); + } - public abstract void Close(); + public static explicit operator AutoCloseableAnonymousImplementation(IntPtr rawObject) + { + return new AutoCloseableAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class AutoCloseableAnonymousImplementation + + public abstract class AutoCloseableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.AutoCloseable + { + public AutoCloseableCallbackHelper() : base("java.lang.AutoCloseable") {} + + public abstract void Close(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "close" && args.Length == 0) { - Close(); - return null; + Close(); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void Close(); - } // end class AutoCloseable + } + } // end class AutoCloseableCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/AutoCloseable.cs.meta b/Runtime/Java/Lang/AutoCloseable.cs.meta index b95cb2b..a807d15 100644 --- a/Runtime/Java/Lang/AutoCloseable.cs.meta +++ b/Runtime/Java/Lang/AutoCloseable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d687294a7c6a327686b533f1e8d9de0f +guid: 739e4d9fd6eb3715997e79dd17043986 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Boolean.cs b/Runtime/Java/Lang/Boolean.cs index a23937e..cba3a40 100644 --- a/Runtime/Java/Lang/Boolean.cs +++ b/Runtime/Java/Lang/Boolean.cs @@ -8,7 +8,10 @@ public class Boolean : global::Google.LibraryWrapper.Java.JavaObject, global::Ja { public static global::Java.Lang.Boolean TRUE { - get => new global::Java.Lang.Boolean(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Lang.Boolean(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -18,7 +21,10 @@ public class Boolean : global::Google.LibraryWrapper.Java.JavaObject, global::Ja } public static global::Java.Lang.Boolean FALSE { - get => new global::Java.Lang.Boolean(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Lang.Boolean(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,7 +34,10 @@ public class Boolean : global::Google.LibraryWrapper.Java.JavaObject, global::Ja } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -90,7 +99,7 @@ public Boolean(bool value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -105,7 +114,7 @@ public Boolean(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -142,7 +151,7 @@ public static bool ParseBoolean(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId0, args_); } finally @@ -156,7 +165,7 @@ public bool BooleanValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -170,7 +179,7 @@ public bool BooleanValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = b }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = b } }; return new global::Java.Lang.Boolean(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -184,7 +193,7 @@ public bool BooleanValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Boolean(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -198,7 +207,7 @@ public bool BooleanValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = b }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = b } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId4, args_); } finally @@ -212,7 +221,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -226,7 +235,7 @@ public static int HashCode(bool value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId6, args_); } finally @@ -240,7 +249,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -254,7 +263,7 @@ public static bool GetBoolean(global::System.String name) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId8, args_); } finally @@ -268,7 +277,7 @@ public int CompareTo(global::Java.Lang.Boolean b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = b.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = b.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -282,7 +291,12 @@ public static int Compare(bool x, bool y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = x }, new jvalue { z = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = x }, + new jvalue { z = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId10, args_); } finally @@ -296,7 +310,12 @@ public static bool LogicalAnd(bool a, bool b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = a }, new jvalue { z = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = a }, + new jvalue { z = b } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId11, args_); } finally @@ -310,7 +329,12 @@ public static bool LogicalOr(bool a, bool b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = a }, new jvalue { z = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = a }, + new jvalue { z = b } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId12, args_); } finally @@ -324,7 +348,12 @@ public static bool LogicalXor(bool a, bool b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = a }, new jvalue { z = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = a }, + new jvalue { z = b } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId13, args_); } finally diff --git a/Runtime/Java/Lang/Boolean.cs.meta b/Runtime/Java/Lang/Boolean.cs.meta index 5f5ee5c..8de5953 100644 --- a/Runtime/Java/Lang/Boolean.cs.meta +++ b/Runtime/Java/Lang/Boolean.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4bfef8a699ec3096a51167c96c263752 +guid: dff383d0d35e381d875f093a79dc654a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/BootstrapMethodError.cs b/Runtime/Java/Lang/BootstrapMethodError.cs index 6a69896..7a90f2c 100644 --- a/Runtime/Java/Lang/BootstrapMethodError.cs +++ b/Runtime/Java/Lang/BootstrapMethodError.cs @@ -29,7 +29,7 @@ public BootstrapMethodError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public BootstrapMethodError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public BootstrapMethodError(global::System.String s, global::Java.Lang.Throwable try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public BootstrapMethodError(global::Java.Lang.Throwable cause) : base(IntPtr.Zer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/BootstrapMethodError.cs.meta b/Runtime/Java/Lang/BootstrapMethodError.cs.meta index 681ef97..db1dd6f 100644 --- a/Runtime/Java/Lang/BootstrapMethodError.cs.meta +++ b/Runtime/Java/Lang/BootstrapMethodError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a3b5bb750a233921bd65ebc2277cb013 +guid: cbeff785db1c37c1b79a9672865d9dec MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Byte.cs b/Runtime/Java/Lang/Byte.cs index 3890e0b..9f6ac68 100644 --- a/Runtime/Java/Lang/Byte.cs +++ b/Runtime/Java/Lang/Byte.cs @@ -8,17 +8,32 @@ public class Byte : global::Java.Lang.Number, global::Java.ExternalType.Java.Lan { public static sbyte MIN_VALUE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId0, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId0); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId0, value); + } } public static sbyte MAX_VALUE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId1, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId1); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId1, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,13 +43,25 @@ public static sbyte MAX_VALUE } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + } } private static readonly IntPtr _classObject; @@ -94,7 +121,18 @@ public Byte(sbyte value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = value + #else + b = (byte)value + #endif + } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -109,7 +147,7 @@ public Byte(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -146,7 +184,18 @@ public Byte(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = b + #else + b = (byte)b + #endif + } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -160,7 +209,18 @@ public Byte(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = b + #else + b = (byte)b + #endif + } + }; return new global::Java.Lang.Byte(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -174,8 +234,13 @@ public static sbyte ParseByte(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; - return AndroidJNI.CallStaticSByteMethod(_classObject, _cachedMethodId2, args_); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; + return global::Google.LibraryWrapper.Java.Utils.CallStaticSByteMethod(_classObject, _cachedMethodId2, args_); } finally { @@ -188,8 +253,8 @@ public static sbyte ParseByte(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; - return AndroidJNI.CallStaticSByteMethod(_classObject, _cachedMethodId3, args_); + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; + return global::Google.LibraryWrapper.Java.Utils.CallStaticSByteMethod(_classObject, _cachedMethodId3, args_); } finally { @@ -202,7 +267,12 @@ public static sbyte ParseByte(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return new global::Java.Lang.Byte(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -216,7 +286,7 @@ public static sbyte ParseByte(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Byte(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally @@ -230,7 +300,7 @@ public static sbyte ParseByte(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Byte(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally @@ -244,7 +314,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -258,7 +328,18 @@ public static int HashCode(sbyte value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = value + #else + b = (byte)value + #endif + } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId8, args_); } finally @@ -272,7 +353,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -286,7 +367,7 @@ public int CompareTo(global::Java.Lang.Byte anotherByte) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherByte.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherByte.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -300,7 +381,26 @@ public static int Compare(sbyte x, sbyte y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = x }, new jvalue { b = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = x + #else + b = (byte)x + #endif + }, + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = y + #else + b = (byte)y + #endif + } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId11, args_); } finally @@ -314,7 +414,18 @@ public static int ToUnsignedInt(sbyte x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = x }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = x + #else + b = (byte)x + #endif + } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId12, args_); } finally @@ -328,7 +439,18 @@ public static long ToUnsignedLong(sbyte x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { b = x }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue + { + #if UNITY_2019_1_OR_NEWER + b = x + #else + b = (byte)x + #endif + } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId13, args_); } finally diff --git a/Runtime/Java/Lang/Byte.cs.meta b/Runtime/Java/Lang/Byte.cs.meta index 2f5b13c..4c73a7b 100644 --- a/Runtime/Java/Lang/Byte.cs.meta +++ b/Runtime/Java/Lang/Byte.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 994f843ff2a23102a8f8172908b94d1c +guid: 453020d3900b3efb8f1be02574ac2594 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/CharSequence.cs b/Runtime/Java/Lang/CharSequence.cs index 40d8ec1..794eab9 100644 --- a/Runtime/Java/Lang/CharSequence.cs +++ b/Runtime/Java/Lang/CharSequence.cs @@ -6,170 +6,197 @@ namespace Java.Lang { public interface CharSequence : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.CharSequence + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + + static CharSequence() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/CharSequence"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "chars", "()Ljava/util/stream/IntStream;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "codePoints", "()Ljava/util/stream/IntStream;"); + } + + int Length(); + + char CharAt(int index); - static AnonymousImplementation() + global::Java.Lang.CharSequence SubSequence(int start, int end); + + global::System.String ToString(); + + global::Java.ExternalType.Java.Util.Stream.IntStream Chars() + { + try { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/CharSequence"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "length", "()I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "charAt", "(I)C"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "subSequence", "(II)Ljava/lang/CharSequence;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "chars", "()Ljava/util/stream/IntStream;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "codePoints", "()Ljava/util/stream/IntStream;"); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId0, args_)); } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + finally { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int Length() + global::Java.ExternalType.Java.Util.Stream.IntStream CodePoints() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId1, args_)); } - - public char CharAt(int index) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; - return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class CharSequence + + public class CharSequenceAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.CharSequence + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; - public global::Java.Lang.CharSequence SubSequence(int start, int end) + static CharSequenceAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/CharSequence"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "length", "()I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "charAt", "(I)C"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "subSequence", "(II)Ljava/lang/CharSequence;"); + } + + public CharSequenceAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }, new jvalue { i = end }}; - return new global::Java.Lang.CharSequence.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public global::Java.ExternalType.Java.Util.Stream.IntStream Chars() + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of CharSequenceAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public global::Java.ExternalType.Java.Util.Stream.IntStream CodePoints() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public int Length() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public char CharAt(int index) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; + return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId1, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public global::Java.Lang.CharSequence SubSequence(int start, int end) + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = start }, + new jvalue { i = end } + }; + return new global::Java.Lang.CharSequenceAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.CharSequence + public static explicit operator IntPtr(CharSequenceAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.CharSequence") {} + return wrapper.GetRawObject(); + } - public abstract int Length(); + public static explicit operator CharSequenceAnonymousImplementation(IntPtr rawObject) + { + return new CharSequenceAnonymousImplementation(rawObject); + } - public abstract char CharAt(int index); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class CharSequenceAnonymousImplementation + + public abstract class CharSequenceCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.CharSequence + { + public CharSequenceCallbackHelper() : base("java.lang.CharSequence") {} - public abstract global::Java.Lang.CharSequence SubSequence(int start, int end); + public abstract int Length(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract char CharAt(int index); + + public abstract global::Java.Lang.CharSequence SubSequence(int start, int end); + + public abstract global::Java.ExternalType.Java.Util.Stream.IntStream Chars(); + + public abstract global::Java.ExternalType.Java.Util.Stream.IntStream CodePoints(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "length" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Length()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Length()); } else if (methodName == "charAt" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CharAt((int) args[0])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CharAt((int) args[0])); } else if (methodName == "subSequence" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSequence((int) args[0], (int) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSequence((int) args[0], (int) args[1])); } - return base.Invoke(methodName, args); + else if (methodName == "chars" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Chars()); } - } // end class CallbackHelper - - int Length(); - - char CharAt(int index); - - global::Java.Lang.CharSequence SubSequence(int start, int end); - - global::System.String ToString(); - } // end class CharSequence + else if (methodName == "codePoints" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CodePoints()); + } + return base.Invoke(methodName, args); + } + } // end class CharSequenceCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/CharSequence.cs.meta b/Runtime/Java/Lang/CharSequence.cs.meta index da1da73..174ab58 100644 --- a/Runtime/Java/Lang/CharSequence.cs.meta +++ b/Runtime/Java/Lang/CharSequence.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 45c381e0bc4731fb9590074a9158405c +guid: aad7e41dcd3d32f99a72874859c4b803 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Character.cs b/Runtime/Java/Lang/Character.cs index 0a33341..3bb918d 100644 --- a/Runtime/Java/Lang/Character.cs +++ b/Runtime/Java/Lang/Character.cs @@ -29,7 +29,7 @@ public Subset() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -66,7 +66,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -80,7 +80,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -109,7 +109,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset { public static global::Java.Lang.Character.UnicodeBlock BASIC_LATIN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -119,7 +122,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_1_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -129,7 +135,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -139,7 +148,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_EXTENDED_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -149,7 +161,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock IPA_EXTENSIONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -159,7 +174,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SPACING_MODIFIER_LETTERS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -169,7 +187,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COMBINING_DIACRITICAL_MARKS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -179,7 +200,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GREEK { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -189,7 +213,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CYRILLIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -199,7 +226,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARMENIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -209,7 +239,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HEBREW { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -219,7 +252,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -229,7 +265,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock DEVANAGARI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -239,7 +278,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BENGALI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -249,7 +291,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GURMUKHI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -259,7 +304,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GUJARATI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -269,7 +317,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ORIYA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -279,7 +330,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAMIL { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -289,7 +343,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TELUGU { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -299,7 +356,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KANNADA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -309,7 +369,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MALAYALAM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -319,7 +382,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock THAI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -329,7 +395,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LAO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId22)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId22)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -339,7 +408,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TIBETAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId23)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId23)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -349,7 +421,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GEORGIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId24)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId24)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -359,7 +434,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANGUL_JAMO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId25)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId25)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -369,7 +447,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_EXTENDED_ADDITIONAL { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId26)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId26)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -379,7 +460,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GREEK_EXTENDED { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId27)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId27)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -389,7 +473,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GENERAL_PUNCTUATION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId28)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId28)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -399,7 +486,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId29)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId29)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -409,7 +499,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CURRENCY_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId30)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId30)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -419,7 +512,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId31)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId31)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -429,7 +525,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LETTERLIKE_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId32)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId32)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -439,7 +538,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock NUMBER_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId33)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId33)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -449,7 +551,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARROWS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId34)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId34)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -459,7 +564,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MATHEMATICAL_OPERATORS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId35)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId35)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -469,7 +577,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_TECHNICAL { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId36)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId36)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -479,7 +590,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CONTROL_PICTURES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId37)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId37)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -489,7 +603,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OPTICAL_CHARACTER_RECOGNITION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId38)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId38)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -499,7 +616,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ENCLOSED_ALPHANUMERICS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId39)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId39)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -509,7 +629,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BOX_DRAWING { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId40)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId40)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -519,7 +642,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BLOCK_ELEMENTS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId41)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId41)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -529,7 +655,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GEOMETRIC_SHAPES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId42)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId42)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -539,7 +668,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId43)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId43)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -549,7 +681,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock DINGBATS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId44)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId44)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -559,7 +694,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId45)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId45)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -569,7 +707,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HIRAGANA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId46)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId46)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -579,7 +720,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KATAKANA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId47)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId47)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -589,7 +733,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BOPOMOFO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId48)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId48)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -599,7 +746,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANGUL_COMPATIBILITY_JAMO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId49)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId49)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -609,7 +759,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KANBUN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId50)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId50)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -619,7 +772,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId51)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId51)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -629,7 +785,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_COMPATIBILITY { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId52)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId52)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -639,7 +798,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId53)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId53)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -649,7 +811,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANGUL_SYLLABLES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId54)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId54)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -659,7 +824,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PRIVATE_USE_AREA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId55)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId55)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -669,7 +837,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId56)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId56)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -679,7 +850,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId57)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId57)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -689,7 +863,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId58)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId58)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -699,7 +876,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COMBINING_HALF_MARKS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId59)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId59)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -709,7 +889,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_COMPATIBILITY_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId60)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId60)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -719,7 +902,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SMALL_FORM_VARIANTS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId61)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId61)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -729,7 +915,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId62)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId62)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -739,7 +928,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId63)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId63)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -749,7 +941,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SPECIALS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId64)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId64)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -759,7 +954,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SURROGATES_AREA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId65)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId65)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -769,7 +967,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SYRIAC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId66)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId66)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -779,7 +980,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock THAANA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId67)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId67)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -789,7 +993,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SINHALA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId68)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId68)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -799,7 +1006,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MYANMAR { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId69)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId69)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -809,7 +1019,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ETHIOPIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId70)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId70)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -819,7 +1032,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CHEROKEE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId71)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId71)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -829,7 +1045,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId72)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId72)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -839,7 +1058,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OGHAM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId73)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId73)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -849,7 +1071,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock RUNIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId74)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId74)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -859,7 +1084,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KHMER { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId75)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId75)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -869,7 +1097,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MONGOLIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId76)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId76)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -879,7 +1110,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BRAILLE_PATTERNS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId77)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId77)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -889,7 +1123,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_RADICALS_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId78)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId78)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -899,7 +1136,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KANGXI_RADICALS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId79)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId79)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -909,7 +1149,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId80)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId80)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -919,7 +1162,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BOPOMOFO_EXTENDED { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId81)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId81)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -929,7 +1175,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId82)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId82)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -939,7 +1188,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock YI_SYLLABLES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId83)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId83)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -949,7 +1201,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock YI_RADICALS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId84)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId84)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -959,7 +1214,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CYRILLIC_SUPPLEMENTARY { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId85)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId85)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -969,7 +1227,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAGALOG { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId86)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId86)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -979,7 +1240,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANUNOO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId87)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId87)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -989,7 +1253,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BUHID { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId88)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId88)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -999,7 +1266,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAGBANWA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId89)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId89)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1009,7 +1279,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LIMBU { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId90)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId90)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1019,7 +1292,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAI_LE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId91)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId91)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1029,7 +1305,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KHMER_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId92)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId92)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1039,7 +1318,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PHONETIC_EXTENSIONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId93)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId93)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1049,7 +1331,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId94)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId94)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1059,7 +1344,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId95)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId95)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1069,7 +1357,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId96)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId96)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1079,7 +1370,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId97)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId97)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1089,7 +1383,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId98)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId98)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1099,7 +1396,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId99)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId99)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1109,7 +1409,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId100)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId100)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1119,7 +1422,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock YIJING_HEXAGRAM_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId101)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId101)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1129,7 +1435,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock VARIATION_SELECTORS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId102)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId102)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1139,7 +1448,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LINEAR_B_SYLLABARY { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId103)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId103)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1149,7 +1461,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LINEAR_B_IDEOGRAMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId104)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId104)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1159,7 +1474,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock AEGEAN_NUMBERS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId105)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId105)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1169,7 +1487,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OLD_ITALIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId106)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId106)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1179,7 +1500,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GOTHIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId107)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId107)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1189,7 +1513,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock UGARITIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId108)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId108)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1199,7 +1526,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock DESERET { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId109)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId109)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1209,7 +1539,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SHAVIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId110)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId110)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1219,7 +1552,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OSMANYA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId111)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId111)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1229,7 +1565,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CYPRIOT_SYLLABARY { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId112)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId112)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1239,7 +1578,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BYZANTINE_MUSICAL_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId113)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId113)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1249,7 +1591,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MUSICAL_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId114)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId114)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1259,7 +1604,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAI_XUAN_JING_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId115)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId115)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1269,7 +1617,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId116)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId116)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1279,7 +1630,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId117)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId117)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1289,7 +1643,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId118)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId118)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1299,7 +1656,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAGS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId119)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId119)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1309,7 +1669,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId120)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId120)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1319,7 +1682,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId121)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId121)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1329,7 +1695,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId122)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId122)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1339,7 +1708,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HIGH_SURROGATES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId123)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId123)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1349,7 +1721,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HIGH_PRIVATE_USE_SURROGATES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId124)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId124)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1359,7 +1734,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LOW_SURROGATES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId125)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId125)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1369,7 +1747,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId126)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId126)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1379,7 +1760,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock NKO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId127)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId127)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1389,7 +1773,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SAMARITAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId128)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId128)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1399,7 +1786,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MANDAIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId129)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId129)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1409,7 +1799,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ETHIOPIC_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId130)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId130)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1419,7 +1812,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId131)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId131)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1429,7 +1825,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock NEW_TAI_LUE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId132)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId132)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1439,7 +1838,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BUGINESE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId133)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId133)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1449,7 +1851,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAI_THAM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId134)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId134)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1459,7 +1864,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BALINESE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId135)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId135)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1469,7 +1877,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUNDANESE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId136)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId136)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1479,7 +1890,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BATAK { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId137)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId137)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1489,7 +1903,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LEPCHA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId138)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId138)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1499,7 +1916,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OL_CHIKI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId139)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId139)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1509,7 +1929,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock VEDIC_EXTENSIONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId140)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId140)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1519,7 +1942,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PHONETIC_EXTENSIONS_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId141)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId141)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1529,7 +1955,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COMBINING_DIACRITICAL_MARKS_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId142)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId142)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1539,7 +1968,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GLAGOLITIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId143)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId143)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1549,7 +1981,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_EXTENDED_C { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId144)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId144)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1559,7 +1994,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COPTIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId145)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId145)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1569,7 +2007,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock GEORGIAN_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId146)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId146)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1579,7 +2020,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TIFINAGH { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId147)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId147)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1589,7 +2033,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ETHIOPIC_EXTENDED { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId148)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId148)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1599,7 +2046,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CYRILLIC_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId149)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId149)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1609,7 +2059,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUPPLEMENTAL_PUNCTUATION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId150)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId150)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1619,7 +2072,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_STROKES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId151)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId151)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1629,7 +2085,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LISU { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId152)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId152)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1639,7 +2098,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock VAI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId153)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId153)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1649,7 +2111,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CYRILLIC_EXTENDED_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId154)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId154)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1659,7 +2124,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BAMUM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId155)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId155)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1669,7 +2137,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MODIFIER_TONE_LETTERS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId156)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId156)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1679,7 +2150,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LATIN_EXTENDED_D { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId157)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId157)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1689,7 +2163,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SYLOTI_NAGRI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId158)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId158)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1699,7 +2176,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COMMON_INDIC_NUMBER_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId159)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId159)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1709,7 +2189,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PHAGS_PA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId160)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId160)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1719,7 +2202,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SAURASHTRA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId161)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId161)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1729,7 +2215,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock DEVANAGARI_EXTENDED { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId162)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId162)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1739,7 +2228,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KAYAH_LI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId163)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId163)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1749,7 +2241,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock REJANG { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId164)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId164)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1759,7 +2254,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANGUL_JAMO_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId165)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId165)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1769,7 +2267,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock JAVANESE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId166)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId166)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1779,7 +2280,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CHAM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId167)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId167)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1789,7 +2293,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MYANMAR_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId168)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId168)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1799,7 +2306,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAI_VIET { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId169)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId169)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1809,7 +2319,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ETHIOPIC_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId170)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId170)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1819,7 +2332,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MEETEI_MAYEK { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId171)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId171)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1829,7 +2345,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock HANGUL_JAMO_EXTENDED_B { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId172)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId172)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1839,7 +2358,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock VERTICAL_FORMS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId173)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId173)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1849,7 +2371,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ANCIENT_GREEK_NUMBERS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId174)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId174)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1859,7 +2384,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ANCIENT_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId175)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId175)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1869,7 +2397,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PHAISTOS_DISC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId176)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId176)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1879,7 +2410,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LYCIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId177)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId177)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1889,7 +2423,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CARIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId178)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId178)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1899,7 +2436,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OLD_PERSIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId179)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId179)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1909,7 +2449,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock IMPERIAL_ARAMAIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId180)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId180)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1919,7 +2462,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PHOENICIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId181)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId181)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1929,7 +2475,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock LYDIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId182)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId182)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1939,7 +2488,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KHAROSHTHI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId183)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId183)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1949,7 +2501,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OLD_SOUTH_ARABIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId184)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId184)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1959,7 +2514,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock AVESTAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId185)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId185)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1969,7 +2527,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock INSCRIPTIONAL_PARTHIAN { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId186)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId186)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1979,7 +2540,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock INSCRIPTIONAL_PAHLAVI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId187)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId187)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1989,7 +2553,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock OLD_TURKIC { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId188)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId188)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -1999,7 +2566,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock RUMI_NUMERAL_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId189)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId189)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2009,7 +2579,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BRAHMI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId190)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId190)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2019,7 +2592,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KAITHI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId191)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId191)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2029,7 +2605,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CUNEIFORM { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId192)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId192)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2039,7 +2618,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CUNEIFORM_NUMBERS_AND_PUNCTUATION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId193)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId193)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2049,7 +2631,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock EGYPTIAN_HIEROGLYPHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId194)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId194)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2059,7 +2644,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock BAMUM_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId195)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId195)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2069,7 +2657,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock KANA_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId196)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId196)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2079,7 +2670,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ANCIENT_GREEK_MUSICAL_NOTATION { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId197)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId197)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2089,7 +2683,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock COUNTING_ROD_NUMERALS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId198)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId198)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2099,7 +2696,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MAHJONG_TILES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId199)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId199)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2109,7 +2709,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock DOMINO_TILES { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId200)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId200)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2119,7 +2722,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock PLAYING_CARDS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId201)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId201)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2129,7 +2735,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId202)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId202)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2139,7 +2748,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId203)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId203)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2149,7 +2761,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId204)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId204)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2159,7 +2774,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock EMOTICONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId205)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId205)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2169,7 +2787,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TRANSPORT_AND_MAP_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId206)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId206)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2179,7 +2800,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ALCHEMICAL_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId207)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId207)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2189,7 +2813,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId208)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId208)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2199,7 +2826,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId209)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId209)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2209,7 +2839,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC_EXTENDED_A { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId210)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId210)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2219,7 +2852,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SUNDANESE_SUPPLEMENT { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId211)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId211)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2229,7 +2865,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MEETEI_MAYEK_EXTENSIONS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId212)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId212)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2239,7 +2878,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MEROITIC_HIEROGLYPHS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId213)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId213)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2249,7 +2891,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MEROITIC_CURSIVE { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId214)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId214)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2259,7 +2904,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SORA_SOMPENG { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId215)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId215)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2269,7 +2917,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock CHAKMA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId216)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId216)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2279,7 +2930,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock SHARADA { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId217)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId217)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2289,7 +2943,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock TAKRI { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId218)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId218)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2299,7 +2956,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock MIAO { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId219)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId219)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2309,7 +2969,10 @@ public class UnicodeBlock : global::Java.Lang.Character.Subset } public static global::Java.Lang.Character.UnicodeBlock ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS { - get => new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId220)); + get + { + return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId220)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2783,7 +3446,7 @@ public UnicodeBlock() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -2820,7 +3483,7 @@ public UnicodeBlock(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -2834,7 +3497,7 @@ public UnicodeBlock(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -2848,7 +3511,7 @@ public UnicodeBlock(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(blockName) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(blockName) } }; return new global::Java.Lang.Character.UnicodeBlock(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -2877,7 +3540,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2887,7 +3553,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2897,7 +3566,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2907,7 +3579,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2917,7 +3592,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2927,7 +3605,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2937,7 +3618,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2947,7 +3631,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2957,7 +3644,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2967,7 +3657,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2977,7 +3670,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2987,7 +3683,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -2997,7 +3696,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3007,7 +3709,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3017,7 +3722,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3027,7 +3735,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3037,7 +3748,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3047,7 +3761,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3057,7 +3774,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3067,7 +3787,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3077,7 +3800,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3087,7 +3813,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3097,7 +3826,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId22)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId22)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3107,7 +3839,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId23)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId23)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3117,7 +3852,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId24)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId24)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3127,7 +3865,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId25)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId25)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3137,7 +3878,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId26)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId26)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3147,7 +3891,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId27)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId27)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3157,7 +3904,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId28)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId28)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3167,7 +3917,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId29)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId29)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3177,7 +3930,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId30)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId30)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3187,7 +3943,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId31)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId31)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3197,7 +3956,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId32)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId32)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3207,7 +3969,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId33)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId33)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3217,7 +3982,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId34)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId34)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3227,7 +3995,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId35)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId35)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3237,7 +4008,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId36)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId36)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3247,7 +4021,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId37)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId37)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3257,7 +4034,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId38)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId38)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3267,7 +4047,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId39)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId39)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3277,7 +4060,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId40)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId40)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3287,7 +4073,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId41)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId41)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3297,7 +4086,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId42)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId42)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3307,7 +4099,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId43)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId43)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3317,7 +4112,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId44)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId44)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3327,7 +4125,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId45)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId45)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3337,7 +4138,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId46)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId46)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3347,7 +4151,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId47)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId47)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3357,7 +4164,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId48)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId48)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3367,7 +4177,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId49)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId49)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3377,7 +4190,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId50)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId50)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3387,7 +4203,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId51)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId51)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3397,7 +4216,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId52)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId52)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3407,7 +4229,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId53)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId53)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3417,7 +4242,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId54)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId54)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3427,7 +4255,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId55)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId55)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3437,7 +4268,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId56)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId56)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3447,7 +4281,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId57)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId57)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3457,7 +4294,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId58)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId58)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3467,7 +4307,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId59)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId59)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3477,7 +4320,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId60)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId60)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3487,7 +4333,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId61)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId61)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3497,7 +4346,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId62)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId62)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3507,7 +4359,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId63)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId63)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3517,7 +4372,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId64)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId64)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3527,7 +4385,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId65)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId65)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3537,7 +4398,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId66)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId66)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3547,7 +4411,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId67)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId67)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3557,7 +4424,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId68)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId68)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3567,7 +4437,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId69)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId69)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3577,7 +4450,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId70)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId70)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3587,7 +4463,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId71)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId71)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3597,7 +4476,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId72)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId72)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3607,7 +4489,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId73)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId73)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3617,7 +4502,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId74)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId74)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3627,7 +4515,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId75)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId75)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3637,7 +4528,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId76)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId76)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3647,7 +4541,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId77)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId77)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3657,7 +4554,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId78)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId78)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3667,7 +4567,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId79)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId79)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3677,7 +4580,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId80)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId80)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3687,7 +4593,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId81)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId81)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3697,7 +4606,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId82)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId82)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3707,7 +4619,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId83)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId83)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3717,7 +4632,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId84)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId84)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3727,7 +4645,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId85)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId85)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3737,7 +4658,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId86)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId86)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3747,7 +4671,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId87)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId87)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3757,7 +4684,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId88)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId88)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3767,7 +4697,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId89)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId89)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3777,7 +4710,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId90)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId90)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3787,7 +4723,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId91)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId91)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3797,7 +4736,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId92)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId92)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3807,7 +4749,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId93)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId93)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3817,7 +4762,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId94)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId94)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3827,7 +4775,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId95)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId95)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3837,7 +4788,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId96)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId96)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3847,7 +4801,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId97)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId97)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3857,7 +4814,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId98)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId98)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3867,7 +4827,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId99)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId99)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3877,7 +4840,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId100)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId100)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3887,7 +4853,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId101)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId101)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -3897,7 +4866,10 @@ public class UnicodeScript : global::Java.Lang.Enum new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId102)); + get + { + return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId102)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -4155,7 +5127,7 @@ public UnicodeScript(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -4169,7 +5141,7 @@ public UnicodeScript(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -4183,7 +5155,7 @@ public UnicodeScript(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(scriptName) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(scriptName) } }; return new global::Java.Lang.Character.UnicodeScript(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -4210,27 +5182,54 @@ public static explicit operator UnicodeScript(IntPtr rawObject) public static int MIN_RADIX { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int MAX_RADIX { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static char MIN_VALUE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId2, value); + } } public static char MAX_VALUE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId3, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -4240,308 +5239,674 @@ public static char MAX_VALUE } public static sbyte UNASSIGNED { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId5); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId5, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId5); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId5, value); + } } public static sbyte UPPERCASE_LETTER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId6); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId6, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId6); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId6, value); + } } public static sbyte LOWERCASE_LETTER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId7); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId7, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId7); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId7, value); + } } public static sbyte TITLECASE_LETTER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId8); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId8, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId8); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId8, value); + } } public static sbyte MODIFIER_LETTER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId9); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId9, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId9); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId9, value); + } } public static sbyte OTHER_LETTER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId10); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId10, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId10); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId10, value); + } } public static sbyte NON_SPACING_MARK { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId11); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId11, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId11); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId11, value); + } } public static sbyte ENCLOSING_MARK { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId12); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId12, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId12); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId12, value); + } } public static sbyte COMBINING_SPACING_MARK { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId13); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId13, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId13); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId13, value); + } } public static sbyte DECIMAL_DIGIT_NUMBER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId14); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId14, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId14); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId14, value); + } } public static sbyte LETTER_NUMBER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId15); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId15, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId15); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId15, value); + } } public static sbyte OTHER_NUMBER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId16); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId16, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId16); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId16, value); + } } public static sbyte SPACE_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId17); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId17, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId17); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId17, value); + } } public static sbyte LINE_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId18); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId18, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId18); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId18, value); + } } public static sbyte PARAGRAPH_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId19); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId19, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId19); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId19, value); + } } public static sbyte CONTROL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId20); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId20, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId20); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId20, value); + } } public static sbyte FORMAT { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId21); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId21, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId21); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId21, value); + } } public static sbyte PRIVATE_USE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId22); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId22, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId22); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId22, value); + } } public static sbyte SURROGATE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId23); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId23, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId23); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId23, value); + } } public static sbyte DASH_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId24); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId24, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId24); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId24, value); + } } public static sbyte START_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId25); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId25, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId25); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId25, value); + } } public static sbyte END_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId26); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId26, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId26); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId26, value); + } } public static sbyte CONNECTOR_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId27); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId27, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId27); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId27, value); + } } public static sbyte OTHER_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId28); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId28, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId28); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId28, value); + } } public static sbyte MATH_SYMBOL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId29); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId29, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId29); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId29, value); + } } public static sbyte CURRENCY_SYMBOL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId30); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId30, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId30); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId30, value); + } } public static sbyte MODIFIER_SYMBOL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId31); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId31, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId31); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId31, value); + } } public static sbyte OTHER_SYMBOL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId32); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId32, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId32); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId32, value); + } } public static sbyte INITIAL_QUOTE_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId33); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId33, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId33); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId33, value); + } } public static sbyte FINAL_QUOTE_PUNCTUATION { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId34); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId34, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId34); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId34, value); + } } public static sbyte DIRECTIONALITY_UNDEFINED { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId35); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId35, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId35); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId35, value); + } } public static sbyte DIRECTIONALITY_LEFT_TO_RIGHT { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId36); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId36, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId36); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId36, value); + } } public static sbyte DIRECTIONALITY_RIGHT_TO_LEFT { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId37); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId37, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId37); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId37, value); + } } public static sbyte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId38); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId38, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId38); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId38, value); + } } public static sbyte DIRECTIONALITY_EUROPEAN_NUMBER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId39); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId39, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId39); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId39, value); + } } public static sbyte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId40); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId40, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId40); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId40, value); + } } public static sbyte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId41); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId41, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId41); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId41, value); + } } public static sbyte DIRECTIONALITY_ARABIC_NUMBER { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId42); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId42, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId42); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId42, value); + } } public static sbyte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId43); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId43, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId43); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId43, value); + } } public static sbyte DIRECTIONALITY_NONSPACING_MARK { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId44); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId44, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId44); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId44, value); + } } public static sbyte DIRECTIONALITY_BOUNDARY_NEUTRAL { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId45); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId45, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId45); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId45, value); + } } public static sbyte DIRECTIONALITY_PARAGRAPH_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId46); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId46, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId46); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId46, value); + } } public static sbyte DIRECTIONALITY_SEGMENT_SEPARATOR { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId47); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId47, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId47); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId47, value); + } } public static sbyte DIRECTIONALITY_WHITESPACE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId48); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId48, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId48); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId48, value); + } } public static sbyte DIRECTIONALITY_OTHER_NEUTRALS { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId49); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId49, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId49); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId49, value); + } } public static sbyte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId50); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId50, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId50); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId50, value); + } } public static sbyte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId51); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId51, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId51); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId51, value); + } } public static sbyte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId52); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId52, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId52); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId52, value); + } } public static sbyte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId53); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId53, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId53); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId53, value); + } } public static sbyte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT { - get => AndroidJNI.GetStaticSByteField(_classObject, _cachedFieldId54); - set => AndroidJNI.SetStaticSByteField(_classObject, _cachedFieldId54, value); + get + { + return global::Google.LibraryWrapper.Java.Utils.GetStaticSByteField(_classObject, _cachedFieldId54); + } + set + { + global::Google.LibraryWrapper.Java.Utils.SetStaticSByteField(_classObject, _cachedFieldId54, value); + } } public static char MIN_HIGH_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId55); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId55, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId55); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId55, value); + } } public static char MAX_HIGH_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId56); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId56, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId56); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId56, value); + } } public static char MIN_LOW_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId57); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId57, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId57); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId57, value); + } } public static char MAX_LOW_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId58); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId58, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId58); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId58, value); + } } public static char MIN_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId59); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId59, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId59); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId59, value); + } } public static char MAX_SURROGATE { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId60); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId60, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId60); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId60, value); + } } public static int MIN_SUPPLEMENTARY_CODE_POINT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId61); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId61, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId61); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId61, value); + } } public static int MIN_CODE_POINT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId62); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId62, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId62); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId62, value); + } } public static int MAX_CODE_POINT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId63); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId63, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId63); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId63, value); + } } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId64); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId64, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId64); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId64, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId65); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId65, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId65); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId65, value); + } } private static readonly IntPtr _classObject; @@ -4847,7 +6212,7 @@ public Character(char value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -4884,7 +6249,7 @@ public Character(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; return new global::Java.Lang.Character(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -4898,7 +6263,7 @@ public char CharValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -4912,7 +6277,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -4926,7 +6291,7 @@ public static int HashCode(char value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId3, args_); } finally @@ -4940,7 +6305,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -4954,7 +6319,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId5, args_); } finally @@ -4968,7 +6333,7 @@ public static bool IsValidCodePoint(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId6, args_); } finally @@ -4982,7 +6347,7 @@ public static bool IsBmpCodePoint(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId7, args_); } finally @@ -4996,7 +6361,7 @@ public static bool IsSupplementaryCodePoint(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId8, args_); } finally @@ -5010,7 +6375,7 @@ public static bool IsHighSurrogate(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId9, args_); } finally @@ -5024,7 +6389,7 @@ public static bool IsLowSurrogate(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId10, args_); } finally @@ -5038,7 +6403,7 @@ public static bool IsSurrogate(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId11, args_); } finally @@ -5052,7 +6417,12 @@ public static bool IsSurrogatePair(char high, char low) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = high }, new jvalue { c = low }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = high }, + new jvalue { c = low } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId12, args_); } finally @@ -5066,7 +6436,7 @@ public static int CharCount(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId13, args_); } finally @@ -5080,7 +6450,12 @@ public static int ToCodePoint(char high, char low) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = high }, new jvalue { c = low }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = high }, + new jvalue { c = low } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId14, args_); } finally @@ -5094,7 +6469,12 @@ public static int CodePointAt(global::Java.Lang.CharSequence seq, int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = seq.GetRawObject() }, new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = seq.GetRawObject() }, + new jvalue { i = index } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId15, args_); } finally @@ -5108,7 +6488,12 @@ public static int CodePointBefore(global::Java.Lang.CharSequence seq, int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = seq.GetRawObject() }, new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = seq.GetRawObject() }, + new jvalue { i = index } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId16, args_); } finally @@ -5122,7 +6507,7 @@ public static char HighSurrogate(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId17, args_); } finally @@ -5136,7 +6521,7 @@ public static char LowSurrogate(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId18, args_); } finally @@ -5150,7 +6535,13 @@ public static int CodePointCount(global::Java.Lang.CharSequence seq, int beginIn try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = seq.GetRawObject() }, new jvalue { i = beginIndex }, new jvalue { i = endIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = seq.GetRawObject() }, + new jvalue { i = beginIndex }, + new jvalue { i = endIndex } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId19, args_); } finally @@ -5164,7 +6555,13 @@ public static int OffsetByCodePoints(global::Java.Lang.CharSequence seq, int ind try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = seq.GetRawObject() }, new jvalue { i = index }, new jvalue { i = codePointOffset }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = seq.GetRawObject() }, + new jvalue { i = index }, + new jvalue { i = codePointOffset } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId20, args_); } finally @@ -5178,7 +6575,7 @@ public static bool IsLowerCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId21, args_); } finally @@ -5192,7 +6589,7 @@ public static bool IsLowerCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId22, args_); } finally @@ -5206,7 +6603,7 @@ public static bool IsUpperCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId23, args_); } finally @@ -5220,7 +6617,7 @@ public static bool IsUpperCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId24, args_); } finally @@ -5234,7 +6631,7 @@ public static bool IsTitleCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId25, args_); } finally @@ -5248,7 +6645,7 @@ public static bool IsTitleCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId26, args_); } finally @@ -5262,7 +6659,7 @@ public static bool IsDigit(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId27, args_); } finally @@ -5276,7 +6673,7 @@ public static bool IsDigit(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId28, args_); } finally @@ -5290,7 +6687,7 @@ public static bool IsDefined(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId29, args_); } finally @@ -5304,7 +6701,7 @@ public static bool IsDefined(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId30, args_); } finally @@ -5318,7 +6715,7 @@ public static bool IsLetter(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId31, args_); } finally @@ -5332,7 +6729,7 @@ public static bool IsLetter(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId32, args_); } finally @@ -5346,7 +6743,7 @@ public static bool IsLetterOrDigit(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId33, args_); } finally @@ -5360,7 +6757,7 @@ public static bool IsLetterOrDigit(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId34, args_); } finally @@ -5374,7 +6771,7 @@ public static bool IsJavaLetter(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId35, args_); } finally @@ -5388,7 +6785,7 @@ public static bool IsJavaLetterOrDigit(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId36, args_); } finally @@ -5402,7 +6799,7 @@ public static bool IsAlphabetic(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId37, args_); } finally @@ -5416,7 +6813,7 @@ public static bool IsIdeographic(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId38, args_); } finally @@ -5430,7 +6827,7 @@ public static bool IsJavaIdentifierStart(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId39, args_); } finally @@ -5444,7 +6841,7 @@ public static bool IsJavaIdentifierStart(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId40, args_); } finally @@ -5458,7 +6855,7 @@ public static bool IsJavaIdentifierPart(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId41, args_); } finally @@ -5472,7 +6869,7 @@ public static bool IsJavaIdentifierPart(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId42, args_); } finally @@ -5486,7 +6883,7 @@ public static bool IsUnicodeIdentifierStart(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId43, args_); } finally @@ -5500,7 +6897,7 @@ public static bool IsUnicodeIdentifierStart(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId44, args_); } finally @@ -5514,7 +6911,7 @@ public static bool IsUnicodeIdentifierPart(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId45, args_); } finally @@ -5528,7 +6925,7 @@ public static bool IsUnicodeIdentifierPart(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId46, args_); } finally @@ -5542,7 +6939,7 @@ public static bool IsIdentifierIgnorable(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId47, args_); } finally @@ -5556,7 +6953,7 @@ public static bool IsIdentifierIgnorable(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId48, args_); } finally @@ -5570,7 +6967,7 @@ public static char ToLowerCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId49, args_); } finally @@ -5584,7 +6981,7 @@ public static int ToLowerCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId50, args_); } finally @@ -5598,7 +6995,7 @@ public static char ToUpperCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId51, args_); } finally @@ -5612,7 +7009,7 @@ public static int ToUpperCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId52, args_); } finally @@ -5626,7 +7023,7 @@ public static char ToTitleCase(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId53, args_); } finally @@ -5640,7 +7037,7 @@ public static int ToTitleCase(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId54, args_); } finally @@ -5654,7 +7051,12 @@ public static int Digit(char ch, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = ch }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId55, args_); } finally @@ -5668,7 +7070,12 @@ public static int Digit(int codePoint, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = codePoint }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId56, args_); } finally @@ -5682,7 +7089,7 @@ public static int GetNumericValue(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId57, args_); } finally @@ -5696,7 +7103,7 @@ public static int GetNumericValue(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId58, args_); } finally @@ -5710,7 +7117,7 @@ public static bool IsSpace(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId59, args_); } finally @@ -5724,7 +7131,7 @@ public static bool IsSpaceChar(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId60, args_); } finally @@ -5738,7 +7145,7 @@ public static bool IsSpaceChar(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId61, args_); } finally @@ -5752,7 +7159,7 @@ public static bool IsWhitespace(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId62, args_); } finally @@ -5766,7 +7173,7 @@ public static bool IsWhitespace(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId63, args_); } finally @@ -5780,7 +7187,7 @@ public static bool IsISOControl(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId64, args_); } finally @@ -5794,7 +7201,7 @@ public static bool IsISOControl(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId65, args_); } finally @@ -5808,7 +7215,7 @@ public static int GetType(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId66, args_); } finally @@ -5822,7 +7229,7 @@ public static int GetType(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId67, args_); } finally @@ -5836,7 +7243,12 @@ public static char ForDigit(int digit, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = digit }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = digit }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId68, args_); } finally @@ -5850,8 +7262,8 @@ public static sbyte GetDirectionality(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; - return AndroidJNI.CallStaticSByteMethod(_classObject, _cachedMethodId69, args_); + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; + return global::Google.LibraryWrapper.Java.Utils.CallStaticSByteMethod(_classObject, _cachedMethodId69, args_); } finally { @@ -5864,8 +7276,8 @@ public static sbyte GetDirectionality(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; - return AndroidJNI.CallStaticSByteMethod(_classObject, _cachedMethodId70, args_); + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; + return global::Google.LibraryWrapper.Java.Utils.CallStaticSByteMethod(_classObject, _cachedMethodId70, args_); } finally { @@ -5878,7 +7290,7 @@ public static bool IsMirrored(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId71, args_); } finally @@ -5892,7 +7304,7 @@ public static bool IsMirrored(int codePoint) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId72, args_); } finally @@ -5906,7 +7318,7 @@ public int CompareTo(global::Java.Lang.Character anotherCharacter) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherCharacter.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherCharacter.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId73, args_); } finally @@ -5920,7 +7332,12 @@ public static int Compare(char x, char y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = x }, new jvalue { c = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = x }, + new jvalue { c = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId74, args_); } finally @@ -5934,7 +7351,7 @@ public static char ReverseBytes(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = ch } }; return AndroidJNI.CallStaticCharMethod(_classObject, _cachedMethodId75, args_); } finally @@ -5948,7 +7365,7 @@ public static char ReverseBytes(char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId76, args_); } finally diff --git a/Runtime/Java/Lang/Character.cs.meta b/Runtime/Java/Lang/Character.cs.meta index 92aaca9..87be256 100644 --- a/Runtime/Java/Lang/Character.cs.meta +++ b/Runtime/Java/Lang/Character.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d7af93dad8c53955bd94914f3ef07359 +guid: b0233e729ede3204b5d2fc5d29f1d2b6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Class.cs b/Runtime/Java/Lang/Class.cs index ced2f14..363701e 100644 --- a/Runtime/Java/Lang/Class.cs +++ b/Runtime/Java/Lang/Class.cs @@ -105,7 +105,7 @@ public Class() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -142,7 +142,7 @@ public Class(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -156,7 +156,7 @@ public Class(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(className) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(className) } }; return new global::Java.Lang.Class(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -170,7 +170,13 @@ public Class(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }, new jvalue { z = initialize }, new jvalue { l = loader.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) }, + new jvalue { z = initialize }, + new jvalue { l = loader.GetRawObject() } + }; return new global::Java.Lang.Class(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -184,7 +190,7 @@ public T NewInstance() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); @@ -206,7 +212,7 @@ public bool IsInstance(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -220,7 +226,7 @@ public bool IsAssignableFrom(global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); } finally @@ -346,8 +352,8 @@ public bool IsSynthetic() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Lang.Reflect.Type.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Lang.Reflect.TypeAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally { @@ -360,7 +366,7 @@ public bool IsSynthetic() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Package(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); } finally @@ -374,7 +380,7 @@ public bool IsSynthetic() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -388,7 +394,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -402,7 +408,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Lang.Reflect.Method(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally @@ -416,7 +422,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Lang.Reflect.Constructor(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally @@ -430,7 +436,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); } finally @@ -444,7 +450,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally @@ -458,7 +464,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -472,7 +478,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -486,7 +492,7 @@ public int GetModifiers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -500,7 +506,7 @@ public bool IsAnonymousClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -514,7 +520,7 @@ public bool IsLocalClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -528,7 +534,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -542,7 +548,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Lang.Reflect.Field(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId28, args_)); } finally @@ -556,7 +562,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Lang.Reflect.Field(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally @@ -570,7 +576,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId30, args_)); } finally @@ -584,7 +590,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Net.URL(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId31, args_)); } finally @@ -598,7 +604,7 @@ public bool IsMemberClass() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Security.ProtectionDomain(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId32, args_)); } finally @@ -612,7 +618,7 @@ public bool DesiredAssertionStatus() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId33, args_); } finally @@ -626,7 +632,7 @@ public bool IsEnum() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId34, args_); } finally @@ -640,7 +646,7 @@ public T Cast(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId35, args_); @@ -662,7 +668,7 @@ public T Cast(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = clazz.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = clazz.GetRawObject() } }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId36, args_)); } finally @@ -676,7 +682,7 @@ public A GetAnnotation(global::Java.Lang.Class annotationClass) where A : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = annotationClass.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = annotationClass.GetRawObject() } }; if (typeof(A) == typeof(global::System.String)) { return (A) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId37, args_); @@ -698,7 +704,7 @@ public bool IsAnnotationPresent(global::Java.Lang.Class(global::Java.Lang.Class annotationClass) wh try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = annotationClass.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = annotationClass.GetRawObject() } }; if (typeof(A) == typeof(global::System.String)) { return (A) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId39, args_); @@ -734,7 +740,7 @@ public A GetDeclaredAnnotation(global::Java.Lang.Class annotationClass) wh try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Lang.Reflect.AnnotatedType(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId40, args_)); } finally diff --git a/Runtime/Java/Lang/Class.cs.meta b/Runtime/Java/Lang/Class.cs.meta index 2508e16..258ff3f 100644 --- a/Runtime/Java/Lang/Class.cs.meta +++ b/Runtime/Java/Lang/Class.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ea8c4c0140fd3bcaba9393d7f15d5fdc +guid: e4ee49fbba9d396b8f7875bd58e239d9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassCastException.cs b/Runtime/Java/Lang/ClassCastException.cs index aa05a17..759a7fc 100644 --- a/Runtime/Java/Lang/ClassCastException.cs +++ b/Runtime/Java/Lang/ClassCastException.cs @@ -25,7 +25,7 @@ public ClassCastException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public ClassCastException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ClassCastException.cs.meta b/Runtime/Java/Lang/ClassCastException.cs.meta index be9e6d7..c1c1914 100644 --- a/Runtime/Java/Lang/ClassCastException.cs.meta +++ b/Runtime/Java/Lang/ClassCastException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bf1df657cc2d35ca8041f6913925d425 +guid: 3c1dbcb580a130a2bd46e0da1f7f4bb2 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassCircularityError.cs b/Runtime/Java/Lang/ClassCircularityError.cs index 975e10c..2e49057 100644 --- a/Runtime/Java/Lang/ClassCircularityError.cs +++ b/Runtime/Java/Lang/ClassCircularityError.cs @@ -25,7 +25,7 @@ public ClassCircularityError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public ClassCircularityError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ClassCircularityError.cs.meta b/Runtime/Java/Lang/ClassCircularityError.cs.meta index aa532f2..8d5de59 100644 --- a/Runtime/Java/Lang/ClassCircularityError.cs.meta +++ b/Runtime/Java/Lang/ClassCircularityError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a206cdca99b0396dafe2bde94d92ea84 +guid: cb90da98d23237e3bcc67bd3663d33f4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassFormatError.cs b/Runtime/Java/Lang/ClassFormatError.cs index 1ca0571..7bba034 100644 --- a/Runtime/Java/Lang/ClassFormatError.cs +++ b/Runtime/Java/Lang/ClassFormatError.cs @@ -25,7 +25,7 @@ public ClassFormatError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public ClassFormatError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ClassFormatError.cs.meta b/Runtime/Java/Lang/ClassFormatError.cs.meta index 0195a00..209cbd0 100644 --- a/Runtime/Java/Lang/ClassFormatError.cs.meta +++ b/Runtime/Java/Lang/ClassFormatError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e804fe3bcf8734fb812aadb5ce216104 +guid: b67f03b3eace357eb52537eb34743254 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassLoader.cs b/Runtime/Java/Lang/ClassLoader.cs index 9e1611c..bd0099e 100644 --- a/Runtime/Java/Lang/ClassLoader.cs +++ b/Runtime/Java/Lang/ClassLoader.cs @@ -49,7 +49,7 @@ public ClassLoader() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -86,7 +86,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -100,7 +100,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Net.URL(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -114,8 +114,8 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally { @@ -128,7 +128,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Net.URL(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -142,8 +142,8 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally { @@ -156,7 +156,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -170,7 +170,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally @@ -184,7 +184,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.ClassLoader(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -198,7 +198,7 @@ public ClassLoader(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.ClassLoader(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); } finally @@ -212,7 +212,7 @@ public void SetDefaultAssertionStatus(bool enabled) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = enabled }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = enabled } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -226,7 +226,12 @@ public void SetPackageAssertionStatus(global::System.String packageName, bool en try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(packageName) }, new jvalue { z = enabled }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(packageName) }, + new jvalue { z = enabled } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -240,7 +245,12 @@ public void SetClassAssertionStatus(global::System.String className, bool enable try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(className) }, new jvalue { z = enabled }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(className) }, + new jvalue { z = enabled } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -254,7 +264,7 @@ public void ClearAssertionStatus() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); } finally diff --git a/Runtime/Java/Lang/ClassLoader.cs.meta b/Runtime/Java/Lang/ClassLoader.cs.meta index 6dbf540..e84d654 100644 --- a/Runtime/Java/Lang/ClassLoader.cs.meta +++ b/Runtime/Java/Lang/ClassLoader.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8c82c7f2670e3ad9a326c94d3c148fae +guid: 47fcb4c09f7e3e018942a6f564286489 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassNotFoundException.cs b/Runtime/Java/Lang/ClassNotFoundException.cs index 7638b0c..70b8798 100644 --- a/Runtime/Java/Lang/ClassNotFoundException.cs +++ b/Runtime/Java/Lang/ClassNotFoundException.cs @@ -29,7 +29,7 @@ public ClassNotFoundException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public ClassNotFoundException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public ClassNotFoundException(global::System.String s, global::Java.Lang.Throwab try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { l = ex.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { l = ex.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -96,7 +101,7 @@ public ClassNotFoundException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Throwable(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Lang/ClassNotFoundException.cs.meta b/Runtime/Java/Lang/ClassNotFoundException.cs.meta index 7ead5c6..58d3c79 100644 --- a/Runtime/Java/Lang/ClassNotFoundException.cs.meta +++ b/Runtime/Java/Lang/ClassNotFoundException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 340d7878efc93901a6c0e5ee1b107395 +guid: ff4fe060cb3934c491c61ed57935be11 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ClassValue.cs b/Runtime/Java/Lang/ClassValue.cs index dc73c04..41d3101 100644 --- a/Runtime/Java/Lang/ClassValue.cs +++ b/Runtime/Java/Lang/ClassValue.cs @@ -27,7 +27,7 @@ public ClassValue() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -64,7 +64,7 @@ public T Get(global::Java.Lang.Class AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + } } public static double NEGATIVE_INFINITY { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + } } public static double NaN { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId2, value); + } } public static double MAX_VALUE { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId3, value); + } } public static double MIN_NORMAL { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId4, value); + } } public static double MIN_VALUE { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId5); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId5, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId5); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId5, value); + } } public static int MAX_EXPONENT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + } } public static int MIN_EXPONENT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + } } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -150,7 +213,7 @@ public Double(double value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -165,7 +228,7 @@ public Double(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -202,7 +265,7 @@ public Double(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -216,7 +279,7 @@ public Double(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId1, args_); } finally @@ -230,7 +293,7 @@ public Double(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Double(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -244,7 +307,7 @@ public Double(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return new global::Java.Lang.Double(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -258,7 +321,7 @@ public static double ParseDouble(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId4, args_); } finally @@ -272,7 +335,7 @@ public static bool IsNaN(double v) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = v }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = v } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId5, args_); } finally @@ -286,7 +349,7 @@ public static bool IsInfinite(double v) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = v }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = v } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId6, args_); } finally @@ -300,7 +363,7 @@ public static bool IsFinite(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId7, args_); } finally @@ -314,7 +377,7 @@ public bool IsNaN() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -328,7 +391,7 @@ public bool IsInfinite() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -342,7 +405,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -356,7 +419,7 @@ public static int HashCode(double value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId11, args_); } finally @@ -370,7 +433,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -384,7 +447,7 @@ public static long DoubleToLongBits(double value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId13, args_); } finally @@ -398,7 +461,7 @@ public static long DoubleToRawLongBits(double value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId14, args_); } finally @@ -412,7 +475,7 @@ public static double LongBitsToDouble(long bits) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = bits }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = bits } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId15, args_); } finally @@ -426,7 +489,7 @@ public int CompareTo(global::Java.Lang.Double anotherDouble) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherDouble.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherDouble.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -440,7 +503,12 @@ public static int Compare(double d1, double d2) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d1 }, new jvalue { d = d2 }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = d1 }, + new jvalue { d = d2 } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId17, args_); } finally @@ -454,7 +522,12 @@ public static double Sum(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId18, args_); } finally @@ -468,7 +541,12 @@ public static double Max(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId19, args_); } finally @@ -482,7 +560,12 @@ public static double Min(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId20, args_); } finally diff --git a/Runtime/Java/Lang/Double.cs.meta b/Runtime/Java/Lang/Double.cs.meta index d5adcab..031fca2 100644 --- a/Runtime/Java/Lang/Double.cs.meta +++ b/Runtime/Java/Lang/Double.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: be333ccda9883a06915b9e53310c4ad4 +guid: 4521f113e5fc3a54acea09976e4ec379 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Enum.cs b/Runtime/Java/Lang/Enum.cs index 8d45ee4..6fd05ab 100644 --- a/Runtime/Java/Lang/Enum.cs +++ b/Runtime/Java/Lang/Enum.cs @@ -57,7 +57,7 @@ public Enum(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -71,7 +71,7 @@ public int Ordinal() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -85,7 +85,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -99,7 +99,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -113,7 +113,7 @@ public int CompareTo(E o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(o)}; + jvalue[] args_ = new jvalue[] { ToJvalue(o) }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -127,7 +127,7 @@ public int CompareTo(E o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Class(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -141,7 +141,12 @@ public static T ValueOf(global::Java.Lang.Class enumType, global::System.S try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = enumType.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = enumType.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } + }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId6, args_); diff --git a/Runtime/Java/Lang/Enum.cs.meta b/Runtime/Java/Lang/Enum.cs.meta index 710ff25..2116812 100644 --- a/Runtime/Java/Lang/Enum.cs.meta +++ b/Runtime/Java/Lang/Enum.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 08369e1980a037088f47d61cfd289d5d +guid: f86c05f332413009b18d2cabf31d4270 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Error.cs b/Runtime/Java/Lang/Error.cs index 558b329..0ab4a6d 100644 --- a/Runtime/Java/Lang/Error.cs +++ b/Runtime/Java/Lang/Error.cs @@ -29,7 +29,7 @@ public Error() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public Error(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public Error(global::System.String message, global::Java.Lang.Throwable cause) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public Error(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/Error.cs.meta b/Runtime/Java/Lang/Error.cs.meta index 245e7e7..2d81140 100644 --- a/Runtime/Java/Lang/Error.cs.meta +++ b/Runtime/Java/Lang/Error.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d4b768ac27333e2985a29f79dc1f8b73 +guid: fb7c5c20736e3411919a6295209c6aa9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Exception.cs b/Runtime/Java/Lang/Exception.cs index 9b1b640..e457e67 100644 --- a/Runtime/Java/Lang/Exception.cs +++ b/Runtime/Java/Lang/Exception.cs @@ -29,7 +29,7 @@ public Exception() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public Exception(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public Exception(global::System.String message, global::Java.Lang.Throwable caus try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public Exception(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/Exception.cs.meta b/Runtime/Java/Lang/Exception.cs.meta index ec84915..9b37acc 100644 --- a/Runtime/Java/Lang/Exception.cs.meta +++ b/Runtime/Java/Lang/Exception.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a9c17392fda73458884f369d63856e92 +guid: b7ec867bc9e736a38cdd045d974035a4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ExceptionInInitializerError.cs b/Runtime/Java/Lang/ExceptionInInitializerError.cs index b34a9ae..1ea5e2f 100644 --- a/Runtime/Java/Lang/ExceptionInInitializerError.cs +++ b/Runtime/Java/Lang/ExceptionInInitializerError.cs @@ -29,7 +29,7 @@ public ExceptionInInitializerError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public ExceptionInInitializerError(global::Java.Lang.Throwable thrown) : base(In try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = thrown.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = thrown.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,7 @@ public ExceptionInInitializerError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -96,7 +96,7 @@ public ExceptionInInitializerError(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Throwable(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Lang/ExceptionInInitializerError.cs.meta b/Runtime/Java/Lang/ExceptionInInitializerError.cs.meta index c59492e..0852eb9 100644 --- a/Runtime/Java/Lang/ExceptionInInitializerError.cs.meta +++ b/Runtime/Java/Lang/ExceptionInInitializerError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 818aa4a35b023f15813546c23644997e +guid: 7061ea19762e3c5991ea6eda58da1ba6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Float.cs b/Runtime/Java/Lang/Float.cs index 5a1168b..3bf39f2 100644 --- a/Runtime/Java/Lang/Float.cs +++ b/Runtime/Java/Lang/Float.cs @@ -8,57 +8,120 @@ public class Float : global::Java.Lang.Number, global::Java.ExternalType.Java.La { public static float POSITIVE_INFINITY { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId0, value); + } } public static float NEGATIVE_INFINITY { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId1, value); + } } public static float NaN { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId2, value); + } } public static float MAX_VALUE { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId3, value); + } } public static float MIN_NORMAL { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId4, value); + } } public static float MIN_VALUE { - get => AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId5); - set => AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId5, value); + get + { + return AndroidJNI.GetStaticFloatField(_classObject, _cachedFieldId5); + } + set + { + AndroidJNI.SetStaticFloatField(_classObject, _cachedFieldId5, value); + } } public static int MAX_EXPONENT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + } } public static int MIN_EXPONENT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + } } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -152,7 +215,7 @@ public Float(float value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -167,7 +230,7 @@ public Float(double value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -182,7 +245,7 @@ public Float(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -219,7 +282,7 @@ public Float(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -233,7 +296,7 @@ public Float(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId1, args_); } finally @@ -247,7 +310,7 @@ public Float(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Float(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -261,7 +324,7 @@ public Float(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return new global::Java.Lang.Float(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -275,7 +338,7 @@ public static float ParseFloat(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId4, args_); } finally @@ -289,7 +352,7 @@ public static bool IsNaN(float v) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = v }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = v } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId5, args_); } finally @@ -303,7 +366,7 @@ public static bool IsInfinite(float v) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = v }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = v } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId6, args_); } finally @@ -317,7 +380,7 @@ public static bool IsFinite(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId7, args_); } finally @@ -331,7 +394,7 @@ public bool IsNaN() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -345,7 +408,7 @@ public bool IsInfinite() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -359,7 +422,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -373,7 +436,7 @@ public static int HashCode(float value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId11, args_); } finally @@ -387,7 +450,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -401,7 +464,7 @@ public static int FloatToIntBits(float value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId13, args_); } finally @@ -415,7 +478,7 @@ public static int FloatToRawIntBits(float value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId14, args_); } finally @@ -429,7 +492,7 @@ public static float IntBitsToFloat(int bits) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bits }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bits } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId15, args_); } finally @@ -443,7 +506,7 @@ public int CompareTo(global::Java.Lang.Float anotherFloat) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherFloat.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherFloat.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -457,7 +520,12 @@ public static int Compare(float f1, float f2) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f1 }, new jvalue { f = f2 }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = f1 }, + new jvalue { f = f2 } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId17, args_); } finally @@ -471,7 +539,12 @@ public static float Sum(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId18, args_); } finally @@ -485,7 +558,12 @@ public static float Max(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId19, args_); } finally @@ -499,7 +577,12 @@ public static float Min(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId20, args_); } finally diff --git a/Runtime/Java/Lang/Float.cs.meta b/Runtime/Java/Lang/Float.cs.meta index 7cdeca8..5b3bde7 100644 --- a/Runtime/Java/Lang/Float.cs.meta +++ b/Runtime/Java/Lang/Float.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7542c48a982f3c6eb3f145947ce07b48 +guid: 03c9207b00883297bafd0d786213f417 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/FunctionalInterface.cs b/Runtime/Java/Lang/FunctionalInterface.cs deleted file mode 100644 index 153a363..0000000 --- a/Runtime/Java/Lang/FunctionalInterface.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.Lang -{ - public interface FunctionalInterface : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.ExternalType.Java.Lang.Annotation.Annotation - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.FunctionalInterface - { - private static readonly IntPtr _classObject; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/FunctionalInterface"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation - - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.FunctionalInterface - { - public CallbackHelper() : base("java.lang.FunctionalInterface") {} - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class FunctionalInterface -} // end namespace Java.Lang diff --git a/Runtime/Java/Lang/FunctionalInterface.cs.meta b/Runtime/Java/Lang/FunctionalInterface.cs.meta deleted file mode 100644 index 507e6ec..0000000 --- a/Runtime/Java/Lang/FunctionalInterface.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7af38af54ae733909db29a37a5073761 -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/Lang/IllegalAccessError.cs b/Runtime/Java/Lang/IllegalAccessError.cs index 7b3a43a..34667f8 100644 --- a/Runtime/Java/Lang/IllegalAccessError.cs +++ b/Runtime/Java/Lang/IllegalAccessError.cs @@ -25,7 +25,7 @@ public IllegalAccessError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IllegalAccessError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalAccessError.cs.meta b/Runtime/Java/Lang/IllegalAccessError.cs.meta index 2c4fcb9..a2bd462 100644 --- a/Runtime/Java/Lang/IllegalAccessError.cs.meta +++ b/Runtime/Java/Lang/IllegalAccessError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 750c6305c75538778e9c7f2a75f78a50 +guid: 072df0ca52b335008eae129a9ebde83d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IllegalAccessException.cs b/Runtime/Java/Lang/IllegalAccessException.cs index 5040433..3c5fbab 100644 --- a/Runtime/Java/Lang/IllegalAccessException.cs +++ b/Runtime/Java/Lang/IllegalAccessException.cs @@ -25,7 +25,7 @@ public IllegalAccessException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IllegalAccessException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalAccessException.cs.meta b/Runtime/Java/Lang/IllegalAccessException.cs.meta index 0d9df56..a46e13e 100644 --- a/Runtime/Java/Lang/IllegalAccessException.cs.meta +++ b/Runtime/Java/Lang/IllegalAccessException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: eeea10683e283b009fd7e4ad576f7328 +guid: ebd98cd02738394198d451b6dfab2743 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IllegalArgumentException.cs b/Runtime/Java/Lang/IllegalArgumentException.cs index 13641f3..06f1fd5 100644 --- a/Runtime/Java/Lang/IllegalArgumentException.cs +++ b/Runtime/Java/Lang/IllegalArgumentException.cs @@ -29,7 +29,7 @@ public IllegalArgumentException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public IllegalArgumentException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public IllegalArgumentException(global::System.String message, global::Java.Lang try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public IllegalArgumentException(global::Java.Lang.Throwable cause) : base(IntPtr try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalArgumentException.cs.meta b/Runtime/Java/Lang/IllegalArgumentException.cs.meta index e339dab..6ff03d5 100644 --- a/Runtime/Java/Lang/IllegalArgumentException.cs.meta +++ b/Runtime/Java/Lang/IllegalArgumentException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5d2d3a8b2df031bb828965035fe19f43 +guid: b77386ef6fff3f03bc90923383e0b82d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IllegalMonitorStateException.cs b/Runtime/Java/Lang/IllegalMonitorStateException.cs index 14916a4..9ecaf4a 100644 --- a/Runtime/Java/Lang/IllegalMonitorStateException.cs +++ b/Runtime/Java/Lang/IllegalMonitorStateException.cs @@ -25,7 +25,7 @@ public IllegalMonitorStateException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IllegalMonitorStateException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalMonitorStateException.cs.meta b/Runtime/Java/Lang/IllegalMonitorStateException.cs.meta index ee0a9f7..cc8d283 100644 --- a/Runtime/Java/Lang/IllegalMonitorStateException.cs.meta +++ b/Runtime/Java/Lang/IllegalMonitorStateException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8cde4a680f2c354f8e7cff8882099264 +guid: e2c64dde8f763ffe934e579a76507e78 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IllegalStateException.cs b/Runtime/Java/Lang/IllegalStateException.cs index e332bf4..a02ee0e 100644 --- a/Runtime/Java/Lang/IllegalStateException.cs +++ b/Runtime/Java/Lang/IllegalStateException.cs @@ -29,7 +29,7 @@ public IllegalStateException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public IllegalStateException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public IllegalStateException(global::System.String message, global::Java.Lang.Th try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public IllegalStateException(global::Java.Lang.Throwable cause) : base(IntPtr.Ze try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalStateException.cs.meta b/Runtime/Java/Lang/IllegalStateException.cs.meta index c235382..418d12d 100644 --- a/Runtime/Java/Lang/IllegalStateException.cs.meta +++ b/Runtime/Java/Lang/IllegalStateException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f613abe0a3e93cf89124d4a084a22e99 +guid: f73b6e5b3d323e829add778ae1e40e18 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IllegalThreadStateException.cs b/Runtime/Java/Lang/IllegalThreadStateException.cs index f3caa06..1b58674 100644 --- a/Runtime/Java/Lang/IllegalThreadStateException.cs +++ b/Runtime/Java/Lang/IllegalThreadStateException.cs @@ -25,7 +25,7 @@ public IllegalThreadStateException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IllegalThreadStateException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IllegalThreadStateException.cs.meta b/Runtime/Java/Lang/IllegalThreadStateException.cs.meta index 40083ee..458422c 100644 --- a/Runtime/Java/Lang/IllegalThreadStateException.cs.meta +++ b/Runtime/Java/Lang/IllegalThreadStateException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6dad66817e9832f89efed5f06df58957 +guid: 4bf58346f32333cbabc735dfa28a0e66 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IncompatibleClassChangeError.cs b/Runtime/Java/Lang/IncompatibleClassChangeError.cs index ceaa14f..cc2ee1a 100644 --- a/Runtime/Java/Lang/IncompatibleClassChangeError.cs +++ b/Runtime/Java/Lang/IncompatibleClassChangeError.cs @@ -25,7 +25,7 @@ public IncompatibleClassChangeError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IncompatibleClassChangeError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IncompatibleClassChangeError.cs.meta b/Runtime/Java/Lang/IncompatibleClassChangeError.cs.meta index 952e0be..89d4bfe 100644 --- a/Runtime/Java/Lang/IncompatibleClassChangeError.cs.meta +++ b/Runtime/Java/Lang/IncompatibleClassChangeError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e844ede1eda43f22b37b6fdc5d1a1a8c +guid: 5ef38289cc8f321faaba5431993b63c6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/IndexOutOfBoundsException.cs b/Runtime/Java/Lang/IndexOutOfBoundsException.cs index a7ba4cb..80a2bda 100644 --- a/Runtime/Java/Lang/IndexOutOfBoundsException.cs +++ b/Runtime/Java/Lang/IndexOutOfBoundsException.cs @@ -25,7 +25,7 @@ public IndexOutOfBoundsException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public IndexOutOfBoundsException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/IndexOutOfBoundsException.cs.meta b/Runtime/Java/Lang/IndexOutOfBoundsException.cs.meta index a64f797..f0ed2c3 100644 --- a/Runtime/Java/Lang/IndexOutOfBoundsException.cs.meta +++ b/Runtime/Java/Lang/IndexOutOfBoundsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f05df5c7a6e4386996f63c067d55ada8 +guid: 8b2797c424f73b74b7220d328154a2c5 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/InheritableThreadLocal.cs b/Runtime/Java/Lang/InheritableThreadLocal.cs index 8aceddc..bf3000d 100644 --- a/Runtime/Java/Lang/InheritableThreadLocal.cs +++ b/Runtime/Java/Lang/InheritableThreadLocal.cs @@ -23,7 +23,7 @@ public InheritableThreadLocal() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/InheritableThreadLocal.cs.meta b/Runtime/Java/Lang/InheritableThreadLocal.cs.meta index 133b22d..114a06e 100644 --- a/Runtime/Java/Lang/InheritableThreadLocal.cs.meta +++ b/Runtime/Java/Lang/InheritableThreadLocal.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8afd91c696a630369bd09b89ea489253 +guid: 2f9d0181851b3bab93ed5f295a1690c8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/InstantiationError.cs b/Runtime/Java/Lang/InstantiationError.cs index 8827e5c..d76378e 100644 --- a/Runtime/Java/Lang/InstantiationError.cs +++ b/Runtime/Java/Lang/InstantiationError.cs @@ -25,7 +25,7 @@ public InstantiationError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public InstantiationError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/InstantiationError.cs.meta b/Runtime/Java/Lang/InstantiationError.cs.meta index fb269e6..8c2055f 100644 --- a/Runtime/Java/Lang/InstantiationError.cs.meta +++ b/Runtime/Java/Lang/InstantiationError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b2526e0f887038808837f156d901b8cf +guid: cbeb71e707c33cd2828d8a4e2b28ae8f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/InstantiationException.cs b/Runtime/Java/Lang/InstantiationException.cs index 14ee533..52068f0 100644 --- a/Runtime/Java/Lang/InstantiationException.cs +++ b/Runtime/Java/Lang/InstantiationException.cs @@ -25,7 +25,7 @@ public InstantiationException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public InstantiationException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/InstantiationException.cs.meta b/Runtime/Java/Lang/InstantiationException.cs.meta index 902da6a..c99a5c1 100644 --- a/Runtime/Java/Lang/InstantiationException.cs.meta +++ b/Runtime/Java/Lang/InstantiationException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6b09e49162aa374a9093b023378f6bdf +guid: b1f98792b6cf31348f22c5765e79a1c4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Integer.cs b/Runtime/Java/Lang/Integer.cs index 0094e49..3f0e659 100644 --- a/Runtime/Java/Lang/Integer.cs +++ b/Runtime/Java/Lang/Integer.cs @@ -8,17 +8,32 @@ public class Integer : global::Java.Lang.Number, global::Java.ExternalType.Java. { public static int MIN_VALUE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int MAX_VALUE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,13 +43,25 @@ public static int MAX_VALUE } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + } } private static readonly IntPtr _classObject; @@ -146,7 +173,7 @@ public Integer(int value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -161,7 +188,7 @@ public Integer(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -198,7 +225,12 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = i }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -212,7 +244,12 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = i }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId1, args_); } finally @@ -226,7 +263,7 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId2, args_); } finally @@ -240,7 +277,7 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId3, args_); } finally @@ -254,7 +291,7 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId4, args_); } finally @@ -268,7 +305,7 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId5, args_); } finally @@ -282,7 +319,7 @@ public Integer(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId6, args_); } finally @@ -296,7 +333,12 @@ public static int ParseInt(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId7, args_); } finally @@ -310,7 +352,7 @@ public static int ParseInt(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId8, args_); } finally @@ -324,7 +366,12 @@ public static int ParseUnsignedInt(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId9, args_); } finally @@ -338,7 +385,7 @@ public static int ParseUnsignedInt(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId10, args_); } finally @@ -352,7 +399,12 @@ public static int ParseUnsignedInt(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); } finally @@ -366,7 +418,7 @@ public static int ParseUnsignedInt(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); } finally @@ -380,7 +432,7 @@ public static int ParseUnsignedInt(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); } finally @@ -394,7 +446,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -408,7 +460,7 @@ public static int HashCode(int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId15, args_); } finally @@ -422,7 +474,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -436,7 +488,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId17, args_)); } finally @@ -450,7 +502,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }, new jvalue { i = val }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) }, + new jvalue { i = val } + }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId18, args_)); } finally @@ -464,7 +521,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }, new jvalue { l = val.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) }, + new jvalue { l = val.GetRawObject() } + }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId19, args_)); } finally @@ -478,7 +540,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Integer(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId20, args_)); } finally @@ -492,7 +554,7 @@ public int CompareTo(global::Java.Lang.Integer anotherInteger) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherInteger.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherInteger.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -506,7 +568,12 @@ public static int Compare(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId22, args_); } finally @@ -520,7 +587,12 @@ public static int CompareUnsigned(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId23, args_); } finally @@ -534,7 +606,7 @@ public static long ToUnsignedLong(int x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = x } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId24, args_); } finally @@ -548,7 +620,12 @@ public static int DivideUnsigned(int dividend, int divisor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = dividend }, new jvalue { i = divisor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = dividend }, + new jvalue { i = divisor } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId25, args_); } finally @@ -562,7 +639,12 @@ public static int RemainderUnsigned(int dividend, int divisor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = dividend }, new jvalue { i = divisor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = dividend }, + new jvalue { i = divisor } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId26, args_); } finally @@ -576,7 +658,7 @@ public static int HighestOneBit(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId27, args_); } finally @@ -590,7 +672,7 @@ public static int LowestOneBit(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId28, args_); } finally @@ -604,7 +686,7 @@ public static int NumberOfLeadingZeros(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId29, args_); } finally @@ -618,7 +700,7 @@ public static int NumberOfTrailingZeros(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId30, args_); } finally @@ -632,7 +714,7 @@ public static int BitCount(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId31, args_); } finally @@ -646,7 +728,12 @@ public static int RotateLeft(int i, int distance) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }, new jvalue { i = distance }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = i }, + new jvalue { i = distance } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId32, args_); } finally @@ -660,7 +747,12 @@ public static int RotateRight(int i, int distance) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }, new jvalue { i = distance }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = i }, + new jvalue { i = distance } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId33, args_); } finally @@ -674,7 +766,7 @@ public static int Reverse(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId34, args_); } finally @@ -688,7 +780,7 @@ public static int Signum(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId35, args_); } finally @@ -702,7 +794,7 @@ public static int ReverseBytes(int i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId36, args_); } finally @@ -716,7 +808,12 @@ public static int Sum(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId37, args_); } finally @@ -730,7 +827,12 @@ public static int Max(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId38, args_); } finally @@ -744,7 +846,12 @@ public static int Min(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId39, args_); } finally diff --git a/Runtime/Java/Lang/Integer.cs.meta b/Runtime/Java/Lang/Integer.cs.meta index 30729f7..f08ab05 100644 --- a/Runtime/Java/Lang/Integer.cs.meta +++ b/Runtime/Java/Lang/Integer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8a69b97c710738e9ac7c0e454c4d6d9e +guid: fd5d83b3aa7e3a00afe54a67bfc162c8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/InternalError.cs b/Runtime/Java/Lang/InternalError.cs index c46f016..f2e94ea 100644 --- a/Runtime/Java/Lang/InternalError.cs +++ b/Runtime/Java/Lang/InternalError.cs @@ -29,7 +29,7 @@ public InternalError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public InternalError(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public InternalError(global::System.String message, global::Java.Lang.Throwable try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public InternalError(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/InternalError.cs.meta b/Runtime/Java/Lang/InternalError.cs.meta index 2e88196..da94d0b 100644 --- a/Runtime/Java/Lang/InternalError.cs.meta +++ b/Runtime/Java/Lang/InternalError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0a5ea605fde73080b44968afcd6e79ed +guid: 78d9cc78a8893b838e5a93fed78b926f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/InterruptedException.cs b/Runtime/Java/Lang/InterruptedException.cs index 0deeeb7..e8f8dee 100644 --- a/Runtime/Java/Lang/InterruptedException.cs +++ b/Runtime/Java/Lang/InterruptedException.cs @@ -25,7 +25,7 @@ public InterruptedException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public InterruptedException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/InterruptedException.cs.meta b/Runtime/Java/Lang/InterruptedException.cs.meta index ec0ecf6..22a0199 100644 --- a/Runtime/Java/Lang/InterruptedException.cs.meta +++ b/Runtime/Java/Lang/InterruptedException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4a00ad6d4f2d3b78b33dc247d4933397 +guid: 7adbbcf692f8399aa306e23307daf3cb MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Iterable.cs b/Runtime/Java/Lang/Iterable.cs index 627be06..268f064 100644 --- a/Runtime/Java/Lang/Iterable.cs +++ b/Runtime/Java/Lang/Iterable.cs @@ -6,120 +6,143 @@ namespace Java.Lang { public interface Iterable : global::Google.LibraryWrapper.Java.JavaInterface where T : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Iterable + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + + static Iterable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Iterable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "forEach", "(Ljava/util/function/Consumer;)V"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + } + + global::Java.Util.Iterator Iterator(); - static AnonymousImplementation() + void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer action) + { + try { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Iterable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "forEach", "(Ljava/util/function/Consumer;)V"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = action.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId0, args_); } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + finally { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Iterator Iterator() + global::Java.ExternalType.Java.Util.Spliterator Spliterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId1, args_)); } - - public void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer action) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = action.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class Iterable + + public class IterableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Iterable where T : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static IterableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Iterable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + } - public global::Java.ExternalType.Java.Util.Spliterator Spliterator() + public IterableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of IterableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public global::Java.Util.Iterator Iterator() + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Iterable + public static explicit operator IntPtr(IterableAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.Iterable") {} + return wrapper.GetRawObject(); + } - public abstract global::Java.Util.Iterator Iterator(); + public static explicit operator IterableAnonymousImplementation(IntPtr rawObject) + { + return new IterableAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class IterableAnonymousImplementation + + public abstract class IterableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Iterable where T : class + { + public IterableCallbackHelper() : base("java.lang.Iterable") {} + + public abstract global::Java.Util.Iterator Iterator(); + + public abstract void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer action); + + public abstract global::Java.ExternalType.Java.Util.Spliterator Spliterator(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } - return base.Invoke(methodName, args); + else if (methodName == "forEach" && args.Length == 1) + { + ForEach(new global::Java.ExternalType.Java.Util.Function.Consumer(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } - } // end class CallbackHelper - - global::Java.Util.Iterator Iterator(); - } // end class Iterable + else if (methodName == "spliterator" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Spliterator()); + } + return base.Invoke(methodName, args); + } + } // end class IterableCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Iterable.cs.meta b/Runtime/Java/Lang/Iterable.cs.meta index 9068056..163d359 100644 --- a/Runtime/Java/Lang/Iterable.cs.meta +++ b/Runtime/Java/Lang/Iterable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ff0dd0cdab223a2da986ffa45b543b04 +guid: c94a2c52e763394b9f3cc1e04817674a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/LinkageError.cs b/Runtime/Java/Lang/LinkageError.cs index 9540a9f..f0ba1bb 100644 --- a/Runtime/Java/Lang/LinkageError.cs +++ b/Runtime/Java/Lang/LinkageError.cs @@ -27,7 +27,7 @@ public LinkageError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -42,7 +42,7 @@ public LinkageError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -57,7 +57,12 @@ public LinkageError(global::System.String s, global::Java.Lang.Throwable cause) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/LinkageError.cs.meta b/Runtime/Java/Lang/LinkageError.cs.meta index 64e7263..ac0f23c 100644 --- a/Runtime/Java/Lang/LinkageError.cs.meta +++ b/Runtime/Java/Lang/LinkageError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8be1bfacb5ac310e8735cabc4791522f +guid: da43efa45be2342d94d07ab9ece858e4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Long.cs b/Runtime/Java/Lang/Long.cs index 722b115..ffcea17 100644 --- a/Runtime/Java/Lang/Long.cs +++ b/Runtime/Java/Lang/Long.cs @@ -8,17 +8,32 @@ public class Long : global::Java.Lang.Number, global::Java.ExternalType.Java.Lan { public static long MIN_VALUE { - get => AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId0, value); + } } public static long MAX_VALUE { - get => AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId1, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,13 +43,25 @@ public static long MAX_VALUE } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + } } private static readonly IntPtr _classObject; @@ -144,7 +171,7 @@ public Long(long value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -159,7 +186,7 @@ public Long(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -196,7 +223,12 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = i }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -210,7 +242,12 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = i }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId1, args_); } finally @@ -224,7 +261,7 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId2, args_); } finally @@ -238,7 +275,7 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId3, args_); } finally @@ -252,7 +289,7 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId4, args_); } finally @@ -266,7 +303,7 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId5, args_); } finally @@ -280,7 +317,7 @@ public Long(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId6, args_); } finally @@ -294,7 +331,12 @@ public static long ParseLong(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId7, args_); } finally @@ -308,7 +350,7 @@ public static long ParseLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId8, args_); } finally @@ -322,7 +364,12 @@ public static long ParseUnsignedLong(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId9, args_); } finally @@ -336,7 +383,7 @@ public static long ParseUnsignedLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId10, args_); } finally @@ -350,7 +397,12 @@ public static long ParseUnsignedLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); } finally @@ -364,7 +416,7 @@ public static long ParseUnsignedLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); } finally @@ -378,7 +430,7 @@ public static long ParseUnsignedLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = l }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = l } }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); } finally @@ -392,7 +444,7 @@ public static long ParseUnsignedLong(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId14, args_)); } finally @@ -406,7 +458,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -420,7 +472,7 @@ public static int HashCode(long value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId16, args_); } finally @@ -434,7 +486,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -448,7 +500,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId18, args_)); } finally @@ -462,7 +514,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }, new jvalue { j = val }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) }, + new jvalue { j = val } + }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId19, args_)); } finally @@ -476,7 +533,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }, new jvalue { l = val.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) }, + new jvalue { l = val.GetRawObject() } + }; return new global::Java.Lang.Long(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId20, args_)); } finally @@ -490,7 +552,7 @@ public int CompareTo(global::Java.Lang.Long anotherLong) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherLong.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherLong.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -504,7 +566,12 @@ public static int Compare(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId22, args_); } finally @@ -518,7 +585,12 @@ public static int CompareUnsigned(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId23, args_); } finally @@ -532,7 +604,12 @@ public static long DivideUnsigned(long dividend, long divisor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = dividend }, new jvalue { j = divisor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = dividend }, + new jvalue { j = divisor } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId24, args_); } finally @@ -546,7 +623,12 @@ public static long RemainderUnsigned(long dividend, long divisor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = dividend }, new jvalue { j = divisor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = dividend }, + new jvalue { j = divisor } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId25, args_); } finally @@ -560,7 +642,7 @@ public static long HighestOneBit(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId26, args_); } finally @@ -574,7 +656,7 @@ public static long LowestOneBit(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId27, args_); } finally @@ -588,7 +670,7 @@ public static int NumberOfLeadingZeros(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId28, args_); } finally @@ -602,7 +684,7 @@ public static int NumberOfTrailingZeros(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId29, args_); } finally @@ -616,7 +698,7 @@ public static int BitCount(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId30, args_); } finally @@ -630,7 +712,12 @@ public static long RotateLeft(long i, int distance) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }, new jvalue { i = distance }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = i }, + new jvalue { i = distance } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId31, args_); } finally @@ -644,7 +731,12 @@ public static long RotateRight(long i, int distance) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }, new jvalue { i = distance }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = i }, + new jvalue { i = distance } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId32, args_); } finally @@ -658,7 +750,7 @@ public static long Reverse(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId33, args_); } finally @@ -672,7 +764,7 @@ public static int Signum(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId34, args_); } finally @@ -686,7 +778,7 @@ public static long ReverseBytes(long i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = i } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId35, args_); } finally @@ -700,7 +792,12 @@ public static long Sum(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId36, args_); } finally @@ -714,7 +811,12 @@ public static long Max(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId37, args_); } finally @@ -728,7 +830,12 @@ public static long Min(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId38, args_); } finally diff --git a/Runtime/Java/Lang/Long.cs.meta b/Runtime/Java/Lang/Long.cs.meta index a0ed93f..864eb37 100644 --- a/Runtime/Java/Lang/Long.cs.meta +++ b/Runtime/Java/Lang/Long.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d1b6ba93ffba3ef9921d9c3fa1475dcf +guid: e27b676435b5355ba08d12fe5ecfb8fd MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Math.cs b/Runtime/Java/Lang/Math.cs index b5ef59d..98a5e84 100644 --- a/Runtime/Java/Lang/Math.cs +++ b/Runtime/Java/Lang/Math.cs @@ -8,13 +8,25 @@ public class Math : global::Google.LibraryWrapper.Java.JavaObject { public static double E { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + } } public static double PI { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + } } private static readonly IntPtr _classObject; @@ -204,7 +216,7 @@ public static double Sin(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId0, args_); } finally @@ -218,7 +230,7 @@ public static double Cos(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId1, args_); } finally @@ -232,7 +244,7 @@ public static double Tan(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId2, args_); } finally @@ -246,7 +258,7 @@ public static double Asin(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId3, args_); } finally @@ -260,7 +272,7 @@ public static double Acos(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId4, args_); } finally @@ -274,7 +286,7 @@ public static double Atan(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId5, args_); } finally @@ -288,7 +300,7 @@ public static double ToRadians(double angdeg) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = angdeg }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = angdeg } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId6, args_); } finally @@ -302,7 +314,7 @@ public static double ToDegrees(double angrad) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = angrad }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = angrad } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId7, args_); } finally @@ -316,7 +328,7 @@ public static double Exp(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId8, args_); } finally @@ -330,7 +342,7 @@ public static double Log(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId9, args_); } finally @@ -344,7 +356,7 @@ public static double Log10(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId10, args_); } finally @@ -358,7 +370,7 @@ public static double Sqrt(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId11, args_); } finally @@ -372,7 +384,7 @@ public static double Cbrt(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId12, args_); } finally @@ -386,7 +398,12 @@ public static double IEEEremainder(double f1, double f2) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = f1 }, new jvalue { d = f2 }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = f1 }, + new jvalue { d = f2 } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId13, args_); } finally @@ -400,7 +417,7 @@ public static double Ceil(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId14, args_); } finally @@ -414,7 +431,7 @@ public static double Floor(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId15, args_); } finally @@ -428,7 +445,7 @@ public static double Rint(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId16, args_); } finally @@ -442,7 +459,12 @@ public static double Atan2(double y, double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = y }, new jvalue { d = x }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = y }, + new jvalue { d = x } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId17, args_); } finally @@ -456,7 +478,12 @@ public static double Pow(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId18, args_); } finally @@ -470,7 +497,7 @@ public static int Round(float a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId19, args_); } finally @@ -484,7 +511,7 @@ public static long Round(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId20, args_); } finally @@ -498,7 +525,7 @@ public static double Random() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId21, args_); } finally @@ -512,7 +539,12 @@ public static int AddExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId22, args_); } finally @@ -526,7 +558,12 @@ public static long AddExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId23, args_); } finally @@ -540,7 +577,12 @@ public static int SubtractExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId24, args_); } finally @@ -554,7 +596,12 @@ public static long SubtractExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId25, args_); } finally @@ -568,7 +615,12 @@ public static int MultiplyExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId26, args_); } finally @@ -582,7 +634,12 @@ public static long MultiplyExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId27, args_); } finally @@ -596,7 +653,7 @@ public static int IncrementExact(int a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId28, args_); } finally @@ -610,7 +667,7 @@ public static long IncrementExact(long a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId29, args_); } finally @@ -624,7 +681,7 @@ public static int DecrementExact(int a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId30, args_); } finally @@ -638,7 +695,7 @@ public static long DecrementExact(long a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId31, args_); } finally @@ -652,7 +709,7 @@ public static int NegateExact(int a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId32, args_); } finally @@ -666,7 +723,7 @@ public static long NegateExact(long a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId33, args_); } finally @@ -680,7 +737,7 @@ public static int ToIntExact(long value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId34, args_); } finally @@ -694,7 +751,12 @@ public static int FloorDiv(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId35, args_); } finally @@ -708,7 +770,12 @@ public static long FloorDiv(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId36, args_); } finally @@ -722,7 +789,12 @@ public static int FloorMod(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId37, args_); } finally @@ -736,7 +808,12 @@ public static long FloorMod(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId38, args_); } finally @@ -750,7 +827,7 @@ public static int Abs(int a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId39, args_); } finally @@ -764,7 +841,7 @@ public static long Abs(long a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId40, args_); } finally @@ -778,7 +855,7 @@ public static float Abs(float a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = a } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId41, args_); } finally @@ -792,7 +869,7 @@ public static double Abs(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId42, args_); } finally @@ -806,7 +883,12 @@ public static int Max(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId43, args_); } finally @@ -820,7 +902,12 @@ public static long Max(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId44, args_); } finally @@ -834,7 +921,12 @@ public static float Max(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId45, args_); } finally @@ -848,7 +940,12 @@ public static double Max(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId46, args_); } finally @@ -862,7 +959,12 @@ public static int Min(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId47, args_); } finally @@ -876,7 +978,12 @@ public static long Min(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId48, args_); } finally @@ -890,7 +997,12 @@ public static float Min(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId49, args_); } finally @@ -904,7 +1016,12 @@ public static double Min(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId50, args_); } finally @@ -918,7 +1035,7 @@ public static double Ulp(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId51, args_); } finally @@ -932,7 +1049,7 @@ public static float Ulp(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId52, args_); } finally @@ -946,7 +1063,7 @@ public static double Signum(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId53, args_); } finally @@ -960,7 +1077,7 @@ public static float Signum(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId54, args_); } finally @@ -974,7 +1091,7 @@ public static double Sinh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId55, args_); } finally @@ -988,7 +1105,7 @@ public static double Cosh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId56, args_); } finally @@ -1002,7 +1119,7 @@ public static double Tanh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId57, args_); } finally @@ -1016,7 +1133,12 @@ public static double Hypot(double x, double y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }, new jvalue { d = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = x }, + new jvalue { d = y } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId58, args_); } finally @@ -1030,7 +1152,7 @@ public static double Expm1(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId59, args_); } finally @@ -1044,7 +1166,7 @@ public static double Log1p(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId60, args_); } finally @@ -1058,7 +1180,12 @@ public static double CopySign(double magnitude, double sign) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = magnitude }, new jvalue { d = sign }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = magnitude }, + new jvalue { d = sign } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId61, args_); } finally @@ -1072,7 +1199,12 @@ public static float CopySign(float magnitude, float sign) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = magnitude }, new jvalue { f = sign }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = magnitude }, + new jvalue { f = sign } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId62, args_); } finally @@ -1086,7 +1218,7 @@ public static int GetExponent(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId63, args_); } finally @@ -1100,7 +1232,7 @@ public static int GetExponent(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId64, args_); } finally @@ -1114,7 +1246,12 @@ public static double NextAfter(double start, double direction) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = start }, new jvalue { d = direction }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = start }, + new jvalue { d = direction } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId65, args_); } finally @@ -1128,7 +1265,12 @@ public static float NextAfter(float start, double direction) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = start }, new jvalue { d = direction }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = start }, + new jvalue { d = direction } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId66, args_); } finally @@ -1142,7 +1284,7 @@ public static double NextUp(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId67, args_); } finally @@ -1156,7 +1298,7 @@ public static float NextUp(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId68, args_); } finally @@ -1170,7 +1312,7 @@ public static double NextDown(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId69, args_); } finally @@ -1184,7 +1326,7 @@ public static float NextDown(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId70, args_); } finally @@ -1198,7 +1340,12 @@ public static double Scalb(double d, int scaleFactor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }, new jvalue { i = scaleFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = d }, + new jvalue { i = scaleFactor } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId71, args_); } finally @@ -1212,7 +1359,12 @@ public static float Scalb(float f, int scaleFactor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }, new jvalue { i = scaleFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = f }, + new jvalue { i = scaleFactor } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId72, args_); } finally diff --git a/Runtime/Java/Lang/Math.cs.meta b/Runtime/Java/Lang/Math.cs.meta index 9c18190..30f3458 100644 --- a/Runtime/Java/Lang/Math.cs.meta +++ b/Runtime/Java/Lang/Math.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2486a2cf62f03851be121752a8593bc4 +guid: 5850a54aed7239419ea656385fd06ac7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NegativeArraySizeException.cs b/Runtime/Java/Lang/NegativeArraySizeException.cs index 8d72dae..0adfa63 100644 --- a/Runtime/Java/Lang/NegativeArraySizeException.cs +++ b/Runtime/Java/Lang/NegativeArraySizeException.cs @@ -25,7 +25,7 @@ public NegativeArraySizeException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NegativeArraySizeException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NegativeArraySizeException.cs.meta b/Runtime/Java/Lang/NegativeArraySizeException.cs.meta index 8339a9a..93234ff 100644 --- a/Runtime/Java/Lang/NegativeArraySizeException.cs.meta +++ b/Runtime/Java/Lang/NegativeArraySizeException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 44af368d332d3474a70e1f7251b99fa8 +guid: 3c37e651370a3a37806f4b049e6cc6a6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NoClassDefFoundError.cs b/Runtime/Java/Lang/NoClassDefFoundError.cs index e4a4def..049fc9c 100644 --- a/Runtime/Java/Lang/NoClassDefFoundError.cs +++ b/Runtime/Java/Lang/NoClassDefFoundError.cs @@ -25,7 +25,7 @@ public NoClassDefFoundError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoClassDefFoundError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NoClassDefFoundError.cs.meta b/Runtime/Java/Lang/NoClassDefFoundError.cs.meta index 0252d23..f2c23d8 100644 --- a/Runtime/Java/Lang/NoClassDefFoundError.cs.meta +++ b/Runtime/Java/Lang/NoClassDefFoundError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6a87caf4efad32f8940cd8b9377f63ac +guid: edd074fea9323f60b21fa621f62d19fd MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NoSuchFieldError.cs b/Runtime/Java/Lang/NoSuchFieldError.cs index 117e958..3d841dc 100644 --- a/Runtime/Java/Lang/NoSuchFieldError.cs +++ b/Runtime/Java/Lang/NoSuchFieldError.cs @@ -25,7 +25,7 @@ public NoSuchFieldError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoSuchFieldError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NoSuchFieldError.cs.meta b/Runtime/Java/Lang/NoSuchFieldError.cs.meta index a344e63..6aa1037 100644 --- a/Runtime/Java/Lang/NoSuchFieldError.cs.meta +++ b/Runtime/Java/Lang/NoSuchFieldError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a5128a4b95e23fe8b48e3d23571706ba +guid: 085b9b45efe03c839bf1393a8497f581 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NoSuchFieldException.cs b/Runtime/Java/Lang/NoSuchFieldException.cs index d70fb83..8bfda71 100644 --- a/Runtime/Java/Lang/NoSuchFieldException.cs +++ b/Runtime/Java/Lang/NoSuchFieldException.cs @@ -25,7 +25,7 @@ public NoSuchFieldException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoSuchFieldException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NoSuchFieldException.cs.meta b/Runtime/Java/Lang/NoSuchFieldException.cs.meta index 631b002..e4a147d 100644 --- a/Runtime/Java/Lang/NoSuchFieldException.cs.meta +++ b/Runtime/Java/Lang/NoSuchFieldException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 933b6dae160b34c7a33f87a673acd1d2 +guid: f3d5eaaca6903e65a33004cf29537f17 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NoSuchMethodError.cs b/Runtime/Java/Lang/NoSuchMethodError.cs index 6d8eb0f..011c766 100644 --- a/Runtime/Java/Lang/NoSuchMethodError.cs +++ b/Runtime/Java/Lang/NoSuchMethodError.cs @@ -25,7 +25,7 @@ public NoSuchMethodError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoSuchMethodError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NoSuchMethodError.cs.meta b/Runtime/Java/Lang/NoSuchMethodError.cs.meta index e127b77..5befbb5 100644 --- a/Runtime/Java/Lang/NoSuchMethodError.cs.meta +++ b/Runtime/Java/Lang/NoSuchMethodError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6c0e92abbb5935079c451b0fb80d4be4 +guid: cc17c100fa813f3f86a6aba7fde9e9b6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NoSuchMethodException.cs b/Runtime/Java/Lang/NoSuchMethodException.cs index aba569b..e3c870c 100644 --- a/Runtime/Java/Lang/NoSuchMethodException.cs +++ b/Runtime/Java/Lang/NoSuchMethodException.cs @@ -25,7 +25,7 @@ public NoSuchMethodException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoSuchMethodException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NoSuchMethodException.cs.meta b/Runtime/Java/Lang/NoSuchMethodException.cs.meta index acff29c..16c744a 100644 --- a/Runtime/Java/Lang/NoSuchMethodException.cs.meta +++ b/Runtime/Java/Lang/NoSuchMethodException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3fcdb166afac38a2b0662f579bae43b7 +guid: e03d11498c2e3cd1bdd415e9a21b0754 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NullPointerException.cs b/Runtime/Java/Lang/NullPointerException.cs index 1bb5ada..9fe5e7d 100644 --- a/Runtime/Java/Lang/NullPointerException.cs +++ b/Runtime/Java/Lang/NullPointerException.cs @@ -25,7 +25,7 @@ public NullPointerException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NullPointerException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NullPointerException.cs.meta b/Runtime/Java/Lang/NullPointerException.cs.meta index db630c0..e19335e 100644 --- a/Runtime/Java/Lang/NullPointerException.cs.meta +++ b/Runtime/Java/Lang/NullPointerException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 26b5ff74be083365ad2bc4ddcb636a4a +guid: 73e415e731bc3b04b73261f85bb53999 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Number.cs b/Runtime/Java/Lang/Number.cs index 2b23dac..0f4666c 100644 --- a/Runtime/Java/Lang/Number.cs +++ b/Runtime/Java/Lang/Number.cs @@ -35,7 +35,7 @@ public Number() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -72,7 +72,7 @@ public int IntValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -86,7 +86,7 @@ public long LongValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -100,7 +100,7 @@ public float FloatValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallFloatMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -114,7 +114,7 @@ public double DoubleValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -128,8 +128,8 @@ public sbyte ByteValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallSByteMethod(_rawObject, _cachedMethodId4, args_); + jvalue[] args_ = new jvalue[] { }; + return global::Google.LibraryWrapper.Java.Utils.CallSByteMethod(_rawObject, _cachedMethodId4, args_); } finally { @@ -142,7 +142,7 @@ public short ShortValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallShortMethod(_rawObject, _cachedMethodId5, args_); } finally diff --git a/Runtime/Java/Lang/Number.cs.meta b/Runtime/Java/Lang/Number.cs.meta index 2b59835..8ac6b7b 100644 --- a/Runtime/Java/Lang/Number.cs.meta +++ b/Runtime/Java/Lang/Number.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fc8d14827a8e394f88ed218b09644cc3 +guid: 39271b5e90863915966b15df8b1ceb8d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/NumberFormatException.cs b/Runtime/Java/Lang/NumberFormatException.cs index bac340b..5aa701f 100644 --- a/Runtime/Java/Lang/NumberFormatException.cs +++ b/Runtime/Java/Lang/NumberFormatException.cs @@ -25,7 +25,7 @@ public NumberFormatException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NumberFormatException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/NumberFormatException.cs.meta b/Runtime/Java/Lang/NumberFormatException.cs.meta index 76497f7..69c5764 100644 --- a/Runtime/Java/Lang/NumberFormatException.cs.meta +++ b/Runtime/Java/Lang/NumberFormatException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0c0c281266533ed08fb62a7eb583df05 +guid: a4d423cb978a3249b17edbed2b5ded08 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/OutOfMemoryError.cs b/Runtime/Java/Lang/OutOfMemoryError.cs index c13d86e..4a28fa8 100644 --- a/Runtime/Java/Lang/OutOfMemoryError.cs +++ b/Runtime/Java/Lang/OutOfMemoryError.cs @@ -25,7 +25,7 @@ public OutOfMemoryError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public OutOfMemoryError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/OutOfMemoryError.cs.meta b/Runtime/Java/Lang/OutOfMemoryError.cs.meta index 1fe458c..630fba2 100644 --- a/Runtime/Java/Lang/OutOfMemoryError.cs.meta +++ b/Runtime/Java/Lang/OutOfMemoryError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 141daed78e623f4abb3c94ac48cf7fd6 +guid: 2e17b44144ac37bda630b0f0bb74b881 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Override.cs b/Runtime/Java/Lang/Override.cs deleted file mode 100644 index e0e7dc2..0000000 --- a/Runtime/Java/Lang/Override.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.Lang -{ - public interface Override : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.ExternalType.Java.Lang.Annotation.Annotation - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Override - { - private static readonly IntPtr _classObject; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Override"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation - - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Override - { - public CallbackHelper() : base("java.lang.Override") {} - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class Override -} // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Override.cs.meta b/Runtime/Java/Lang/Override.cs.meta deleted file mode 100644 index cf7e96d..0000000 --- a/Runtime/Java/Lang/Override.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 484ba325d9aa3639970d5e9c2e47d309 -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/Lang/Package.cs b/Runtime/Java/Lang/Package.cs index 64fa29c..91bdf17 100644 --- a/Runtime/Java/Lang/Package.cs +++ b/Runtime/Java/Lang/Package.cs @@ -53,7 +53,7 @@ public Package() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -90,7 +90,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -104,7 +104,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -118,7 +118,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -132,7 +132,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -146,7 +146,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -160,7 +160,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -174,7 +174,7 @@ public Package(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -188,7 +188,7 @@ public bool IsSealed() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -202,7 +202,7 @@ public bool IsSealed(global::Java.ExternalType.Java.Net.URL url) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = url.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = url.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -216,7 +216,7 @@ public bool IsCompatibleWith(global::System.String desired) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(desired) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(desired) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -230,7 +230,7 @@ public bool IsCompatibleWith(global::System.String desired) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Lang.Package(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); } finally @@ -244,7 +244,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -258,7 +258,7 @@ public A GetAnnotation(global::Java.Lang.Class annotationClass) where A : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = annotationClass.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = annotationClass.GetRawObject() } }; if (typeof(A) == typeof(global::System.String)) { return (A) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId12, args_); @@ -280,7 +280,7 @@ public bool IsAnnotationPresent(global::Java.Lang.Class(global::Java.Lang.Class annotationClass) wh try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = annotationClass.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = annotationClass.GetRawObject() } }; if (typeof(A) == typeof(global::System.String)) { return (A) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); diff --git a/Runtime/Java/Lang/Package.cs.meta b/Runtime/Java/Lang/Package.cs.meta index f3faece..3c29986 100644 --- a/Runtime/Java/Lang/Package.cs.meta +++ b/Runtime/Java/Lang/Package.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: aea06b08b02338e8a72bcf548864e480 +guid: 0f7a81bd33d03141af0cbfe58202dd27 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Process.cs b/Runtime/Java/Lang/Process.cs index 7e5b04a..2b4f2e1 100644 --- a/Runtime/Java/Lang/Process.cs +++ b/Runtime/Java/Lang/Process.cs @@ -41,7 +41,7 @@ public Process() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -78,7 +78,7 @@ public Process(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Io.OutputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -92,7 +92,7 @@ public Process(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -106,7 +106,7 @@ public Process(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -120,7 +120,7 @@ public int WaitFor() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -134,7 +134,12 @@ public bool WaitFor(long timeout, global::Java.ExternalType.Java.Util.Concurrent try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = timeout }, new jvalue { l = unit.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = timeout }, + new jvalue { l = unit.GetRawObject() } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -148,7 +153,7 @@ public int ExitValue() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -162,7 +167,7 @@ public void Destroy() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -176,7 +181,7 @@ public void Destroy() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Process(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -190,7 +195,7 @@ public bool IsAlive() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally diff --git a/Runtime/Java/Lang/Process.cs.meta b/Runtime/Java/Lang/Process.cs.meta index bf5f73f..51d5930 100644 --- a/Runtime/Java/Lang/Process.cs.meta +++ b/Runtime/Java/Lang/Process.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a6b6ae96a6543b26b0b12468fd3c172f +guid: 472099e5218e3e62b7cf1a2eb1a39ee2 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Readable.cs b/Runtime/Java/Lang/Readable.cs index 6c87916..d68d6f7 100644 --- a/Runtime/Java/Lang/Readable.cs +++ b/Runtime/Java/Lang/Readable.cs @@ -6,88 +6,98 @@ namespace Java.Lang { public interface Readable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Readable + private static readonly IntPtr _classObject; + + static Readable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Readable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Readable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "read", "(Ljava/nio/CharBuffer;)I"); - } + int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb); + } // end class Readable + + public class ReadableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Readable + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static ReadableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Readable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "read", "(Ljava/nio/CharBuffer;)I"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public ReadableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cb.GetRawObject() }}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ReadableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = cb.GetRawObject() } }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Readable + public static explicit operator IntPtr(ReadableAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.Readable") {} + return wrapper.GetRawObject(); + } - public abstract int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb); + public static explicit operator ReadableAnonymousImplementation(IntPtr rawObject) + { + return new ReadableAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ReadableAnonymousImplementation + + public abstract class ReadableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Readable + { + public ReadableCallbackHelper() : base("java.lang.Readable") {} + + public abstract int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "read" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Read(new global::Java.ExternalType.Java.Nio.CharBuffer(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Read(new global::Java.ExternalType.Java.Nio.CharBuffer(((AndroidJavaObject) args[0]).GetRawObject()))); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - int Read(global::Java.ExternalType.Java.Nio.CharBuffer cb); - } // end class Readable + } + } // end class ReadableCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Readable.cs.meta b/Runtime/Java/Lang/Readable.cs.meta index 2f74da7..b692fdb 100644 --- a/Runtime/Java/Lang/Readable.cs.meta +++ b/Runtime/Java/Lang/Readable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e8e020189458389496252d1d552f2736 +guid: ff662d2038dc32b493beec32a16cc891 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ReflectiveOperationException.cs b/Runtime/Java/Lang/ReflectiveOperationException.cs index 064ae2a..9505da0 100644 --- a/Runtime/Java/Lang/ReflectiveOperationException.cs +++ b/Runtime/Java/Lang/ReflectiveOperationException.cs @@ -29,7 +29,7 @@ public ReflectiveOperationException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public ReflectiveOperationException(global::System.String message) : base(IntPtr try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public ReflectiveOperationException(global::System.String message, global::Java. try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public ReflectiveOperationException(global::Java.Lang.Throwable cause) : base(In try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ReflectiveOperationException.cs.meta b/Runtime/Java/Lang/ReflectiveOperationException.cs.meta index d1136d6..4c7523c 100644 --- a/Runtime/Java/Lang/ReflectiveOperationException.cs.meta +++ b/Runtime/Java/Lang/ReflectiveOperationException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4d022d5a476d3e678fdb4f380db79502 +guid: fc1eaf99efae3e51ae6ee02f79439a59 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Runnable.cs b/Runtime/Java/Lang/Runnable.cs index d98f25a..9e92929 100644 --- a/Runtime/Java/Lang/Runnable.cs +++ b/Runtime/Java/Lang/Runnable.cs @@ -6,89 +6,99 @@ namespace Java.Lang { public interface Runnable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Runnable + private static readonly IntPtr _classObject; + + static Runnable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Runnable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Runnable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "run", "()V"); - } + void Run(); + } // end class Runnable + + public class RunnableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Runnable + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static RunnableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Runnable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "run", "()V"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public RunnableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void Run() + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of RunnableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void Run() + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Runnable + public static explicit operator IntPtr(RunnableAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.Runnable") {} + return wrapper.GetRawObject(); + } - public abstract void Run(); + public static explicit operator RunnableAnonymousImplementation(IntPtr rawObject) + { + return new RunnableAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class RunnableAnonymousImplementation + + public abstract class RunnableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Runnable + { + public RunnableCallbackHelper() : base("java.lang.Runnable") {} + + public abstract void Run(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "run" && args.Length == 0) { - Run(); - return null; + Run(); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void Run(); - } // end class Runnable + } + } // end class RunnableCallbackHelper } // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Runnable.cs.meta b/Runtime/Java/Lang/Runnable.cs.meta index 2e411a5..12edb0d 100644 --- a/Runtime/Java/Lang/Runnable.cs.meta +++ b/Runtime/Java/Lang/Runnable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d5f36fcb701c3faab83672fe570d12bd +guid: 30b09681aa9f338cad9add9aff12a6f4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/RuntimeException.cs b/Runtime/Java/Lang/RuntimeException.cs index b4edb8c..49e0685 100644 --- a/Runtime/Java/Lang/RuntimeException.cs +++ b/Runtime/Java/Lang/RuntimeException.cs @@ -29,7 +29,7 @@ public RuntimeException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public RuntimeException(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public RuntimeException(global::System.String message, global::Java.Lang.Throwab try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public RuntimeException(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/RuntimeException.cs.meta b/Runtime/Java/Lang/RuntimeException.cs.meta index 5f1c3d1..73cdfa1 100644 --- a/Runtime/Java/Lang/RuntimeException.cs.meta +++ b/Runtime/Java/Lang/RuntimeException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 624bf300bb5f3dfba5cbb6af18ee88b7 +guid: 6c4b7830e19837009f5483eebbf75d82 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/RuntimePermission.cs b/Runtime/Java/Lang/RuntimePermission.cs index c7e3f95..3279bbc 100644 --- a/Runtime/Java/Lang/RuntimePermission.cs +++ b/Runtime/Java/Lang/RuntimePermission.cs @@ -25,7 +25,7 @@ public RuntimePermission(global::System.String name) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,12 @@ public RuntimePermission(global::System.String name, global::System.String actio try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }, new jvalue { l = AndroidJNI.NewString(actions) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(actions) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/RuntimePermission.cs.meta b/Runtime/Java/Lang/RuntimePermission.cs.meta index c4a3a7f..a759982 100644 --- a/Runtime/Java/Lang/RuntimePermission.cs.meta +++ b/Runtime/Java/Lang/RuntimePermission.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8f6a088bb6023cd18702ddac8914385a +guid: 7d25b4f18457336987a89f4f1dbaee18 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/SafeVarargs.cs b/Runtime/Java/Lang/SafeVarargs.cs deleted file mode 100644 index 87cf0ba..0000000 --- a/Runtime/Java/Lang/SafeVarargs.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.Lang -{ - public interface SafeVarargs : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.ExternalType.Java.Lang.Annotation.Annotation - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.SafeVarargs - { - private static readonly IntPtr _classObject; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/SafeVarargs"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation - - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.SafeVarargs - { - public CallbackHelper() : base("java.lang.SafeVarargs") {} - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class SafeVarargs -} // end namespace Java.Lang diff --git a/Runtime/Java/Lang/SafeVarargs.cs.meta b/Runtime/Java/Lang/SafeVarargs.cs.meta deleted file mode 100644 index 4bc1127..0000000 --- a/Runtime/Java/Lang/SafeVarargs.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 807bd9aaf3c735ef89f1c446d952ef8d -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/Lang/SecurityException.cs b/Runtime/Java/Lang/SecurityException.cs index 2822e40..766c747 100644 --- a/Runtime/Java/Lang/SecurityException.cs +++ b/Runtime/Java/Lang/SecurityException.cs @@ -29,7 +29,7 @@ public SecurityException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public SecurityException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public SecurityException(global::System.String message, global::Java.Lang.Throwa try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public SecurityException(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/SecurityException.cs.meta b/Runtime/Java/Lang/SecurityException.cs.meta index fd31b90..55e29ac 100644 --- a/Runtime/Java/Lang/SecurityException.cs.meta +++ b/Runtime/Java/Lang/SecurityException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 34482fd28bc63a74ac13ae87d6e0bb96 +guid: 958f18cee64b32688b09bc776fac4576 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/SecurityManager.cs b/Runtime/Java/Lang/SecurityManager.cs deleted file mode 100644 index 3527cd1..0000000 --- a/Runtime/Java/Lang/SecurityManager.cs +++ /dev/null @@ -1,617 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.Lang -{ - public class SecurityManager : global::Google.LibraryWrapper.Java.JavaObject - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedConstructorId0; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - private static readonly IntPtr _cachedMethodId25; - private static readonly IntPtr _cachedMethodId26; - private static readonly IntPtr _cachedMethodId27; - private static readonly IntPtr _cachedMethodId28; - private static readonly IntPtr _cachedMethodId29; - private static readonly IntPtr _cachedMethodId30; - private static readonly IntPtr _cachedMethodId31; - private static readonly IntPtr _cachedMethodId32; - private static readonly IntPtr _cachedMethodId33; - - static SecurityManager() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/SecurityManager"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedConstructorId0 = AndroidJNI.GetMethodID(_classObject, "", "()V"); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "getInCheck", "()Z"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "getSecurityContext", "()Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "checkPermission", "(Ljava/security/Permission;)V"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "checkPermission", "(Ljava/security/Permission;Ljava/lang/Object;)V"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "checkCreateClassLoader", "()V"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "checkAccess", "(Ljava/lang/Thread;)V"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "checkAccess", "(Ljava/lang/ThreadGroup;)V"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "checkExit", "(I)V"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "checkExec", "(Ljava/lang/String;)V"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "checkLink", "(Ljava/lang/String;)V"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "checkRead", "(Ljava/io/FileDescriptor;)V"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "checkRead", "(Ljava/lang/String;)V"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "checkRead", "(Ljava/lang/String;Ljava/lang/Object;)V"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "checkWrite", "(Ljava/io/FileDescriptor;)V"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "checkWrite", "(Ljava/lang/String;)V"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "checkDelete", "(Ljava/lang/String;)V"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "checkConnect", "(Ljava/lang/String;I)V"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "checkConnect", "(Ljava/lang/String;ILjava/lang/Object;)V"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "checkListen", "(I)V"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "checkAccept", "(Ljava/lang/String;I)V"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "checkMulticast", "(Ljava/net/InetAddress;)V"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "checkMulticast", "(Ljava/net/InetAddress;B)V"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "checkPropertiesAccess", "()V"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "checkPropertyAccess", "(Ljava/lang/String;)V"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "checkTopLevelWindow", "(Ljava/lang/Object;)Z"); - _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "checkPrintJobAccess", "()V"); - _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "checkSystemClipboardAccess", "()V"); - _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "checkAwtEventQueueAccess", "()V"); - _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "checkPackageAccess", "(Ljava/lang/String;)V"); - _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "checkPackageDefinition", "(Ljava/lang/String;)V"); - _cachedMethodId30 = AndroidJNI.GetMethodID(_classObject, "checkSetFactory", "()V"); - _cachedMethodId31 = AndroidJNI.GetMethodID(_classObject, "checkMemberAccess", "(Ljava/lang/Class;I)V"); - _cachedMethodId32 = AndroidJNI.GetMethodID(_classObject, "checkSecurityAccess", "(Ljava/lang/String;)V"); - _cachedMethodId33 = AndroidJNI.GetMethodID(_classObject, "getThreadGroup", "()Ljava/lang/ThreadGroup;"); - } - - public SecurityManager() : base(IntPtr.Zero) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); - _rawObject = AndroidJNI.NewGlobalRef(rawObject_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public SecurityManager(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of SecurityManager."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public bool GetInCheck() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public global::Google.LibraryWrapper.Java.JavaObject GetSecurityContext() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPermission(global::Java.ExternalType.Java.Security.Permission perm) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = perm.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPermission(global::Java.ExternalType.Java.Security.Permission perm, global::Google.LibraryWrapper.Java.JavaObject context) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = perm.GetRawObject() }, new jvalue { l = context.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckCreateClassLoader() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckAccess(global::Java.Lang.Thread t) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = t.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckAccess(global::Java.Lang.ThreadGroup g) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = g.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckExit(int status) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = status }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckExec(global::System.String cmd) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(cmd) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckLink(global::System.String lib) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(lib) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId9, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckRead(global::Java.ExternalType.Java.Io.FileDescriptor fd) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = fd.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckRead(global::System.String file) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(file) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckRead(global::System.String file, global::Google.LibraryWrapper.Java.JavaObject context) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(file) }, new jvalue { l = context.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckWrite(global::Java.ExternalType.Java.Io.FileDescriptor fd) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = fd.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckWrite(global::System.String file) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(file) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId14, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckDelete(global::System.String file) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(file) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckConnect(global::System.String host, int port) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(host) }, new jvalue { i = port }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckConnect(global::System.String host, int port, global::Google.LibraryWrapper.Java.JavaObject context) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(host) }, new jvalue { i = port }, new jvalue { l = context.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckListen(int port) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = port }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId18, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckAccept(global::System.String host, int port) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(host) }, new jvalue { i = port }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId19, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckMulticast(global::Java.ExternalType.Java.Net.InetAddress maddr) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = maddr.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId20, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckMulticast(global::Java.ExternalType.Java.Net.InetAddress maddr, sbyte ttl) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = maddr.GetRawObject() }, new jvalue { b = ttl }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId21, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPropertiesAccess() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId22, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPropertyAccess(global::System.String key) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId23, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public bool CheckTopLevelWindow(global::Google.LibraryWrapper.Java.JavaObject window) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = window.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId24, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPrintJobAccess() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId25, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckSystemClipboardAccess() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId26, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckAwtEventQueueAccess() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId27, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPackageAccess(global::System.String pkg) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(pkg) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId28, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckPackageDefinition(global::System.String pkg) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(pkg) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId29, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckSetFactory() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId30, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckMemberAccess(global::Java.Lang.Class clazz, int which) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = clazz.GetRawObject() }, new jvalue { i = which }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId31, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public void CheckSecurityAccess(global::System.String target) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(target) }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId32, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public global::Java.Lang.ThreadGroup GetThreadGroup() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Lang.ThreadGroup(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId33, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(SecurityManager wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator SecurityManager(IntPtr rawObject) - { - return new SecurityManager(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class SecurityManager -} // end namespace Java.Lang diff --git a/Runtime/Java/Lang/Short.cs b/Runtime/Java/Lang/Short.cs index b45e4d7..48e1008 100644 --- a/Runtime/Java/Lang/Short.cs +++ b/Runtime/Java/Lang/Short.cs @@ -8,17 +8,32 @@ public class Short : global::Java.Lang.Number, global::Java.ExternalType.Java.La { public static short MIN_VALUE { - get => AndroidJNI.GetStaticShortField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticShortField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticShortField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticShortField(_classObject, _cachedFieldId0, value); + } } public static short MAX_VALUE { - get => AndroidJNI.GetStaticShortField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticShortField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticShortField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticShortField(_classObject, _cachedFieldId1, value); + } } public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,13 +43,25 @@ public static short MAX_VALUE } public static int SIZE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + } } public static int BYTES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + } } private static readonly IntPtr _classObject; @@ -96,7 +123,7 @@ public Short(short value) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = value } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -111,7 +138,7 @@ public Short(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -148,7 +175,7 @@ public Short(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = s }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = s } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId0, args_); } finally @@ -162,7 +189,12 @@ public static short ParseShort(global::System.String s, int radix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return AndroidJNI.CallStaticShortMethod(_classObject, _cachedMethodId1, args_); } finally @@ -176,7 +208,7 @@ public static short ParseShort(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticShortMethod(_classObject, _cachedMethodId2, args_); } finally @@ -190,7 +222,12 @@ public static short ParseShort(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { i = radix }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { i = radix } + }; return new global::Java.Lang.Short(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -204,7 +241,7 @@ public static short ParseShort(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return new global::Java.Lang.Short(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -218,7 +255,7 @@ public static short ParseShort(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = s }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = s } }; return new global::Java.Lang.Short(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally @@ -232,7 +269,7 @@ public static short ParseShort(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(nm) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nm) } }; return new global::Java.Lang.Short(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally @@ -246,7 +283,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -260,7 +297,7 @@ public static int HashCode(short value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId8, args_); } finally @@ -274,7 +311,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -288,7 +325,7 @@ public int CompareTo(global::Java.Lang.Short anotherShort) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherShort.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherShort.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -302,7 +339,12 @@ public static int Compare(short x, short y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = x }, new jvalue { s = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { s = x }, + new jvalue { s = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId11, args_); } finally @@ -316,7 +358,7 @@ public static short ReverseBytes(short i) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = i } }; return AndroidJNI.CallStaticShortMethod(_classObject, _cachedMethodId12, args_); } finally @@ -330,7 +372,7 @@ public static int ToUnsignedInt(short x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = x } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId13, args_); } finally @@ -344,7 +386,7 @@ public static long ToUnsignedLong(short x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { s = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { s = x } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId14, args_); } finally diff --git a/Runtime/Java/Lang/Short.cs.meta b/Runtime/Java/Lang/Short.cs.meta index 353cedc..60d05e3 100644 --- a/Runtime/Java/Lang/Short.cs.meta +++ b/Runtime/Java/Lang/Short.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 00962de3f2493142b337e34f7d5b2537 +guid: 5fd7ce0058fa389194a4b9d913713d08 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/StackOverflowError.cs b/Runtime/Java/Lang/StackOverflowError.cs index 4d459e9..1139107 100644 --- a/Runtime/Java/Lang/StackOverflowError.cs +++ b/Runtime/Java/Lang/StackOverflowError.cs @@ -25,7 +25,7 @@ public StackOverflowError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public StackOverflowError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/StackOverflowError.cs.meta b/Runtime/Java/Lang/StackOverflowError.cs.meta index 423b8e3..0d4aa6a 100644 --- a/Runtime/Java/Lang/StackOverflowError.cs.meta +++ b/Runtime/Java/Lang/StackOverflowError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 566b403c28b73ff888292cefc75123b9 +guid: 9e3b8ef575513acfa1e2e1d7760f42ec MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/StackTraceElement.cs b/Runtime/Java/Lang/StackTraceElement.cs index 9d7d60e..7db5f4b 100644 --- a/Runtime/Java/Lang/StackTraceElement.cs +++ b/Runtime/Java/Lang/StackTraceElement.cs @@ -37,7 +37,14 @@ public StackTraceElement(global::System.String declaringClass, global::System.St try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(declaringClass) }, new jvalue { l = AndroidJNI.NewString(methodName) }, new jvalue { l = AndroidJNI.NewString(fileName) }, new jvalue { i = lineNumber }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(declaringClass) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(methodName) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(fileName) }, + new jvalue { i = lineNumber } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +81,7 @@ public StackTraceElement(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -88,7 +95,7 @@ public int GetLineNumber() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -102,7 +109,7 @@ public int GetLineNumber() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -116,7 +123,7 @@ public int GetLineNumber() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -130,7 +137,7 @@ public bool IsNativeMethod() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -144,7 +151,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -158,7 +165,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally diff --git a/Runtime/Java/Lang/StackTraceElement.cs.meta b/Runtime/Java/Lang/StackTraceElement.cs.meta index 1a2d91f..d905cbd 100644 --- a/Runtime/Java/Lang/StackTraceElement.cs.meta +++ b/Runtime/Java/Lang/StackTraceElement.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 722f5696bccf3bad82e1f1ed2bb37bb6 +guid: 3f41c2fe19393c93abb0293631f3d54a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/StrictMath.cs b/Runtime/Java/Lang/StrictMath.cs index 88d36ee..2452f19 100644 --- a/Runtime/Java/Lang/StrictMath.cs +++ b/Runtime/Java/Lang/StrictMath.cs @@ -8,13 +8,25 @@ public class StrictMath : global::Google.LibraryWrapper.Java.JavaObject { public static double E { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + } } public static double PI { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + } } private static readonly IntPtr _classObject; @@ -192,7 +204,7 @@ public static double Sin(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId0, args_); } finally @@ -206,7 +218,7 @@ public static double Cos(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId1, args_); } finally @@ -220,7 +232,7 @@ public static double Tan(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId2, args_); } finally @@ -234,7 +246,7 @@ public static double Asin(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId3, args_); } finally @@ -248,7 +260,7 @@ public static double Acos(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId4, args_); } finally @@ -262,7 +274,7 @@ public static double Atan(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId5, args_); } finally @@ -276,7 +288,7 @@ public static double ToRadians(double angdeg) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = angdeg }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = angdeg } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId6, args_); } finally @@ -290,7 +302,7 @@ public static double ToDegrees(double angrad) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = angrad }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = angrad } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId7, args_); } finally @@ -304,7 +316,7 @@ public static double Exp(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId8, args_); } finally @@ -318,7 +330,7 @@ public static double Log(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId9, args_); } finally @@ -332,7 +344,7 @@ public static double Log10(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId10, args_); } finally @@ -346,7 +358,7 @@ public static double Sqrt(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId11, args_); } finally @@ -360,7 +372,7 @@ public static double Cbrt(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId12, args_); } finally @@ -374,7 +386,12 @@ public static double IEEEremainder(double f1, double f2) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = f1 }, new jvalue { d = f2 }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = f1 }, + new jvalue { d = f2 } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId13, args_); } finally @@ -388,7 +405,7 @@ public static double Ceil(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId14, args_); } finally @@ -402,7 +419,7 @@ public static double Floor(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId15, args_); } finally @@ -416,7 +433,7 @@ public static double Rint(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId16, args_); } finally @@ -430,7 +447,12 @@ public static double Atan2(double y, double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = y }, new jvalue { d = x }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = y }, + new jvalue { d = x } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId17, args_); } finally @@ -444,7 +466,12 @@ public static double Pow(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId18, args_); } finally @@ -458,7 +485,7 @@ public static int Round(float a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId19, args_); } finally @@ -472,7 +499,7 @@ public static long Round(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId20, args_); } finally @@ -486,7 +513,7 @@ public static double Random() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId21, args_); } finally @@ -500,7 +527,12 @@ public static int AddExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId22, args_); } finally @@ -514,7 +546,12 @@ public static long AddExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId23, args_); } finally @@ -528,7 +565,12 @@ public static int SubtractExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId24, args_); } finally @@ -542,7 +584,12 @@ public static long SubtractExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId25, args_); } finally @@ -556,7 +603,12 @@ public static int MultiplyExact(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId26, args_); } finally @@ -570,7 +622,12 @@ public static long MultiplyExact(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId27, args_); } finally @@ -584,7 +641,7 @@ public static int ToIntExact(long value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId28, args_); } finally @@ -598,7 +655,12 @@ public static int FloorDiv(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId29, args_); } finally @@ -612,7 +674,12 @@ public static long FloorDiv(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId30, args_); } finally @@ -626,7 +693,12 @@ public static int FloorMod(int x, int y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = x }, new jvalue { i = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = x }, + new jvalue { i = y } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId31, args_); } finally @@ -640,7 +712,12 @@ public static long FloorMod(long x, long y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = x }, new jvalue { j = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = x }, + new jvalue { j = y } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId32, args_); } finally @@ -654,7 +731,7 @@ public static int Abs(int a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = a } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId33, args_); } finally @@ -668,7 +745,7 @@ public static long Abs(long a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = a } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId34, args_); } finally @@ -682,7 +759,7 @@ public static float Abs(float a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = a } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId35, args_); } finally @@ -696,7 +773,7 @@ public static double Abs(double a) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = a } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId36, args_); } finally @@ -710,7 +787,12 @@ public static int Max(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId37, args_); } finally @@ -724,7 +806,12 @@ public static long Max(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId38, args_); } finally @@ -738,7 +825,12 @@ public static float Max(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId39, args_); } finally @@ -752,7 +844,12 @@ public static double Max(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId40, args_); } finally @@ -766,7 +863,12 @@ public static int Min(int a, int b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = a }, new jvalue { i = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = a }, + new jvalue { i = b } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId41, args_); } finally @@ -780,7 +882,12 @@ public static long Min(long a, long b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = a }, new jvalue { j = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = a }, + new jvalue { j = b } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId42, args_); } finally @@ -794,7 +901,12 @@ public static float Min(float a, float b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = a }, new jvalue { f = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = a }, + new jvalue { f = b } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId43, args_); } finally @@ -808,7 +920,12 @@ public static double Min(double a, double b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = a }, new jvalue { d = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = a }, + new jvalue { d = b } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId44, args_); } finally @@ -822,7 +939,7 @@ public static double Ulp(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId45, args_); } finally @@ -836,7 +953,7 @@ public static float Ulp(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId46, args_); } finally @@ -850,7 +967,7 @@ public static double Signum(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId47, args_); } finally @@ -864,7 +981,7 @@ public static float Signum(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId48, args_); } finally @@ -878,7 +995,7 @@ public static double Sinh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId49, args_); } finally @@ -892,7 +1009,7 @@ public static double Cosh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId50, args_); } finally @@ -906,7 +1023,7 @@ public static double Tanh(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId51, args_); } finally @@ -920,7 +1037,12 @@ public static double Hypot(double x, double y) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }, new jvalue { d = y }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = x }, + new jvalue { d = y } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId52, args_); } finally @@ -934,7 +1056,7 @@ public static double Expm1(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId53, args_); } finally @@ -948,7 +1070,7 @@ public static double Log1p(double x) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = x }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = x } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId54, args_); } finally @@ -962,7 +1084,12 @@ public static double CopySign(double magnitude, double sign) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = magnitude }, new jvalue { d = sign }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = magnitude }, + new jvalue { d = sign } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId55, args_); } finally @@ -976,7 +1103,12 @@ public static float CopySign(float magnitude, float sign) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = magnitude }, new jvalue { f = sign }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = magnitude }, + new jvalue { f = sign } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId56, args_); } finally @@ -990,7 +1122,7 @@ public static int GetExponent(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId57, args_); } finally @@ -1004,7 +1136,7 @@ public static int GetExponent(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId58, args_); } finally @@ -1018,7 +1150,12 @@ public static double NextAfter(double start, double direction) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = start }, new jvalue { d = direction }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = start }, + new jvalue { d = direction } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId59, args_); } finally @@ -1032,7 +1169,12 @@ public static float NextAfter(float start, double direction) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = start }, new jvalue { d = direction }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = start }, + new jvalue { d = direction } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId60, args_); } finally @@ -1046,7 +1188,7 @@ public static double NextUp(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId61, args_); } finally @@ -1060,7 +1202,7 @@ public static float NextUp(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId62, args_); } finally @@ -1074,7 +1216,7 @@ public static double NextDown(double d) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId63, args_); } finally @@ -1088,7 +1230,7 @@ public static float NextDown(float f) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId64, args_); } finally @@ -1102,7 +1244,12 @@ public static double Scalb(double d, int scaleFactor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }, new jvalue { i = scaleFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = d }, + new jvalue { i = scaleFactor } + }; return AndroidJNI.CallStaticDoubleMethod(_classObject, _cachedMethodId65, args_); } finally @@ -1116,7 +1263,12 @@ public static float Scalb(float f, int scaleFactor) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }, new jvalue { i = scaleFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { f = f }, + new jvalue { i = scaleFactor } + }; return AndroidJNI.CallStaticFloatMethod(_classObject, _cachedMethodId66, args_); } finally diff --git a/Runtime/Java/Lang/StrictMath.cs.meta b/Runtime/Java/Lang/StrictMath.cs.meta index 354ac5e..e8469f7 100644 --- a/Runtime/Java/Lang/StrictMath.cs.meta +++ b/Runtime/Java/Lang/StrictMath.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7d4203c489d939f1bfe238e20e495ba5 +guid: b84656c8caab3891aa0353bfb191a29d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/String.cs b/Runtime/Java/Lang/String.cs index 7d6a350..1d73adc 100644 --- a/Runtime/Java/Lang/String.cs +++ b/Runtime/Java/Lang/String.cs @@ -8,7 +8,10 @@ public class String : global::Google.LibraryWrapper.Java.JavaObject, global::Jav { public static global::Java.Util.Comparator CASE_INSENSITIVE_ORDER { - get => new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -144,7 +147,7 @@ public String() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -159,7 +162,7 @@ public String(global::System.String original) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(original) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(original) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -174,7 +177,7 @@ public String(global::Java.Lang.StringBuffer buffer) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = buffer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = buffer.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -189,7 +192,7 @@ public String(global::Java.ExternalType.Java.Lang.StringBuilder builder) : base( try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = builder.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = builder.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -226,7 +229,7 @@ public int Length() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -240,7 +243,7 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -254,7 +257,7 @@ public char CharAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -268,7 +271,7 @@ public int CodePointAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -282,7 +285,7 @@ public int CodePointBefore(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -296,7 +299,12 @@ public int CodePointCount(int beginIndex, int endIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = beginIndex }, new jvalue { i = endIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = beginIndex }, + new jvalue { i = endIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -310,7 +318,12 @@ public int OffsetByCodePoints(int index, int codePointOffset) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, new jvalue { i = codePointOffset }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + new jvalue { i = codePointOffset } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -324,7 +337,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject anObject) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anObject.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anObject.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -338,7 +351,7 @@ public bool ContentEquals(global::Java.Lang.StringBuffer sb) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = sb.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = sb.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -352,7 +365,7 @@ public bool ContentEquals(global::Java.Lang.CharSequence cs) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cs.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cs.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -366,7 +379,7 @@ public bool EqualsIgnoreCase(global::System.String anotherString) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(anotherString) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(anotherString) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -380,7 +393,7 @@ public int CompareTo(global::System.String anotherString) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(anotherString) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(anotherString) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -394,7 +407,7 @@ public int CompareToIgnoreCase(global::System.String str) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -408,7 +421,14 @@ public bool RegionMatches(int toffset, global::System.String other, int ooffset, try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = toffset }, new jvalue { l = AndroidJNI.NewString(other) }, new jvalue { i = ooffset }, new jvalue { i = len }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = toffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(other) }, + new jvalue { i = ooffset }, + new jvalue { i = len } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -422,7 +442,15 @@ public bool RegionMatches(bool ignoreCase, int toffset, global::System.String ot try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = ignoreCase }, new jvalue { i = toffset }, new jvalue { l = AndroidJNI.NewString(other) }, new jvalue { i = ooffset }, new jvalue { i = len }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = ignoreCase }, + new jvalue { i = toffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(other) }, + new jvalue { i = ooffset }, + new jvalue { i = len } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -436,7 +464,12 @@ public bool StartsWith(global::System.String prefix, int toffset) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(prefix) }, new jvalue { i = toffset }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(prefix) }, + new jvalue { i = toffset } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -450,7 +483,7 @@ public bool StartsWith(global::System.String prefix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(prefix) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(prefix) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -464,7 +497,7 @@ public bool EndsWith(global::System.String suffix) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(suffix) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(suffix) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -478,7 +511,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -492,7 +525,7 @@ public int IndexOf(int ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = ch } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -506,7 +539,12 @@ public int IndexOf(int ch, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = ch }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = ch }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -520,7 +558,7 @@ public int LastIndexOf(int ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = ch }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = ch } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -534,7 +572,12 @@ public int LastIndexOf(int ch, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = ch }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = ch }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -548,7 +591,7 @@ public int IndexOf(global::System.String str) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -562,7 +605,12 @@ public int IndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -576,7 +624,7 @@ public int LastIndexOf(global::System.String str) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -590,7 +638,12 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -604,7 +657,7 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = beginIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = beginIndex } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -618,7 +671,12 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = beginIndex }, new jvalue { i = endIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = beginIndex }, + new jvalue { i = endIndex } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId28, args_); } finally @@ -632,8 +690,13 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = beginIndex }, new jvalue { i = endIndex }}; - return new global::Java.Lang.CharSequence.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = beginIndex }, + new jvalue { i = endIndex } + }; + return new global::Java.Lang.CharSequenceAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally { @@ -646,7 +709,7 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId30, args_); } finally @@ -660,7 +723,12 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = oldChar }, new jvalue { c = newChar }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = oldChar }, + new jvalue { c = newChar } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId31, args_); } finally @@ -674,7 +742,7 @@ public bool Matches(global::System.String regex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(regex) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(regex) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId32, args_); } finally @@ -688,7 +756,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId33, args_); } finally @@ -702,7 +770,12 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(regex) }, new jvalue { l = AndroidJNI.NewString(replacement) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(regex) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(replacement) } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId34, args_); } finally @@ -716,7 +789,12 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(regex) }, new jvalue { l = AndroidJNI.NewString(replacement) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(regex) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(replacement) } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId35, args_); } finally @@ -730,7 +808,12 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = target.GetRawObject() }, new jvalue { l = replacement.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = target.GetRawObject() }, + new jvalue { l = replacement.GetRawObject() } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId36, args_); } finally @@ -744,7 +827,12 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = delimiter.GetRawObject() }, new jvalue { l = elements.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = delimiter.GetRawObject() }, + new jvalue { l = elements.GetRawObject() } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId37, args_); } finally @@ -758,7 +846,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId38, args_); } finally @@ -772,7 +860,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId39, args_); } finally @@ -786,7 +874,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId40, args_); } finally @@ -800,7 +888,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId41, args_); } finally @@ -814,7 +902,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId42, args_); } finally @@ -828,7 +916,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId43, args_); } finally @@ -842,7 +930,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = b }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = b } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId44, args_); } finally @@ -856,7 +944,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId45, args_); } finally @@ -870,7 +958,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId46, args_); } finally @@ -884,7 +972,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = l }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = l } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId47, args_); } finally @@ -898,7 +986,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId48, args_); } finally @@ -912,7 +1000,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId49, args_); } finally @@ -926,7 +1014,7 @@ public bool Contains(global::Java.Lang.CharSequence s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId50, args_); } finally diff --git a/Runtime/Java/Lang/String.cs.meta b/Runtime/Java/Lang/String.cs.meta index f08990f..89bba80 100644 --- a/Runtime/Java/Lang/String.cs.meta +++ b/Runtime/Java/Lang/String.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8608346c212c3c9784aac8dfed8ce98f +guid: 32639568d0ef37da9572327b0c4ab6e0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/StringBuffer.cs b/Runtime/Java/Lang/StringBuffer.cs index b67d4c3..30d7519 100644 --- a/Runtime/Java/Lang/StringBuffer.cs +++ b/Runtime/Java/Lang/StringBuffer.cs @@ -117,7 +117,7 @@ public StringBuffer() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -132,7 +132,7 @@ public StringBuffer(int capacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = capacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = capacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -147,7 +147,7 @@ public StringBuffer(global::System.String str) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -162,7 +162,7 @@ public StringBuffer(global::Java.Lang.CharSequence seq) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = seq.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = seq.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -199,7 +199,7 @@ public int Length() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -213,7 +213,7 @@ public int Capacity() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -227,7 +227,7 @@ public void EnsureCapacity(int minimumCapacity) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = minimumCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = minimumCapacity } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -241,7 +241,7 @@ public void TrimToSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -255,7 +255,7 @@ public void SetLength(int newLength) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = newLength }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = newLength } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -269,7 +269,7 @@ public char CharAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -283,7 +283,7 @@ public int CodePointAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -297,7 +297,7 @@ public int CodePointBefore(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -311,7 +311,12 @@ public int CodePointCount(int beginIndex, int endIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = beginIndex }, new jvalue { i = endIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = beginIndex }, + new jvalue { i = endIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -325,7 +330,12 @@ public int OffsetByCodePoints(int index, int codePointOffset) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, new jvalue { i = codePointOffset }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + new jvalue { i = codePointOffset } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -339,7 +349,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, new jvalue { c = ch }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + new jvalue { c = ch } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -353,7 +368,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally @@ -367,7 +382,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -381,7 +396,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = sb.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = sb.GetRawObject() } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); } finally @@ -395,7 +410,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally @@ -409,7 +424,13 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }, new jvalue { i = start }, new jvalue { i = end }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = s.GetRawObject() }, + new jvalue { i = start }, + new jvalue { i = end } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); } finally @@ -423,7 +444,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = b }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = b } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -437,7 +458,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = c }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = c } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally @@ -451,7 +472,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = i }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = i } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally @@ -465,7 +486,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = codePoint }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = codePoint } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally @@ -479,7 +500,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = lng }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = lng } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); } finally @@ -493,7 +514,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { f = f }}; + jvalue[] args_ = new jvalue[] { new jvalue { f = f } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally @@ -507,7 +528,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = d }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = d } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } finally @@ -521,7 +542,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }, new jvalue { i = end }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = start }, + new jvalue { i = end } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); } finally @@ -535,7 +561,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); } finally @@ -549,7 +575,13 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }, new jvalue { i = end }, new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = start }, + new jvalue { i = end }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); } finally @@ -563,7 +595,7 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = start } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -577,8 +609,13 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }, new jvalue { i = end }}; - return new global::Java.Lang.CharSequence.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId27, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = start }, + new jvalue { i = end } + }; + return new global::Java.Lang.CharSequenceAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId27, args_)); } finally { @@ -591,7 +628,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = start }, new jvalue { i = end }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = start }, + new jvalue { i = end } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId28, args_); } finally @@ -605,7 +647,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { l = obj.GetRawObject() } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally @@ -619,7 +666,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId30, args_)); } finally @@ -633,7 +685,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = dstOffset }, new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = dstOffset }, + new jvalue { l = s.GetRawObject() } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId31, args_)); } finally @@ -647,7 +704,14 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = dstOffset }, new jvalue { l = s.GetRawObject() }, new jvalue { i = start }, new jvalue { i = end }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = dstOffset }, + new jvalue { l = s.GetRawObject() }, + new jvalue { i = start }, + new jvalue { i = end } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId32, args_)); } finally @@ -661,7 +725,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { z = b }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { z = b } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId33, args_)); } finally @@ -675,7 +744,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { c = c }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { c = c } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId34, args_)); } finally @@ -689,7 +763,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { i = i }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { i = i } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId35, args_)); } finally @@ -703,7 +782,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { j = l }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { j = l } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId36, args_)); } finally @@ -717,7 +801,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { f = f }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { f = f } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId37, args_)); } finally @@ -731,7 +820,12 @@ public void SetCharAt(int index, char ch) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offset }, new jvalue { d = d }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = offset }, + new jvalue { d = d } + }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId38, args_)); } finally @@ -745,7 +839,7 @@ public int IndexOf(global::System.String str) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId39, args_); } finally @@ -759,7 +853,12 @@ public int IndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId40, args_); } finally @@ -773,7 +872,7 @@ public int LastIndexOf(global::System.String str) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId41, args_); } finally @@ -787,7 +886,12 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(str) }, new jvalue { i = fromIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(str) }, + new jvalue { i = fromIndex } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId42, args_); } finally @@ -801,7 +905,7 @@ public int LastIndexOf(global::System.String str, int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.StringBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId43, args_)); } finally diff --git a/Runtime/Java/Lang/StringBuffer.cs.meta b/Runtime/Java/Lang/StringBuffer.cs.meta index ac38eac..9fb43b2 100644 --- a/Runtime/Java/Lang/StringBuffer.cs.meta +++ b/Runtime/Java/Lang/StringBuffer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e50d04ac8e23895a29e716aa65112a7 +guid: 435380f2c2ee3249bcc901c544be9518 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs b/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs index d01dda4..75b05c3 100644 --- a/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs +++ b/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs @@ -27,7 +27,7 @@ public StringIndexOutOfBoundsException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -42,7 +42,7 @@ public StringIndexOutOfBoundsException(global::System.String s) : base(IntPtr.Ze try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -57,7 +57,7 @@ public StringIndexOutOfBoundsException(int index) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs.meta b/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs.meta index f0f4064..d6cd738 100644 --- a/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs.meta +++ b/Runtime/Java/Lang/StringIndexOutOfBoundsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 651acaaecac5339c862ec3cc4236900b +guid: f617b894042535cebe9d0f6d20eeab6d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/SuppressWarnings.cs b/Runtime/Java/Lang/SuppressWarnings.cs deleted file mode 100644 index 6346faa..0000000 --- a/Runtime/Java/Lang/SuppressWarnings.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; - -using UnityEngine; - -namespace Java.Lang -{ - public interface SuppressWarnings : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.ExternalType.Java.Lang.Annotation.Annotation - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.SuppressWarnings - { - private static readonly IntPtr _classObject; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/SuppressWarnings"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation - - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.SuppressWarnings - { - public CallbackHelper() : base("java.lang.SuppressWarnings") {} - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class SuppressWarnings -} // end namespace Java.Lang diff --git a/Runtime/Java/Lang/SuppressWarnings.cs.meta b/Runtime/Java/Lang/SuppressWarnings.cs.meta deleted file mode 100644 index 1ed0e53..0000000 --- a/Runtime/Java/Lang/SuppressWarnings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 60d50eb3938b373caba93e1b6066c715 -MonoImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} diff --git a/Runtime/Java/Lang/System.cs b/Runtime/Java/Lang/System.cs index 13e615a..48503c7 100644 --- a/Runtime/Java/Lang/System.cs +++ b/Runtime/Java/Lang/System.cs @@ -8,7 +8,10 @@ public class System : global::Google.LibraryWrapper.Java.JavaObject { public static global::Java.ExternalType.Java.Io.InputStream In { - get => new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -18,7 +21,10 @@ public class System : global::Google.LibraryWrapper.Java.JavaObject } public static global::Java.ExternalType.Java.Io.PrintStream Out { - get => new global::Java.ExternalType.Java.Io.PrintStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.ExternalType.Java.Io.PrintStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -28,7 +34,10 @@ public class System : global::Google.LibraryWrapper.Java.JavaObject } public static global::Java.ExternalType.Java.Io.PrintStream Err { - get => new global::Java.ExternalType.Java.Io.PrintStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.ExternalType.Java.Io.PrintStream(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -114,7 +123,7 @@ public System() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -151,7 +160,7 @@ public static void SetIn(global::Java.ExternalType.Java.Io.InputStream @in) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @in.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @in.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId0, args_); } finally @@ -165,7 +174,7 @@ public static void SetOut(global::Java.ExternalType.Java.Io.PrintStream @out) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @out.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @out.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId1, args_); } finally @@ -179,7 +188,7 @@ public static void SetErr(global::Java.ExternalType.Java.Io.PrintStream err) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = err.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = err.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId2, args_); } finally @@ -193,7 +202,7 @@ public static void SetErr(global::Java.ExternalType.Java.Io.PrintStream err) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Io.Console(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -207,7 +216,7 @@ public static void SetErr(global::Java.ExternalType.Java.Io.PrintStream err) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Nio.Channels.Channel(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -216,12 +225,12 @@ public static void SetErr(global::Java.ExternalType.Java.Io.PrintStream err) } } - public static void SetSecurityManager(global::Java.Lang.SecurityManager s) + public static void SetSecurityManager(global::Java.ExternalType.Java.Lang.SecurityManager s) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId5, args_); } finally @@ -230,13 +239,13 @@ public static void SetSecurityManager(global::Java.Lang.SecurityManager s) } } - public static global::Java.Lang.SecurityManager GetSecurityManager() + public static global::Java.ExternalType.Java.Lang.SecurityManager GetSecurityManager() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Lang.SecurityManager(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Lang.SecurityManager(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally { @@ -249,7 +258,7 @@ public static long CurrentTimeMillis() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId7, args_); } finally @@ -263,7 +272,7 @@ public static long NanoTime() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId8, args_); } finally @@ -277,7 +286,15 @@ public static void Arraycopy(global::Google.LibraryWrapper.Java.JavaObject src, try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = src.GetRawObject() }, new jvalue { i = srcPos }, new jvalue { l = dest.GetRawObject() }, new jvalue { i = destPos }, new jvalue { i = length }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = src.GetRawObject() }, + new jvalue { i = srcPos }, + new jvalue { l = dest.GetRawObject() }, + new jvalue { i = destPos }, + new jvalue { i = length } + }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId9, args_); } finally @@ -291,7 +308,7 @@ public static int IdentityHashCode(global::Google.LibraryWrapper.Java.JavaObject try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = x.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = x.GetRawObject() } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId10, args_); } finally @@ -305,7 +322,7 @@ public static int IdentityHashCode(global::Google.LibraryWrapper.Java.JavaObject try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Properties(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); } finally @@ -319,7 +336,7 @@ public static int IdentityHashCode(global::Google.LibraryWrapper.Java.JavaObject try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId12, args_); } finally @@ -333,7 +350,7 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = props.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = props.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId13, args_); } finally @@ -347,7 +364,7 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId14, args_); } finally @@ -361,7 +378,12 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }, new jvalue { l = AndroidJNI.NewString(def) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(def) } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId15, args_); } finally @@ -375,7 +397,12 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }, new jvalue { l = AndroidJNI.NewString(value) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(value) } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId16, args_); } finally @@ -389,7 +416,7 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId17, args_); } finally @@ -403,7 +430,7 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId18, args_); } finally @@ -417,8 +444,8 @@ public static void SetProperties(global::Java.Util.Properties props) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId19, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.MapAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId19, args_)); } finally { @@ -431,7 +458,7 @@ public static void Exit(int status) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = status }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = status } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId20, args_); } finally @@ -445,7 +472,7 @@ public static void Gc() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId21, args_); } finally @@ -459,7 +486,7 @@ public static void RunFinalization() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId22, args_); } finally @@ -473,7 +500,7 @@ public static void RunFinalizersOnExit(bool value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = value } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId23, args_); } finally @@ -487,7 +514,7 @@ public static void Load(global::System.String filename) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(filename) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(filename) } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId24, args_); } finally @@ -501,7 +528,7 @@ public static void LoadLibrary(global::System.String libname) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(libname) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(libname) } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId25, args_); } finally @@ -515,7 +542,7 @@ public static void LoadLibrary(global::System.String libname) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(libname) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(libname) } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId26, args_); } finally diff --git a/Runtime/Java/Lang/System.cs.meta b/Runtime/Java/Lang/System.cs.meta index 693861b..66adb3c 100644 --- a/Runtime/Java/Lang/System.cs.meta +++ b/Runtime/Java/Lang/System.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 24a24179c79239fd9658934eda1e9421 +guid: ee1c18a1e4593e84b1f3ed1993824e9c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Thread.cs b/Runtime/Java/Lang/Thread.cs index 49bc434..d0f4f9d 100644 --- a/Runtime/Java/Lang/Thread.cs +++ b/Runtime/Java/Lang/Thread.cs @@ -10,7 +10,10 @@ public class State : global::Java.Lang.Enum { public static global::Java.Lang.Thread.State NEW { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -20,7 +23,10 @@ public class State : global::Java.Lang.Enum } public static global::Java.Lang.Thread.State RUNNABLE { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -30,7 +36,10 @@ public class State : global::Java.Lang.Enum } public static global::Java.Lang.Thread.State BLOCKED { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -40,7 +49,10 @@ public class State : global::Java.Lang.Enum } public static global::Java.Lang.Thread.State WAITING { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -50,7 +62,10 @@ public class State : global::Java.Lang.Enum } public static global::Java.Lang.Thread.State TIMED_WAITING { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -60,7 +75,10 @@ public class State : global::Java.Lang.Enum } public static global::Java.Lang.Thread.State TERMINATED { - get => new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + get + { + return new global::Java.Lang.Thread.State(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -120,7 +138,7 @@ public State(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Lang.Thread.State(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -147,106 +165,139 @@ public static explicit operator State(IntPtr rawObject) public interface UncaughtExceptionHandler : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Thread.UncaughtExceptionHandler + private static readonly IntPtr _classObject; + + static UncaughtExceptionHandler() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Thread$UncaughtExceptionHandler"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/lang/Thread$UncaughtExceptionHandler"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "uncaughtException", "(Ljava/lang/Thread;Ljava/lang/Throwable;)V"); - } + void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e); + } // end class UncaughtExceptionHandler + + public class UncaughtExceptionHandlerAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Lang.Thread.UncaughtExceptionHandler + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static UncaughtExceptionHandlerAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/lang/Thread$UncaughtExceptionHandler"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "uncaughtException", "(Ljava/lang/Thread;Ljava/lang/Throwable;)V"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public UncaughtExceptionHandlerAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e) + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = t.GetRawObject() }, new jvalue { l = e.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of UncaughtExceptionHandlerAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = t.GetRawObject() }, + new jvalue { l = e.GetRawObject() } + }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Thread.UncaughtExceptionHandler + public static explicit operator IntPtr(UncaughtExceptionHandlerAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.lang.Thread$UncaughtExceptionHandler") {} + return wrapper.GetRawObject(); + } - public abstract void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e); + public static explicit operator UncaughtExceptionHandlerAnonymousImplementation(IntPtr rawObject) + { + return new UncaughtExceptionHandlerAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class UncaughtExceptionHandlerAnonymousImplementation + + public abstract class UncaughtExceptionHandlerCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Lang.Thread.UncaughtExceptionHandler + { + public UncaughtExceptionHandlerCallbackHelper() : base("java.lang.Thread$UncaughtExceptionHandler") {} + + public abstract void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "uncaughtException" && args.Length == 2) { - UncaughtException(new global::Java.Lang.Thread(((AndroidJavaObject) args[0]).GetRawObject()), new global::Java.Lang.Throwable(((AndroidJavaObject) args[1]).GetRawObject())); - return null; + UncaughtException(new global::Java.Lang.Thread(((AndroidJavaObject) args[0]).GetRawObject()), new global::Java.Lang.Throwable(((AndroidJavaObject) args[1]).GetRawObject())); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Throwable e); - } // end class UncaughtExceptionHandler + } + } // end class UncaughtExceptionHandlerCallbackHelper public static int MIN_PRIORITY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int NORM_PRIORITY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static int MAX_PRIORITY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + } } private static readonly IntPtr _classObject; @@ -364,7 +415,7 @@ public Thread() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -379,7 +430,7 @@ public Thread(global::Java.Lang.Runnable target) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = target.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = target.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -394,7 +445,12 @@ public Thread(global::Java.Lang.ThreadGroup group, global::Java.Lang.Runnable ta try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = group.GetRawObject() }, new jvalue { l = target.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = group.GetRawObject() }, + new jvalue { l = target.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -409,7 +465,7 @@ public Thread(global::System.String name) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -424,7 +480,12 @@ public Thread(global::Java.Lang.ThreadGroup group, global::System.String name) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = group.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = group.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -439,7 +500,12 @@ public Thread(global::Java.Lang.Runnable target, global::System.String name) : b try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = target.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = target.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -454,7 +520,13 @@ public Thread(global::Java.Lang.ThreadGroup group, global::Java.Lang.Runnable ta try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = group.GetRawObject() }, new jvalue { l = target.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = group.GetRawObject() }, + new jvalue { l = target.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId6, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -469,7 +541,14 @@ public Thread(global::Java.Lang.ThreadGroup group, global::Java.Lang.Runnable ta try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = group.GetRawObject() }, new jvalue { l = target.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }, new jvalue { j = stackSize }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = group.GetRawObject() }, + new jvalue { l = target.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) }, + new jvalue { j = stackSize } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId7, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -506,7 +585,7 @@ public Thread(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Thread(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -520,7 +599,7 @@ public static void Yield() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId1, args_); } finally @@ -534,7 +613,7 @@ public static void Sleep(long millis) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = millis }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = millis } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId2, args_); } finally @@ -548,7 +627,12 @@ public static void Sleep(long millis, int nanos) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = millis }, new jvalue { i = nanos }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = millis }, + new jvalue { i = nanos } + }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId3, args_); } finally @@ -562,7 +646,7 @@ public void Start() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -576,7 +660,7 @@ public void Run() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -590,7 +674,7 @@ public void Stop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -604,7 +688,7 @@ public void Stop(global::Java.Lang.Throwable obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -618,7 +702,7 @@ public void Interrupt() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -632,7 +716,7 @@ public static bool Interrupted() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId9, args_); } finally @@ -646,7 +730,7 @@ public bool IsInterrupted() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -660,7 +744,7 @@ public void Destroy() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -674,7 +758,7 @@ public bool IsAlive() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -688,7 +772,7 @@ public void Suspend() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -702,7 +786,7 @@ public void Resume() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -716,7 +800,7 @@ public void SetPriority(int newPriority) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = newPriority }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = newPriority } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -730,7 +814,7 @@ public int GetPriority() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -744,7 +828,7 @@ public void SetName(global::System.String name) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -758,7 +842,7 @@ public void SetName(global::System.String name) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -772,7 +856,7 @@ public void SetName(global::System.String name) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.ThreadGroup(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally @@ -786,7 +870,7 @@ public static int ActiveCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId20, args_); } finally @@ -800,7 +884,7 @@ public int CountStackFrames() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -814,7 +898,7 @@ public void Join(long millis) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = millis }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = millis } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -828,7 +912,12 @@ public void Join(long millis, int nanos) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = millis }, new jvalue { i = nanos }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = millis }, + new jvalue { i = nanos } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -842,7 +931,7 @@ public void Join() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -856,7 +945,7 @@ public static void DumpStack() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId25, args_); } finally @@ -870,7 +959,7 @@ public void SetDaemon(bool on) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = on }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = on } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -884,7 +973,7 @@ public bool IsDaemon() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -898,7 +987,7 @@ public void CheckAccess() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId28, args_); } finally @@ -912,7 +1001,7 @@ public void CheckAccess() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.ClassLoader(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally @@ -926,7 +1015,7 @@ public void SetContextClassLoader(global::Java.Lang.ClassLoader cl) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cl.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cl.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId30, args_); } finally @@ -940,7 +1029,7 @@ public static bool HoldsLock(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId31, args_); } finally @@ -954,8 +1043,8 @@ public static bool HoldsLock(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId32, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.MapAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId32, args_)); } finally { @@ -968,7 +1057,7 @@ public long GetId() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId33, args_); } finally @@ -982,7 +1071,7 @@ public long GetId() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Thread.State(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId34, args_)); } finally @@ -996,7 +1085,7 @@ public static void SetDefaultUncaughtExceptionHandler(global::Java.Lang.Thread.U try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = eh.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = eh.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId35, args_); } finally @@ -1010,8 +1099,8 @@ public static void SetDefaultUncaughtExceptionHandler(global::Java.Lang.Thread.U try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Lang.Thread.UncaughtExceptionHandler.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId36, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Lang.Thread.UncaughtExceptionHandlerAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId36, args_)); } finally { @@ -1024,8 +1113,8 @@ public static void SetDefaultUncaughtExceptionHandler(global::Java.Lang.Thread.U try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Lang.Thread.UncaughtExceptionHandler.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId37, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Lang.Thread.UncaughtExceptionHandlerAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId37, args_)); } finally { @@ -1038,7 +1127,7 @@ public void SetUncaughtExceptionHandler(global::Java.Lang.Thread.UncaughtExcepti try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = eh.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = eh.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId38, args_); } finally diff --git a/Runtime/Java/Lang/Thread.cs.meta b/Runtime/Java/Lang/Thread.cs.meta index e847247..9aa7ee6 100644 --- a/Runtime/Java/Lang/Thread.cs.meta +++ b/Runtime/Java/Lang/Thread.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bd5cd6afc5f73cc5b77e804b37ead53f +guid: ebe6faaa279332d694b915cbc48c5ef7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ThreadDeath.cs b/Runtime/Java/Lang/ThreadDeath.cs index 0946eb2..1dcee10 100644 --- a/Runtime/Java/Lang/ThreadDeath.cs +++ b/Runtime/Java/Lang/ThreadDeath.cs @@ -23,7 +23,7 @@ public ThreadDeath() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/ThreadDeath.cs.meta b/Runtime/Java/Lang/ThreadDeath.cs.meta index cd6d447..a4f02f6 100644 --- a/Runtime/Java/Lang/ThreadDeath.cs.meta +++ b/Runtime/Java/Lang/ThreadDeath.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d95a1c24e3fa3d789b14e69e859ee62f +guid: d480bfb4f75632a6943680fddb225ec6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ThreadGroup.cs b/Runtime/Java/Lang/ThreadGroup.cs index a5b57db..9263a08 100644 --- a/Runtime/Java/Lang/ThreadGroup.cs +++ b/Runtime/Java/Lang/ThreadGroup.cs @@ -63,7 +63,7 @@ public ThreadGroup(global::System.String name) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -78,7 +78,12 @@ public ThreadGroup(global::Java.Lang.ThreadGroup parent, global::System.String n try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = parent.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = parent.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -115,7 +120,7 @@ public ThreadGroup(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -129,7 +134,7 @@ public ThreadGroup(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.ThreadGroup(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -143,7 +148,7 @@ public int GetMaxPriority() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -157,7 +162,7 @@ public bool IsDaemon() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -171,7 +176,7 @@ public bool IsDestroyed() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -185,7 +190,7 @@ public void SetDaemon(bool daemon) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = daemon }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = daemon } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -199,7 +204,7 @@ public void SetMaxPriority(int pri) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = pri }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = pri } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -213,7 +218,7 @@ public bool ParentOf(global::Java.Lang.ThreadGroup g) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = g.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = g.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -227,7 +232,7 @@ public void CheckAccess() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -241,7 +246,7 @@ public int ActiveCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -255,7 +260,7 @@ public int ActiveGroupCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -269,7 +274,7 @@ public void Stop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -283,7 +288,7 @@ public void Interrupt() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -297,7 +302,7 @@ public void Suspend() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -311,7 +316,7 @@ public void Resume() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -325,7 +330,7 @@ public void Destroy() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -339,7 +344,7 @@ public void List() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -353,7 +358,12 @@ public void UncaughtException(global::Java.Lang.Thread t, global::Java.Lang.Thro try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = t.GetRawObject() }, new jvalue { l = e.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = t.GetRawObject() }, + new jvalue { l = e.GetRawObject() } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -367,7 +377,7 @@ public bool AllowThreadSuspension(bool b) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = b }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = b } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); } finally diff --git a/Runtime/Java/Lang/ThreadGroup.cs.meta b/Runtime/Java/Lang/ThreadGroup.cs.meta index 365a09a..5b0e9d7 100644 --- a/Runtime/Java/Lang/ThreadGroup.cs.meta +++ b/Runtime/Java/Lang/ThreadGroup.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 10b9a39127ba3890999d3aac02416c2d +guid: 5c93767c74923488961de0083bed3570 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/ThreadLocal.cs b/Runtime/Java/Lang/ThreadLocal.cs index 9e5da3b..3ff5752 100644 --- a/Runtime/Java/Lang/ThreadLocal.cs +++ b/Runtime/Java/Lang/ThreadLocal.cs @@ -31,7 +31,7 @@ public ThreadLocal() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -68,7 +68,7 @@ public ThreadLocal(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = supplier.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = supplier.GetRawObject() } }; return new global::Java.Lang.ThreadLocal(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -82,7 +82,7 @@ public T Get() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -104,7 +104,7 @@ public void Set(T value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -118,7 +118,7 @@ public void Remove() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally diff --git a/Runtime/Java/Lang/ThreadLocal.cs.meta b/Runtime/Java/Lang/ThreadLocal.cs.meta index 53148ca..c6d747f 100644 --- a/Runtime/Java/Lang/ThreadLocal.cs.meta +++ b/Runtime/Java/Lang/ThreadLocal.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8abe56c8d387329e8872a3c0de486b92 +guid: f5b72f881c1a3777b335e0752707a93e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Throwable.cs b/Runtime/Java/Lang/Throwable.cs index 38228d3..4d24101 100644 --- a/Runtime/Java/Lang/Throwable.cs +++ b/Runtime/Java/Lang/Throwable.cs @@ -47,7 +47,7 @@ public Throwable() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public Throwable(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -77,7 +77,12 @@ public Throwable(global::System.String message, global::Java.Lang.Throwable caus try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -92,7 +97,7 @@ public Throwable(global::Java.Lang.Throwable cause) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -129,7 +134,7 @@ public Throwable(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -143,7 +148,7 @@ public Throwable(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -157,7 +162,7 @@ public Throwable(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Throwable(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -171,7 +176,7 @@ public Throwable(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; return new global::Java.Lang.Throwable(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -185,7 +190,7 @@ public void PrintStackTrace() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -199,7 +204,7 @@ public void PrintStackTrace(global::Java.ExternalType.Java.Io.PrintStream s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -213,7 +218,7 @@ public void PrintStackTrace(global::Java.ExternalType.Java.Io.PrintWriter s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -227,7 +232,7 @@ public void PrintStackTrace(global::Java.ExternalType.Java.Io.PrintWriter s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Lang.Throwable(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -241,7 +246,7 @@ public void AddSuppressed(global::Java.Lang.Throwable exception) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = exception.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = exception.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally diff --git a/Runtime/Java/Lang/Throwable.cs.meta b/Runtime/Java/Lang/Throwable.cs.meta index a649a07..360a6e5 100644 --- a/Runtime/Java/Lang/Throwable.cs.meta +++ b/Runtime/Java/Lang/Throwable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e489e3db98d43f5fbc5a1fb1efffb599 +guid: ffe022cf43cb3c5b87d3fca2664cc967 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/TypeNotPresentException.cs b/Runtime/Java/Lang/TypeNotPresentException.cs index 7729c9f..0e31029 100644 --- a/Runtime/Java/Lang/TypeNotPresentException.cs +++ b/Runtime/Java/Lang/TypeNotPresentException.cs @@ -25,7 +25,12 @@ public TypeNotPresentException(global::System.String typeName, global::Java.Lang try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(typeName) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(typeName) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +67,7 @@ public TypeNotPresentException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Lang/TypeNotPresentException.cs.meta b/Runtime/Java/Lang/TypeNotPresentException.cs.meta index 269a656..82b7624 100644 --- a/Runtime/Java/Lang/TypeNotPresentException.cs.meta +++ b/Runtime/Java/Lang/TypeNotPresentException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: bed89581529e3f408c5877922ecb592c +guid: f23a4f25442f315d9081f24d4e017eef MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/UnknownError.cs b/Runtime/Java/Lang/UnknownError.cs index 0a8b5fb..83f8a1a 100644 --- a/Runtime/Java/Lang/UnknownError.cs +++ b/Runtime/Java/Lang/UnknownError.cs @@ -25,7 +25,7 @@ public UnknownError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public UnknownError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/UnknownError.cs.meta b/Runtime/Java/Lang/UnknownError.cs.meta index b5d979f..8d64a93 100644 --- a/Runtime/Java/Lang/UnknownError.cs.meta +++ b/Runtime/Java/Lang/UnknownError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5dc9bcb2ccd93fa6850c073d18554ad6 +guid: b7ba018b6e4333929060fe8f34eeeac9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/UnsatisfiedLinkError.cs b/Runtime/Java/Lang/UnsatisfiedLinkError.cs index 9f0e994..cf2f442 100644 --- a/Runtime/Java/Lang/UnsatisfiedLinkError.cs +++ b/Runtime/Java/Lang/UnsatisfiedLinkError.cs @@ -25,7 +25,7 @@ public UnsatisfiedLinkError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public UnsatisfiedLinkError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/UnsatisfiedLinkError.cs.meta b/Runtime/Java/Lang/UnsatisfiedLinkError.cs.meta index de0451b..944805e 100644 --- a/Runtime/Java/Lang/UnsatisfiedLinkError.cs.meta +++ b/Runtime/Java/Lang/UnsatisfiedLinkError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f7be7648c1fe3a778c86fe1b5c67f7c5 +guid: ab617cd6227b3f2db92368eceb3bfa1a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/UnsupportedClassVersionError.cs b/Runtime/Java/Lang/UnsupportedClassVersionError.cs index fe1ff4a..4286f69 100644 --- a/Runtime/Java/Lang/UnsupportedClassVersionError.cs +++ b/Runtime/Java/Lang/UnsupportedClassVersionError.cs @@ -25,7 +25,7 @@ public UnsupportedClassVersionError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public UnsupportedClassVersionError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/UnsupportedClassVersionError.cs.meta b/Runtime/Java/Lang/UnsupportedClassVersionError.cs.meta index 452d32e..58c64bb 100644 --- a/Runtime/Java/Lang/UnsupportedClassVersionError.cs.meta +++ b/Runtime/Java/Lang/UnsupportedClassVersionError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 66eb7ea11e273da793f8602b5a93d1f0 +guid: 070f92cb3c32314c8c1649727a964ece MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/UnsupportedOperationException.cs b/Runtime/Java/Lang/UnsupportedOperationException.cs index cf4d8ef..88a76df 100644 --- a/Runtime/Java/Lang/UnsupportedOperationException.cs +++ b/Runtime/Java/Lang/UnsupportedOperationException.cs @@ -29,7 +29,7 @@ public UnsupportedOperationException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public UnsupportedOperationException(global::System.String message) : base(IntPt try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public UnsupportedOperationException(global::System.String message, global::Java try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public UnsupportedOperationException(global::Java.Lang.Throwable cause) : base(I try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/UnsupportedOperationException.cs.meta b/Runtime/Java/Lang/UnsupportedOperationException.cs.meta index 0552020..c18349b 100644 --- a/Runtime/Java/Lang/UnsupportedOperationException.cs.meta +++ b/Runtime/Java/Lang/UnsupportedOperationException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ca2d7d30499d336992bb98de388052fd +guid: e79e1fab66603aa998bdfd68edf1c122 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/VerifyError.cs b/Runtime/Java/Lang/VerifyError.cs index 7a2f70a..8ef0028 100644 --- a/Runtime/Java/Lang/VerifyError.cs +++ b/Runtime/Java/Lang/VerifyError.cs @@ -25,7 +25,7 @@ public VerifyError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public VerifyError(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/VerifyError.cs.meta b/Runtime/Java/Lang/VerifyError.cs.meta index 55f3803..4965796 100644 --- a/Runtime/Java/Lang/VerifyError.cs.meta +++ b/Runtime/Java/Lang/VerifyError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ba2ddbf3d04130b2809e381f9cab0d36 +guid: 8ab1e45a1dc23c76a898c2ab6516365f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/VirtualMachineError.cs b/Runtime/Java/Lang/VirtualMachineError.cs index caf208b..4a26461 100644 --- a/Runtime/Java/Lang/VirtualMachineError.cs +++ b/Runtime/Java/Lang/VirtualMachineError.cs @@ -29,7 +29,7 @@ public VirtualMachineError() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public VirtualMachineError(global::System.String message) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public VirtualMachineError(global::System.String message, global::Java.Lang.Thro try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public VirtualMachineError(global::Java.Lang.Throwable cause) : base(IntPtr.Zero try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/VirtualMachineError.cs.meta b/Runtime/Java/Lang/VirtualMachineError.cs.meta index ee2a265..a49d8b0 100644 --- a/Runtime/Java/Lang/VirtualMachineError.cs.meta +++ b/Runtime/Java/Lang/VirtualMachineError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7a6308b100d93c1e9b4d50f539d111c9 +guid: 2cfc3bcbc3cc375dbf629e540f607a36 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Lang/Void.cs b/Runtime/Java/Lang/Void.cs index c4ee814..1535597 100644 --- a/Runtime/Java/Lang/Void.cs +++ b/Runtime/Java/Lang/Void.cs @@ -8,7 +8,10 @@ public class Void : global::Google.LibraryWrapper.Java.JavaObject { public static global::Java.Lang.Class TYPE { - get => new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Lang.Class(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -36,7 +39,7 @@ public Void() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Lang/Void.cs.meta b/Runtime/Java/Lang/Void.cs.meta index fc80566..cbdece2 100644 --- a/Runtime/Java/Lang/Void.cs.meta +++ b/Runtime/Java/Lang/Void.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3620fafb72813c38a894cecdcdb290fc +guid: d166270584f93891a250b42bd89cf67c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util.meta b/Runtime/Java/Util.meta index ad34638..c0eacb0 100644 --- a/Runtime/Java/Util.meta +++ b/Runtime/Java/Util.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a82c333b498c3954a75ec206fa64b964 +guid: f559b4748b5c31b99a1874f05e959d73 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Java/Util/AbstractCollection.cs b/Runtime/Java/Util/AbstractCollection.cs index 75a9da7..430704b 100644 --- a/Runtime/Java/Util/AbstractCollection.cs +++ b/Runtime/Java/Util/AbstractCollection.cs @@ -49,7 +49,7 @@ public AbstractCollection() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -86,8 +86,8 @@ public AbstractCollection(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -100,7 +100,7 @@ public int Size() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -114,7 +114,7 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -128,7 +128,7 @@ public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -142,7 +142,7 @@ public bool Add(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -156,7 +156,7 @@ public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -170,7 +170,7 @@ public bool ContainsAll(global::Java.Util.Collection c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -198,7 +198,7 @@ public bool RemoveAll(global::Java.Util.Collection c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + new jvalue { l = c.GetRawObject() } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -202,8 +217,8 @@ public bool AddAll(int index, global::Java.Util.Collection c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.ListIterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ListIteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally { @@ -216,8 +231,8 @@ public bool AddAll(int index, global::Java.Util.Collection c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; - return new global::Java.Util.ListIterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; + return new global::Java.Util.ListIteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally { @@ -230,8 +245,13 @@ public bool AddAll(int index, global::Java.Util.Collection c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally { diff --git a/Runtime/Java/Util/AbstractList.cs.meta b/Runtime/Java/Util/AbstractList.cs.meta index 90866ee..3b9bef8 100644 --- a/Runtime/Java/Util/AbstractList.cs.meta +++ b/Runtime/Java/Util/AbstractList.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 18e031c12db331d0b6900a0f0526b8fd +guid: f3ffc6e5f4413294b1dadc2988157040 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/AbstractMap.cs b/Runtime/Java/Util/AbstractMap.cs index abc6304..b47f160 100644 --- a/Runtime/Java/Util/AbstractMap.cs +++ b/Runtime/Java/Util/AbstractMap.cs @@ -6,7 +6,7 @@ namespace Java.Util { public static class AbstractMap { - public class SimpleEntry : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry, global::Java.ExternalType.Java.Io.Serializable where K2 : class where V2 : class + public class SimpleEntry : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry, global::Java.ExternalType.Java.Io.Serializable where K : class where V : class { private static readonly IntPtr _classObject; private static readonly IntPtr _cachedConstructorId0; @@ -32,12 +32,17 @@ static SimpleEntry() _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); } - public SimpleEntry(K2 key, V2 value) : base(IntPtr.Zero) + public SimpleEntry(K key, V value) : base(IntPtr.Zero) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -47,12 +52,12 @@ public SimpleEntry(K2 key, V2 value) : base(IntPtr.Zero) } } - public SimpleEntry(global::Java.Util.Map.Entry entry) : base(IntPtr.Zero) + public SimpleEntry(global::Java.Util.Map.Entry entry) : base(IntPtr.Zero) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = entry.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = entry.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -84,20 +89,20 @@ public SimpleEntry(IntPtr rawObject) : base(IntPtr.Zero) } } - public K2 GetKey() + public K GetKey() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - return (K2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -106,20 +111,20 @@ public K2 GetKey() } } - public V2 GetValue() + public V GetValue() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(V2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { }; + if (typeof(V) == typeof(global::System.String)) { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -128,20 +133,20 @@ public V2 GetValue() } } - public V2 SetValue(V2 value) + public V SetValue(V value) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; - if (typeof(V2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; + if (typeof(V) == typeof(global::System.String)) { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -155,7 +160,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -169,7 +174,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -178,14 +183,14 @@ public int HashCode() } } - public static explicit operator IntPtr(SimpleEntry wrapper) + public static explicit operator IntPtr(SimpleEntry wrapper) { return wrapper.GetRawObject(); } - public static explicit operator SimpleEntry(IntPtr rawObject) + public static explicit operator SimpleEntry(IntPtr rawObject) { - return new SimpleEntry(rawObject); + return new SimpleEntry(rawObject); } public new static IntPtr GetRawClass() @@ -194,7 +199,7 @@ public static explicit operator SimpleEntry(IntPtr rawObject) } } // end class SimpleEntry - public class SimpleImmutableEntry : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry, global::Java.ExternalType.Java.Io.Serializable where K2 : class where V2 : class + public class SimpleImmutableEntry : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry, global::Java.ExternalType.Java.Io.Serializable where K : class where V : class { private static readonly IntPtr _classObject; private static readonly IntPtr _cachedConstructorId0; @@ -220,12 +225,17 @@ static SimpleImmutableEntry() _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); } - public SimpleImmutableEntry(K2 key, V2 value) : base(IntPtr.Zero) + public SimpleImmutableEntry(K key, V value) : base(IntPtr.Zero) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -235,12 +245,12 @@ public SimpleImmutableEntry(K2 key, V2 value) : base(IntPtr.Zero) } } - public SimpleImmutableEntry(global::Java.Util.Map.Entry entry) : base(IntPtr.Zero) + public SimpleImmutableEntry(global::Java.Util.Map.Entry entry) : base(IntPtr.Zero) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = entry.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = entry.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -272,20 +282,20 @@ public SimpleImmutableEntry(IntPtr rawObject) : base(IntPtr.Zero) } } - public K2 GetKey() + public K GetKey() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - return (K2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -294,20 +304,20 @@ public K2 GetKey() } } - public V2 GetValue() + public V GetValue() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(V2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { }; + if (typeof(V) == typeof(global::System.String)) { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -316,20 +326,20 @@ public V2 GetValue() } } - public V2 SetValue(V2 value) + public V SetValue(V value) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; - if (typeof(V2) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; + if (typeof(V) == typeof(global::System.String)) { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } else { IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -343,7 +353,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -357,7 +367,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -366,14 +376,14 @@ public int HashCode() } } - public static explicit operator IntPtr(SimpleImmutableEntry wrapper) + public static explicit operator IntPtr(SimpleImmutableEntry wrapper) { return wrapper.GetRawObject(); } - public static explicit operator SimpleImmutableEntry(IntPtr rawObject) + public static explicit operator SimpleImmutableEntry(IntPtr rawObject) { - return new SimpleImmutableEntry(rawObject); + return new SimpleImmutableEntry(rawObject); } public new static IntPtr GetRawClass() @@ -430,7 +440,7 @@ public AbstractMap() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -467,7 +477,7 @@ public int Size() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -481,7 +491,7 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -495,7 +505,7 @@ public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -509,7 +519,7 @@ public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -523,7 +533,7 @@ public V Get(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); @@ -545,7 +555,12 @@ public V Put(K key, V value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); @@ -567,7 +582,7 @@ public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); @@ -589,7 +604,7 @@ public void PutAll(global::Java.Util.Map m) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -603,7 +618,7 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -617,8 +632,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally { @@ -631,8 +646,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Collection.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.CollectionAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } finally { @@ -645,8 +660,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set>.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation>(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally { @@ -659,7 +674,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -673,7 +688,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); } finally diff --git a/Runtime/Java/Util/AbstractMap.cs.meta b/Runtime/Java/Util/AbstractMap.cs.meta index 5216364..27e9f2c 100644 --- a/Runtime/Java/Util/AbstractMap.cs.meta +++ b/Runtime/Java/Util/AbstractMap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2ff4809b70e938ff9c4e364355a9a956 +guid: af4f1b2a80a032f6b62ba96dfda98d7e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/AbstractQueue.cs b/Runtime/Java/Util/AbstractQueue.cs index 16bbbcf..4efba3d 100644 --- a/Runtime/Java/Util/AbstractQueue.cs +++ b/Runtime/Java/Util/AbstractQueue.cs @@ -33,7 +33,7 @@ public AbstractQueue() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -70,7 +70,7 @@ public E Remove() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); @@ -92,7 +92,7 @@ public E Element() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -114,7 +114,7 @@ public bool Offer(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -128,7 +128,7 @@ public E Poll() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); @@ -150,7 +150,7 @@ public E Peek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); diff --git a/Runtime/Java/Util/AbstractQueue.cs.meta b/Runtime/Java/Util/AbstractQueue.cs.meta index 9afc101..8dcd487 100644 --- a/Runtime/Java/Util/AbstractQueue.cs.meta +++ b/Runtime/Java/Util/AbstractQueue.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 223398ecf1f93ca39a6b17b3aa8e5fa9 +guid: 77dda37818d83386b8c6e91460f0061d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/AbstractSequentialList.cs b/Runtime/Java/Util/AbstractSequentialList.cs index ab8d897..64433d9 100644 --- a/Runtime/Java/Util/AbstractSequentialList.cs +++ b/Runtime/Java/Util/AbstractSequentialList.cs @@ -23,7 +23,7 @@ public AbstractSequentialList() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/AbstractSequentialList.cs.meta b/Runtime/Java/Util/AbstractSequentialList.cs.meta index e314786..e49b17b 100644 --- a/Runtime/Java/Util/AbstractSequentialList.cs.meta +++ b/Runtime/Java/Util/AbstractSequentialList.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dbfdda2c8b703eb0a161629c974c5a26 +guid: c7f24e9cbc76337498713dc31e77eff7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/AbstractSet.cs b/Runtime/Java/Util/AbstractSet.cs index 665359e..4b6855f 100644 --- a/Runtime/Java/Util/AbstractSet.cs +++ b/Runtime/Java/Util/AbstractSet.cs @@ -23,7 +23,7 @@ public AbstractSet() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/AbstractSet.cs.meta b/Runtime/Java/Util/AbstractSet.cs.meta index a34faf7..f0714a3 100644 --- a/Runtime/Java/Util/AbstractSet.cs.meta +++ b/Runtime/Java/Util/AbstractSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ba9ca70ee46d3be28e497600fdd42d9a +guid: 747621fbf9ac322e95b780a2ff274ef1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ArrayDeque.cs b/Runtime/Java/Util/ArrayDeque.cs index d5d637c..7736b86 100644 --- a/Runtime/Java/Util/ArrayDeque.cs +++ b/Runtime/Java/Util/ArrayDeque.cs @@ -75,7 +75,7 @@ public ArrayDeque() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -90,7 +90,7 @@ public ArrayDeque(int numElements) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = numElements }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = numElements } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -105,7 +105,7 @@ public ArrayDeque(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -142,7 +142,7 @@ public void AddFirst(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -156,7 +156,7 @@ public void AddLast(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -170,7 +170,7 @@ public bool OfferFirst(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -184,7 +184,7 @@ public bool OfferLast(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -198,7 +198,7 @@ public E RemoveFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); @@ -220,7 +220,7 @@ public E RemoveLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); @@ -242,7 +242,7 @@ public E PollFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); @@ -264,7 +264,7 @@ public E PollLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); @@ -286,7 +286,7 @@ public E GetFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); @@ -308,7 +308,7 @@ public E GetLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -330,7 +330,7 @@ public E PeekFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); @@ -352,7 +352,7 @@ public E PeekLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); @@ -374,7 +374,7 @@ public bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -388,7 +388,7 @@ public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -402,7 +402,7 @@ public bool Offer(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -416,7 +416,7 @@ public E Remove() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); @@ -438,7 +438,7 @@ public E Poll() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); @@ -460,7 +460,7 @@ public E Element() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); @@ -482,7 +482,7 @@ public E Peek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); @@ -504,7 +504,7 @@ public void Push(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -518,7 +518,7 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId20, args_); @@ -540,8 +540,8 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally { @@ -554,7 +554,7 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.ArrayDeque(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } finally @@ -568,8 +568,8 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); } finally { diff --git a/Runtime/Java/Util/ArrayDeque.cs.meta b/Runtime/Java/Util/ArrayDeque.cs.meta index bd5c54a..8cea761 100644 --- a/Runtime/Java/Util/ArrayDeque.cs.meta +++ b/Runtime/Java/Util/ArrayDeque.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: da2a8337173b3ab29b7f30f8f7a0bc80 +guid: a7d6e0b8e495336487c4b5d7d4b34588 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ArrayList.cs b/Runtime/Java/Util/ArrayList.cs index a065d16..a822c11 100644 --- a/Runtime/Java/Util/ArrayList.cs +++ b/Runtime/Java/Util/ArrayList.cs @@ -43,7 +43,7 @@ public ArrayList(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -58,7 +58,7 @@ public ArrayList() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -73,7 +73,7 @@ public ArrayList(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -110,7 +110,7 @@ public void TrimToSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -124,7 +124,7 @@ public void EnsureCapacity(int minCapacity) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = minCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = minCapacity } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -138,7 +138,7 @@ public void EnsureCapacity(int minCapacity) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -152,7 +152,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer act try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = action.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = action.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -166,8 +166,8 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer act try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally { @@ -180,7 +180,7 @@ public bool RemoveIf(global::Java.ExternalType.Java.Util.Function.Predicate f try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = filter.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = filter.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -194,7 +194,7 @@ public void ReplaceAll(global::Java.ExternalType.Java.Util.Function.UnaryOperato try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @operator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @operator.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -208,7 +208,7 @@ public void Sort(global::Java.Util.Comparator c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally diff --git a/Runtime/Java/Util/ArrayList.cs.meta b/Runtime/Java/Util/ArrayList.cs.meta index 74febfd..da115f6 100644 --- a/Runtime/Java/Util/ArrayList.cs.meta +++ b/Runtime/Java/Util/ArrayList.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 79ea21332d353cd8899fe659dca9509f +guid: e3980b13571530fb87092d48bebf5e79 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Arrays.cs.meta b/Runtime/Java/Util/Arrays.cs.meta index cd725b5..0ab8edf 100644 --- a/Runtime/Java/Util/Arrays.cs.meta +++ b/Runtime/Java/Util/Arrays.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dcfaa31ceced368ba96fb5697676b570 +guid: 14e7e73e4a3b34c69b8b95fa76b253e9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Base64.cs b/Runtime/Java/Util/Base64.cs index 2d2d537..67267a8 100644 --- a/Runtime/Java/Util/Base64.cs +++ b/Runtime/Java/Util/Base64.cs @@ -29,7 +29,7 @@ public Decoder() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -66,7 +66,7 @@ public Decoder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = buffer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = buffer.GetRawObject() } }; return new global::Java.ExternalType.Java.Nio.ByteBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -80,7 +80,7 @@ public Decoder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @is.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @is.GetRawObject() } }; return new global::Java.ExternalType.Java.Io.InputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -130,7 +130,7 @@ public Encoder() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -167,7 +167,7 @@ public Encoder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = buffer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = buffer.GetRawObject() } }; return new global::Java.ExternalType.Java.Nio.ByteBuffer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -181,7 +181,7 @@ public Encoder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = os.GetRawObject() } }; return new global::Java.ExternalType.Java.Io.OutputStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -195,7 +195,7 @@ public Encoder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Encoder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -269,7 +269,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Encoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -283,7 +283,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Encoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -297,7 +297,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Encoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -311,7 +311,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Decoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -325,7 +325,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Decoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -339,7 +339,7 @@ public Base64(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Base64.Decoder(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally diff --git a/Runtime/Java/Util/Base64.cs.meta b/Runtime/Java/Util/Base64.cs.meta index 6e88197..7ebaf96 100644 --- a/Runtime/Java/Util/Base64.cs.meta +++ b/Runtime/Java/Util/Base64.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a02b502b5b923267b3f817a7d4c2ad71 +guid: acb52e7de11a3f2897c610cfa06a0d64 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/BitSet.cs b/Runtime/Java/Util/BitSet.cs index 1743ab4..655d3ad 100644 --- a/Runtime/Java/Util/BitSet.cs +++ b/Runtime/Java/Util/BitSet.cs @@ -85,7 +85,7 @@ public BitSet() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -100,7 +100,7 @@ public BitSet(int nbits) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = nbits }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = nbits } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -137,7 +137,7 @@ public BitSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = lb.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = lb.GetRawObject() } }; return new global::Java.Util.BitSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -151,7 +151,7 @@ public BitSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = bb.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = bb.GetRawObject() } }; return new global::Java.Util.BitSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -165,7 +165,7 @@ public void Flip(int bitIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bitIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bitIndex } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -179,7 +179,12 @@ public void Flip(int fromIndex, int toIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -193,7 +198,7 @@ public void Set(int bitIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bitIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bitIndex } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -207,7 +212,12 @@ public void Set(int bitIndex, bool value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bitIndex }, new jvalue { z = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = bitIndex }, + new jvalue { z = value } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -221,7 +231,12 @@ public void Set(int fromIndex, int toIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -235,7 +250,13 @@ public void Set(int fromIndex, int toIndex, bool value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }, new jvalue { z = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex }, + new jvalue { z = value } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -249,7 +270,7 @@ public void Clear(int bitIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bitIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bitIndex } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -263,7 +284,12 @@ public void Clear(int fromIndex, int toIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -277,7 +303,7 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -291,7 +317,7 @@ public bool Get(int bitIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bitIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bitIndex } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -305,7 +331,12 @@ public bool Get(int bitIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; return new global::Java.Util.BitSet(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -319,7 +350,7 @@ public int NextSetBit(int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = fromIndex } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -333,7 +364,7 @@ public int NextClearBit(int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = fromIndex } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -347,7 +378,7 @@ public int PreviousSetBit(int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = fromIndex } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -361,7 +392,7 @@ public int PreviousClearBit(int fromIndex) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = fromIndex } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -375,7 +406,7 @@ public int Length() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -389,7 +420,7 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -403,7 +434,7 @@ public bool Intersects(global::Java.Util.BitSet set) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = set.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = set.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -417,7 +448,7 @@ public int Cardinality() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -431,7 +462,7 @@ public void And(global::Java.Util.BitSet set) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = set.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = set.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -445,7 +476,7 @@ public void Or(global::Java.Util.BitSet set) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = set.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = set.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -459,7 +490,7 @@ public void Xor(global::Java.Util.BitSet set) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = set.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = set.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -473,7 +504,7 @@ public void AndNot(global::Java.Util.BitSet set) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = set.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = set.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -487,7 +518,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -501,7 +532,7 @@ public int Size() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -515,7 +546,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -529,7 +560,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId28, args_)); } finally @@ -543,7 +574,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally diff --git a/Runtime/Java/Util/BitSet.cs.meta b/Runtime/Java/Util/BitSet.cs.meta index 873d67f..617f239 100644 --- a/Runtime/Java/Util/BitSet.cs.meta +++ b/Runtime/Java/Util/BitSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d05fe43f0d23337ead5b5fe8f4b1f826 +guid: ad0616986eaa3a2ab89e1c1af296fc8c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Calendar.cs b/Runtime/Java/Util/Calendar.cs index 1c0d3b6..0cd41c8 100644 --- a/Runtime/Java/Util/Calendar.cs +++ b/Runtime/Java/Util/Calendar.cs @@ -51,7 +51,7 @@ public Builder() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -88,7 +88,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = instant }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = instant } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -102,7 +102,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = instant.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = instant.GetRawObject() } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -116,7 +116,12 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = value } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -130,7 +135,13 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = dayOfMonth }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = dayOfMonth } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -144,7 +155,13 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = hourOfDay }, new jvalue { i = minute }, new jvalue { i = second }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = hourOfDay }, + new jvalue { i = minute }, + new jvalue { i = second } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally @@ -158,7 +175,14 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = hourOfDay }, new jvalue { i = minute }, new jvalue { i = second }, new jvalue { i = millis }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = hourOfDay }, + new jvalue { i = minute }, + new jvalue { i = second }, + new jvalue { i = millis } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -172,7 +196,13 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = weekYear }, new jvalue { i = weekOfYear }, new jvalue { i = dayOfWeek }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = weekYear }, + new jvalue { i = weekOfYear }, + new jvalue { i = dayOfWeek } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally @@ -186,7 +216,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zone.GetRawObject() } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -200,7 +230,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = lenient }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = lenient } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally @@ -214,7 +244,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(type) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(type) } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally @@ -228,7 +258,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } finally @@ -242,7 +272,12 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = firstDayOfWeek }, new jvalue { i = minimalDaysInFirstWeek }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = firstDayOfWeek }, + new jvalue { i = minimalDaysInFirstWeek } + }; return new global::Java.Util.Calendar.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally @@ -256,7 +291,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Calendar(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -283,253 +318,553 @@ public static explicit operator Builder(IntPtr rawObject) public static int ERA { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int YEAR { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static int MONTH { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + } } public static int WEEK_OF_YEAR { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId3, value); + } } public static int WEEK_OF_MONTH { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId4, value); + } } public static int DATE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId5); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId5, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId5); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId5, value); + } } public static int DAY_OF_MONTH { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId6); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId6, value); + } } public static int DAY_OF_YEAR { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId7); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId7, value); + } } public static int DAY_OF_WEEK { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId8); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId8, value); + } } public static int DAY_OF_WEEK_IN_MONTH { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId9); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId9, value); + } } public static int AM_PM { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId10); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId10, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId10); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId10, value); + } } public static int HOUR { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId11); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId11, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId11); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId11, value); + } } public static int HOUR_OF_DAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId12); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId12, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId12); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId12, value); + } } public static int MINUTE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId13); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId13, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId13); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId13, value); + } } public static int SECOND { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId14); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId14, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId14); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId14, value); + } } public static int MILLISECOND { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId15); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId15, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId15); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId15, value); + } } public static int ZONE_OFFSET { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId16); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId16, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId16); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId16, value); + } } public static int DST_OFFSET { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId17); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId17, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId17); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId17, value); + } } public static int FIELD_COUNT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId18); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId18, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId18); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId18, value); + } } public static int SUNDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId19); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId19, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId19); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId19, value); + } } public static int MONDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId20); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId20, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId20); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId20, value); + } } public static int TUESDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId21); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId21, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId21); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId21, value); + } } public static int WEDNESDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId22); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId22, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId22); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId22, value); + } } public static int THURSDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId23); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId23, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId23); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId23, value); + } } public static int FRIDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId24); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId24, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId24); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId24, value); + } } public static int SATURDAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId25); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId25, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId25); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId25, value); + } } public static int JANUARY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId26); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId26, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId26); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId26, value); + } } public static int FEBRUARY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId27); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId27, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId27); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId27, value); + } } public static int MARCH { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId28); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId28, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId28); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId28, value); + } } public static int APRIL { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId29); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId29, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId29); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId29, value); + } } public static int MAY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId30); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId30, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId30); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId30, value); + } } public static int JUNE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId31); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId31, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId31); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId31, value); + } } public static int JULY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId32); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId32, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId32); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId32, value); + } } public static int AUGUST { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId33); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId33, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId33); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId33, value); + } } public static int SEPTEMBER { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId34); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId34, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId34); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId34, value); + } } public static int OCTOBER { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId35); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId35, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId35); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId35, value); + } } public static int NOVEMBER { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId36); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId36, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId36); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId36, value); + } } public static int DECEMBER { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId37); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId37, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId37); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId37, value); + } } public static int UNDECIMBER { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId38); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId38, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId38); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId38, value); + } } public static int AM { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId39); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId39, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId39); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId39, value); + } } public static int PM { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId40); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId40, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId40); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId40, value); + } } public static int ALL_STYLES { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId41); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId41, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId41); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId41, value); + } } public static int SHORT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId42); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId42, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId42); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId42, value); + } } public static int LONG { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId43); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId43, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId43); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId43, value); + } } public static int NARROW_FORMAT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId44); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId44, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId44); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId44, value); + } } public static int NARROW_STANDALONE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId45); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId45, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId45); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId45, value); + } } public static int SHORT_FORMAT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId46); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId46, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId46); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId46, value); + } } public static int LONG_FORMAT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId47); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId47, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId47); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId47, value); + } } public static int SHORT_STANDALONE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId48); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId48, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId48); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId48, value); + } } public static int LONG_STANDALONE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId49); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId49, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId49); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId49, value); + } } private static readonly IntPtr _classObject; @@ -745,7 +1080,7 @@ public Calendar() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -782,7 +1117,7 @@ public Calendar(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Calendar(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -796,7 +1131,7 @@ public Calendar(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zone.GetRawObject() } }; return new global::Java.Util.Calendar(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -810,7 +1145,7 @@ public Calendar(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = aLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = aLocale.GetRawObject() } }; return new global::Java.Util.Calendar(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -824,7 +1159,12 @@ public Calendar(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }, new jvalue { l = aLocale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = zone.GetRawObject() }, + new jvalue { l = aLocale.GetRawObject() } + }; return new global::Java.Util.Calendar(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -838,7 +1178,7 @@ public Calendar(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Date(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally @@ -852,7 +1192,7 @@ public void SetTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = date.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = date.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -866,7 +1206,7 @@ public long GetTimeInMillis() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -880,7 +1220,7 @@ public void SetTimeInMillis(long millis) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = millis }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = millis } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -894,7 +1234,7 @@ public int Get(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -908,7 +1248,12 @@ public void Set(int field, int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = value }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = value } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -922,7 +1267,13 @@ public void Set(int year, int month, int date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -936,7 +1287,15 @@ public void Set(int year, int month, int date, int hourOfDay, int minute) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }, new jvalue { i = hourOfDay }, new jvalue { i = minute }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date }, + new jvalue { i = hourOfDay }, + new jvalue { i = minute } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -950,7 +1309,16 @@ public void Set(int year, int month, int date, int hourOfDay, int minute, int se try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }, new jvalue { i = hourOfDay }, new jvalue { i = minute }, new jvalue { i = second }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date }, + new jvalue { i = hourOfDay }, + new jvalue { i = minute }, + new jvalue { i = second } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -964,7 +1332,7 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -978,7 +1346,7 @@ public void Clear(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -992,7 +1360,7 @@ public bool IsSet(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -1006,7 +1374,13 @@ public bool IsSet(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = style }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = style }, + new jvalue { l = locale.GetRawObject() } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -1020,8 +1394,14 @@ public bool IsSet(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = style }, new jvalue { l = locale.GetRawObject() }}; - return new global::Java.Util.Map.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = style }, + new jvalue { l = locale.GetRawObject() } + }; + return new global::Java.Util.MapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally { @@ -1034,8 +1414,8 @@ public bool IsSet(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId18, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId18, args_)); } finally { @@ -1048,7 +1428,7 @@ public bool IsSet(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -1062,7 +1442,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -1076,7 +1456,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -1090,7 +1470,7 @@ public bool Before(global::Google.LibraryWrapper.Java.JavaObject when) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = when.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = when.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -1104,7 +1484,7 @@ public bool After(global::Google.LibraryWrapper.Java.JavaObject when) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = when.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = when.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -1118,7 +1498,7 @@ public int CompareTo(global::Java.Util.Calendar anotherCalendar) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherCalendar.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherCalendar.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -1132,7 +1512,12 @@ public void Add(int field, int amount) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = amount }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = amount } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -1146,7 +1531,12 @@ public void Roll(int field, bool up) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { z = up }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { z = up } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -1160,7 +1550,12 @@ public void Roll(int field, int amount) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }, new jvalue { i = amount }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = field }, + new jvalue { i = amount } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -1174,7 +1569,7 @@ public void SetTimeZone(global::Java.Util.TimeZone value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId28, args_); } finally @@ -1188,7 +1583,7 @@ public void SetTimeZone(global::Java.Util.TimeZone value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.TimeZone(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally @@ -1202,7 +1597,7 @@ public void SetLenient(bool lenient) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = lenient }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = lenient } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId30, args_); } finally @@ -1216,7 +1611,7 @@ public bool IsLenient() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId31, args_); } finally @@ -1230,7 +1625,7 @@ public void SetFirstDayOfWeek(int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId32, args_); } finally @@ -1244,7 +1639,7 @@ public int GetFirstDayOfWeek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId33, args_); } finally @@ -1258,7 +1653,7 @@ public void SetMinimalDaysInFirstWeek(int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId34, args_); } finally @@ -1272,7 +1667,7 @@ public int GetMinimalDaysInFirstWeek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId35, args_); } finally @@ -1286,7 +1681,7 @@ public bool IsWeekDateSupported() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId36, args_); } finally @@ -1300,7 +1695,7 @@ public int GetWeekYear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId37, args_); } finally @@ -1314,7 +1709,13 @@ public void SetWeekDate(int weekYear, int weekOfYear, int dayOfWeek) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = weekYear }, new jvalue { i = weekOfYear }, new jvalue { i = dayOfWeek }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = weekYear }, + new jvalue { i = weekOfYear }, + new jvalue { i = dayOfWeek } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId38, args_); } finally @@ -1328,7 +1729,7 @@ public int GetWeeksInWeekYear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId39, args_); } finally @@ -1342,7 +1743,7 @@ public int GetMinimum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId40, args_); } finally @@ -1356,7 +1757,7 @@ public int GetMaximum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId41, args_); } finally @@ -1370,7 +1771,7 @@ public int GetGreatestMinimum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId42, args_); } finally @@ -1384,7 +1785,7 @@ public int GetLeastMaximum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId43, args_); } finally @@ -1398,7 +1799,7 @@ public int GetActualMinimum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId44, args_); } finally @@ -1412,7 +1813,7 @@ public int GetActualMaximum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = field }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = field } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId45, args_); } finally @@ -1426,7 +1827,7 @@ public int GetActualMaximum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId46, args_)); } finally @@ -1440,7 +1841,7 @@ public int GetActualMaximum(int field) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Time.Instant(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId47, args_)); } finally diff --git a/Runtime/Java/Util/Calendar.cs.meta b/Runtime/Java/Util/Calendar.cs.meta index 1ffd4d2..8523798 100644 --- a/Runtime/Java/Util/Calendar.cs.meta +++ b/Runtime/Java/Util/Calendar.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 41ed090b3a8d369696a2dce65e3c0fe8 +guid: 0911654ea1c239e0bc07607b061df7b9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Collection.cs b/Runtime/Java/Util/Collection.cs index 13f1766..af75aeb 100644 --- a/Runtime/Java/Util/Collection.cs +++ b/Runtime/Java/Util/Collection.cs @@ -6,439 +6,473 @@ namespace Java.Util { public interface Collection : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Lang.Iterable where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Collection + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + + static Collection() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Collection"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "removeIf", "(Ljava/util/function/Predicate;)Z"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "stream", "()Ljava/util/stream/Stream;"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "parallelStream", "()Ljava/util/stream/Stream;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Collection"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "removeIf", "(Ljava/util/function/Predicate;)Z"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "stream", "()Ljava/util/stream/Stream;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "parallelStream", "()Ljava/util/stream/Stream;"); + } + + int Size(); + + bool IsEmpty(); + + bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + + bool Add(E e); + + bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + + bool ContainsAll(global::Java.Util.Collection c); + + bool AddAll(global::Java.Util.Collection c); + + bool RemoveAll(global::Java.Util.Collection c); + + bool RetainAll(global::Java.Util.Collection c); - public int Size() + void Clear(); + + bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + int HashCode(); + + bool RemoveIf(global::Java.ExternalType.Java.Util.Function.Predicate filter) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = filter.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(GetRawObject(), _cachedMethodId0, args_); } - - public bool IsEmpty() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + global::Java.ExternalType.Java.Util.Spliterator Spliterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId1, args_)); } - - public global::Java.Util.Iterator Iterator() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Add(E e) + global::Java.ExternalType.Java.Util.Stream.Stream Stream() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Stream.Stream(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId2, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + global::Java.ExternalType.Java.Util.Stream.Stream ParallelStream() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Stream.Stream(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId3, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + } // end class Collection - public bool ContainsAll(global::Java.Util.Collection c) + public class CollectionAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Collection where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + + static CollectionAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Collection"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public CollectionAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); - } - finally + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of CollectionAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(global::Java.Util.Collection c) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RemoveIf(global::Java.ExternalType.Java.Util.Function.Predicate filter) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = filter.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RetainAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Clear() + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int HashCode() + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.ExternalType.Java.Util.Spliterator Spliterator() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.ExternalType.Java.Util.Stream.Stream Stream() + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Stream.Stream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.ExternalType.Java.Util.Stream.Stream ParallelStream() + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Stream.Stream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId12, args_); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Collection + public static explicit operator IntPtr(CollectionAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.Collection") {} + return wrapper.GetRawObject(); + } - public abstract int Size(); + public static explicit operator CollectionAnonymousImplementation(IntPtr rawObject) + { + return new CollectionAnonymousImplementation(rawObject); + } - public abstract bool IsEmpty(); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class CollectionAnonymousImplementation - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract class CollectionCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Collection where E : class + { + public CollectionCallbackHelper() : base("java.util.Collection") {} - public abstract global::Java.Util.Iterator Iterator(); + public abstract int Size(); - public abstract bool Add(E e); + public abstract bool IsEmpty(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract bool Add(E e); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract bool RemoveIf(global::Java.ExternalType.Java.Util.Function.Predicate filter); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract bool RetainAll(global::Java.Util.Collection c); + + public abstract void Clear(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public abstract global::Java.ExternalType.Java.Util.Spliterator Spliterator(); + + public abstract global::Java.ExternalType.Java.Util.Stream.Stream Stream(); + + public abstract global::Java.ExternalType.Java.Util.Stream.Stream ParallelStream(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + } + else if (methodName == "removeIf" && args.Length == 1) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveIf(new global::Java.ExternalType.Java.Util.Function.Predicate(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } - return base.Invoke(methodName, args); + else if (methodName == "spliterator" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Spliterator()); } - } // end class CallbackHelper - - int Size(); - - bool IsEmpty(); - - bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - - bool Add(E e); - - bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - - bool ContainsAll(global::Java.Util.Collection c); - - bool AddAll(global::Java.Util.Collection c); - - bool RemoveAll(global::Java.Util.Collection c); - - bool RetainAll(global::Java.Util.Collection c); - - void Clear(); - - bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - - int HashCode(); - } // end class Collection + else if (methodName == "stream" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Stream()); + } + else if (methodName == "parallelStream" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ParallelStream()); + } + return base.Invoke(methodName, args); + } + } // end class CollectionCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Collection.cs.meta b/Runtime/Java/Util/Collection.cs.meta index 7c03157..a2ad0c1 100644 --- a/Runtime/Java/Util/Collection.cs.meta +++ b/Runtime/Java/Util/Collection.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f5bd7222a19b3734a944459ec60eea70 +guid: b10a43c9c3a43cc4a76bad4e697e08f7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Comparator.cs b/Runtime/Java/Util/Comparator.cs index a02724e..2e02f13 100644 --- a/Runtime/Java/Util/Comparator.cs +++ b/Runtime/Java/Util/Comparator.cs @@ -6,368 +6,427 @@ namespace Java.Util { public interface Comparator : global::Google.LibraryWrapper.Java.JavaInterface where T : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Comparator + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + + static Comparator() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Comparator"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "compare", "(Ljava/lang/Object;Ljava/lang/Object;)I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "reversed", "()Ljava/util/Comparator;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/function/Function;Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/function/Function;)Ljava/util/Comparator;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "thenComparingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "thenComparingLong", "(Ljava/util/function/ToLongFunction;)Ljava/util/Comparator;"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "thenComparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;"); - _cachedMethodId9 = AndroidJNI.GetStaticMethodID(_classObject, "reverseOrder", "()Ljava/util/Comparator;"); - _cachedMethodId10 = AndroidJNI.GetStaticMethodID(_classObject, "naturalOrder", "()Ljava/util/Comparator;"); - _cachedMethodId11 = AndroidJNI.GetStaticMethodID(_classObject, "nullsFirst", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId12 = AndroidJNI.GetStaticMethodID(_classObject, "nullsLast", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId13 = AndroidJNI.GetStaticMethodID(_classObject, "comparing", "(Ljava/util/function/Function;Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId14 = AndroidJNI.GetStaticMethodID(_classObject, "comparing", "(Ljava/util/function/Function;)Ljava/util/Comparator;"); - _cachedMethodId15 = AndroidJNI.GetStaticMethodID(_classObject, "comparingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;"); - _cachedMethodId16 = AndroidJNI.GetStaticMethodID(_classObject, "comparingLong", "(Ljava/util/function/ToLongFunction;)Ljava/util/Comparator;"); - _cachedMethodId17 = AndroidJNI.GetStaticMethodID(_classObject, "comparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Comparator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "reversed", "()Ljava/util/Comparator;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/function/Function;Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "thenComparing", "(Ljava/util/function/Function;)Ljava/util/Comparator;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "thenComparingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "thenComparingLong", "(Ljava/util/function/ToLongFunction;)Ljava/util/Comparator;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "thenComparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;"); + _cachedMethodId7 = AndroidJNI.GetStaticMethodID(_classObject, "reverseOrder", "()Ljava/util/Comparator;"); + _cachedMethodId8 = AndroidJNI.GetStaticMethodID(_classObject, "naturalOrder", "()Ljava/util/Comparator;"); + _cachedMethodId9 = AndroidJNI.GetStaticMethodID(_classObject, "nullsFirst", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId10 = AndroidJNI.GetStaticMethodID(_classObject, "nullsLast", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId11 = AndroidJNI.GetStaticMethodID(_classObject, "comparing", "(Ljava/util/function/Function;Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId12 = AndroidJNI.GetStaticMethodID(_classObject, "comparing", "(Ljava/util/function/Function;)Ljava/util/Comparator;"); + _cachedMethodId13 = AndroidJNI.GetStaticMethodID(_classObject, "comparingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;"); + _cachedMethodId14 = AndroidJNI.GetStaticMethodID(_classObject, "comparingLong", "(Ljava/util/function/ToLongFunction;)Ljava/util/Comparator;"); + _cachedMethodId15 = AndroidJNI.GetStaticMethodID(_classObject, "comparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;"); + } + + int Compare(T o1, T o2); + + bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj); - public int Compare(T o1, T o2) + global::Java.Util.Comparator Reversed() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(o1), ToJvalue(o2)}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId0, args_)); } - - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Comparator Reversed() + global::Java.Util.Comparator ThenComparing(global::Java.Util.Comparator other) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId1, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Comparator ThenComparing(global::Java.Util.Comparator other) + global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor, global::Java.Util.Comparator keyComparator) where U : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = keyExtractor.GetRawObject() }, + new jvalue { l = keyComparator.GetRawObject() } + }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId2, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor, global::Java.Util.Comparator keyComparator) where U : class + global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor) where U : class, global::Java.ExternalType.Java.Lang.Comparable + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }, new jvalue { l = keyComparator.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId3, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor) where U : class, global::Java.ExternalType.Java.Lang.Comparable + global::Java.Util.Comparator ThenComparingInt(global::Java.ExternalType.Java.Util.Function.ToIntFunction keyExtractor) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId4, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Comparator ThenComparingInt(global::Java.ExternalType.Java.Util.Function.ToIntFunction keyExtractor) + global::Java.Util.Comparator ThenComparingLong(global::Java.ExternalType.Java.Util.Function.ToLongFunction keyExtractor) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId5, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Comparator ThenComparingLong(global::Java.ExternalType.Java.Util.Function.ToLongFunction keyExtractor) + global::Java.Util.Comparator ThenComparingDouble(global::Java.ExternalType.Java.Util.Function.ToDoubleFunction keyExtractor) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId6, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Comparator ThenComparingDouble(global::Java.ExternalType.Java.Util.Function.ToDoubleFunction keyExtractor) + static global::Java.Util.Comparator ReverseOrder() where T2 : class, global::Java.ExternalType.Java.Lang.Comparable + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static global::Java.Util.Comparator ReverseOrder() where T2 : class, global::Java.ExternalType.Java.Lang.Comparable + static global::Java.Util.Comparator NaturalOrder() where T2 : class, global::Java.ExternalType.Java.Lang.Comparable + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static global::Java.Util.Comparator NaturalOrder() where T2 : class, global::Java.ExternalType.Java.Lang.Comparable + static global::Java.Util.Comparator NullsFirst(global::Java.Util.Comparator comparator) where T2 : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = comparator.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static global::Java.Util.Comparator NullsFirst(global::Java.Util.Comparator comparator) where T2 : class + static global::Java.Util.Comparator NullsLast(global::Java.Util.Comparator comparator) where T2 : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = comparator.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = comparator.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static global::Java.Util.Comparator NullsLast(global::Java.Util.Comparator comparator) where T2 : class + static global::Java.Util.Comparator Comparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor, global::Java.Util.Comparator keyComparator) where T2 : class where U : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = comparator.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = keyExtractor.GetRawObject() }, + new jvalue { l = keyComparator.GetRawObject() } + }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static global::Java.Util.Comparator Comparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor, global::Java.Util.Comparator keyComparator) where T2 : class where U : class + static global::Java.Util.Comparator Comparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor) where T2 : class where U : class, global::Java.ExternalType.Java.Lang.Comparable + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }, new jvalue { l = keyComparator.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static global::Java.Util.Comparator Comparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor) where T2 : class where U : class, global::Java.ExternalType.Java.Lang.Comparable + static global::Java.Util.Comparator ComparingInt(global::Java.ExternalType.Java.Util.Function.ToIntFunction keyExtractor) where T2 : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId14, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static global::Java.Util.Comparator ComparingInt(global::Java.ExternalType.Java.Util.Function.ToIntFunction keyExtractor) where T2 : class + static global::Java.Util.Comparator ComparingLong(global::Java.ExternalType.Java.Util.Function.ToLongFunction keyExtractor) where T2 : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId15, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId14, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static global::Java.Util.Comparator ComparingLong(global::Java.ExternalType.Java.Util.Function.ToLongFunction keyExtractor) where T2 : class + static global::Java.Util.Comparator ComparingDouble(global::Java.ExternalType.Java.Util.Function.ToDoubleFunction keyExtractor) where T2 : class + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId16, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = keyExtractor.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId15, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class Comparator + + public class ComparatorAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Comparator where T : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + + static ComparatorAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Comparator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "compare", "(Ljava/lang/Object;Ljava/lang/Object;)I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + } - public static global::Java.Util.Comparator ComparingDouble(global::Java.ExternalType.Java.Util.Function.ToDoubleFunction keyExtractor) where T2 : class + public ComparatorAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyExtractor.GetRawObject() }}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId17, args_)); - } - finally + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ComparatorAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public int Compare(T o1, T o2) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(o1), + ToJvalue(o2) + }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } + + public static explicit operator IntPtr(ComparatorAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Comparator + public static explicit operator ComparatorAnonymousImplementation(IntPtr rawObject) { - public CallbackHelper() : base("java.util.Comparator") {} + return new ComparatorAnonymousImplementation(rawObject); + } - public abstract int Compare(T o1, T o2); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ComparatorAnonymousImplementation - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj); + public abstract class ComparatorCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Comparator where T : class + { + public ComparatorCallbackHelper() : base("java.util.Comparator") {} - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract int Compare(T o1, T o2); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj); + + public abstract global::Java.Util.Comparator Reversed(); + + public abstract global::Java.Util.Comparator ThenComparing(global::Java.Util.Comparator other); + + public abstract global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor, global::Java.Util.Comparator keyComparator) where U : class; + + public abstract global::Java.Util.Comparator ThenComparing(global::Java.ExternalType.Java.Util.Function.Function keyExtractor) where U : class, global::Java.ExternalType.Java.Lang.Comparable; + + public abstract global::Java.Util.Comparator ThenComparingInt(global::Java.ExternalType.Java.Util.Function.ToIntFunction keyExtractor); + + public abstract global::Java.Util.Comparator ThenComparingLong(global::Java.ExternalType.Java.Util.Function.ToLongFunction keyExtractor); + + public abstract global::Java.Util.Comparator ThenComparingDouble(global::Java.ExternalType.Java.Util.Function.ToDoubleFunction keyExtractor); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "compare" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Compare(args[0] is global::System.String ? (T) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (T) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Compare(args[0] is global::System.String ? (T) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (T) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } - return base.Invoke(methodName, args); + else if (methodName == "reversed" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Reversed()); } - } // end class CallbackHelper - - int Compare(T o1, T o2); - - bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj); - } // end class Comparator + else if (methodName == "thenComparing" && args.Length == 1) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ThenComparing(new global::Java.Util.ComparatorAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + } + else if (methodName == "thenComparingInt" && args.Length == 1) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ThenComparingInt(new global::Java.ExternalType.Java.Util.Function.ToIntFunction(((AndroidJavaObject) args[0]).GetRawObject()))); + } + else if (methodName == "thenComparingLong" && args.Length == 1) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ThenComparingLong(new global::Java.ExternalType.Java.Util.Function.ToLongFunction(((AndroidJavaObject) args[0]).GetRawObject()))); + } + else if (methodName == "thenComparingDouble" && args.Length == 1) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ThenComparingDouble(new global::Java.ExternalType.Java.Util.Function.ToDoubleFunction(((AndroidJavaObject) args[0]).GetRawObject()))); + } + return base.Invoke(methodName, args); + } + } // end class ComparatorCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Comparator.cs.meta b/Runtime/Java/Util/Comparator.cs.meta index b244613..c746af2 100644 --- a/Runtime/Java/Util/Comparator.cs.meta +++ b/Runtime/Java/Util/Comparator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f30ab6f940243c53a0421a6e1e686a66 +guid: f007d4a81a373c95b6521ff4b43d7b0c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ConcurrentModificationException.cs b/Runtime/Java/Util/ConcurrentModificationException.cs index d59ade5..3d6da52 100644 --- a/Runtime/Java/Util/ConcurrentModificationException.cs +++ b/Runtime/Java/Util/ConcurrentModificationException.cs @@ -29,7 +29,7 @@ public ConcurrentModificationException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public ConcurrentModificationException(global::System.String message) : base(Int try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,7 @@ public ConcurrentModificationException(global::Java.Lang.Throwable cause) : base try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +74,12 @@ public ConcurrentModificationException(global::System.String message, global::Ja try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/ConcurrentModificationException.cs.meta b/Runtime/Java/Util/ConcurrentModificationException.cs.meta index fe82ea4..5787d75 100644 --- a/Runtime/Java/Util/ConcurrentModificationException.cs.meta +++ b/Runtime/Java/Util/ConcurrentModificationException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2383ca451bbf33d1a8a82f9eb67ea3bd +guid: c599b65474eb3d15ba073b4200e2a6b9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Currency.cs b/Runtime/Java/Util/Currency.cs index a3cd50b..4cbc0d6 100644 --- a/Runtime/Java/Util/Currency.cs +++ b/Runtime/Java/Util/Currency.cs @@ -43,7 +43,7 @@ public Currency() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -80,7 +80,7 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(currencyCode) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(currencyCode) } }; return new global::Java.Util.Currency(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -94,7 +94,7 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return new global::Java.Util.Currency(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -108,8 +108,8 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally { @@ -122,7 +122,7 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -136,7 +136,7 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -150,7 +150,7 @@ public Currency(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -164,7 +164,7 @@ public int GetDefaultFractionDigits() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -178,7 +178,7 @@ public int GetNumericCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -192,7 +192,7 @@ public int GetNumericCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -206,7 +206,7 @@ public int GetNumericCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); } finally diff --git a/Runtime/Java/Util/Currency.cs.meta b/Runtime/Java/Util/Currency.cs.meta index 49018bd..f5bca10 100644 --- a/Runtime/Java/Util/Currency.cs.meta +++ b/Runtime/Java/Util/Currency.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7e473d2b05503e748c81d40f2c3b953e +guid: c7291a37c8d9340784b2b9b74805384f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Date.cs b/Runtime/Java/Util/Date.cs index 4a4435c..2b3d32c 100644 --- a/Runtime/Java/Util/Date.cs +++ b/Runtime/Java/Util/Date.cs @@ -89,7 +89,7 @@ public Date() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -104,7 +104,7 @@ public Date(long date) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = date }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = date } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -119,7 +119,13 @@ public Date(int year, int month, int date) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -134,7 +140,15 @@ public Date(int year, int month, int date, int hrs, int min) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }, new jvalue { i = hrs }, new jvalue { i = min }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date }, + new jvalue { i = hrs }, + new jvalue { i = min } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -149,7 +163,16 @@ public Date(int year, int month, int date, int hrs, int min, int sec) : base(Int try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }, new jvalue { i = hrs }, new jvalue { i = min }, new jvalue { i = sec }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date }, + new jvalue { i = hrs }, + new jvalue { i = min }, + new jvalue { i = sec } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -164,7 +187,7 @@ public Date(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -201,7 +224,7 @@ public Date(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -215,7 +238,16 @@ public static long UTC(int year, int month, int date, int hrs, int min, int sec) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = date }, new jvalue { i = hrs }, new jvalue { i = min }, new jvalue { i = sec }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = date }, + new jvalue { i = hrs }, + new jvalue { i = min }, + new jvalue { i = sec } + }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId1, args_); } finally @@ -229,7 +261,7 @@ public static long Parse(global::System.String s) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; return AndroidJNI.CallStaticLongMethod(_classObject, _cachedMethodId2, args_); } finally @@ -243,7 +275,7 @@ public int GetYear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -257,7 +289,7 @@ public void SetYear(int year) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = year } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -271,7 +303,7 @@ public int GetMonth() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -285,7 +317,7 @@ public void SetMonth(int month) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = month }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = month } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -299,7 +331,7 @@ public int GetDate() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -313,7 +345,7 @@ public void SetDate(int date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = date }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = date } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -327,7 +359,7 @@ public int GetDay() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -341,7 +373,7 @@ public int GetHours() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -355,7 +387,7 @@ public void SetHours(int hours) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = hours }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = hours } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -369,7 +401,7 @@ public int GetMinutes() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -383,7 +415,7 @@ public void SetMinutes(int minutes) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = minutes }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = minutes } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -397,7 +429,7 @@ public int GetSeconds() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -411,7 +443,7 @@ public void SetSeconds(int seconds) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = seconds }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = seconds } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -425,7 +457,7 @@ public long GetTime() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId16, args_); } finally @@ -439,7 +471,7 @@ public void SetTime(long time) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = time }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = time } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -453,7 +485,7 @@ public bool Before(global::Java.Util.Date when) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = when.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = when.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -467,7 +499,7 @@ public bool After(global::Java.Util.Date when) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = when.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = when.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -481,7 +513,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -495,7 +527,7 @@ public int CompareTo(global::Java.Util.Date anotherDate) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = anotherDate.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = anotherDate.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -509,7 +541,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -523,7 +555,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -537,7 +569,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -551,7 +583,7 @@ public int GetTimezoneOffset() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -565,7 +597,7 @@ public int GetTimezoneOffset() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = instant.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = instant.GetRawObject() } }; return new global::Java.Util.Date(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId26, args_)); } finally @@ -579,7 +611,7 @@ public int GetTimezoneOffset() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Time.Instant(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId27, args_)); } finally diff --git a/Runtime/Java/Util/Date.cs.meta b/Runtime/Java/Util/Date.cs.meta index c02eb23..ff50924 100644 --- a/Runtime/Java/Util/Date.cs.meta +++ b/Runtime/Java/Util/Date.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d59d20e63e76315bb034cdf50f594c30 +guid: a7297fa0e5b73e938931a13782890ca7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Deque.cs b/Runtime/Java/Util/Deque.cs index a810c33..e347238 100644 --- a/Runtime/Java/Util/Deque.cs +++ b/Runtime/Java/Util/Deque.cs @@ -6,976 +6,986 @@ namespace Java.Util { public interface Deque : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Queue where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Deque - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - private static readonly IntPtr _cachedMethodId25; - private static readonly IntPtr _cachedMethodId26; - private static readonly IntPtr _cachedMethodId27; - private static readonly IntPtr _cachedMethodId28; - private static readonly IntPtr _cachedMethodId29; - private static readonly IntPtr _cachedMethodId30; - private static readonly IntPtr _cachedMethodId31; - private static readonly IntPtr _cachedMethodId32; - private static readonly IntPtr _cachedMethodId33; - private static readonly IntPtr _cachedMethodId34; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Deque"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "addFirst", "(Ljava/lang/Object;)V"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "addLast", "(Ljava/lang/Object;)V"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "offerFirst", "(Ljava/lang/Object;)Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "offerLast", "(Ljava/lang/Object;)Z"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "removeFirst", "()Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "removeLast", "()Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "pollFirst", "()Ljava/lang/Object;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "pollLast", "()Ljava/lang/Object;"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "getFirst", "()Ljava/lang/Object;"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "getLast", "()Ljava/lang/Object;"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "peekFirst", "()Ljava/lang/Object;"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "peekLast", "()Ljava/lang/Object;"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "removeFirstOccurrence", "(Ljava/lang/Object;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "removeLastOccurrence", "(Ljava/lang/Object;)Z"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "offer", "(Ljava/lang/Object;)Z"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "remove", "()Ljava/lang/Object;"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "poll", "()Ljava/lang/Object;"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "element", "()Ljava/lang/Object;"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "peek", "()Ljava/lang/Object;"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "push", "(Ljava/lang/Object;)V"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "pop", "()Ljava/lang/Object;"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "descendingIterator", "()Ljava/util/Iterator;"); - _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId30 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId31 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId32 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId33 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId34 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + private static readonly IntPtr _classObject; + + static Deque() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Deque"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + void AddFirst(E e); + + void AddLast(E e); + + bool OfferFirst(E e); + + bool OfferLast(E e); + + E RemoveFirst(); + + E RemoveLast(); + + E PollFirst(); + + E PollLast(); + + E GetFirst(); - public void AddFirst(E e) + E GetLast(); + + E PeekFirst(); + + E PeekLast(); + + bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); + + bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); + + void Push(E e); + + E Pop(); + + global::Java.Util.Iterator DescendingIterator(); + } // end class Deque + + public class DequeAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Deque where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + private static readonly IntPtr _cachedMethodId19; + private static readonly IntPtr _cachedMethodId20; + private static readonly IntPtr _cachedMethodId21; + private static readonly IntPtr _cachedMethodId22; + private static readonly IntPtr _cachedMethodId23; + private static readonly IntPtr _cachedMethodId24; + private static readonly IntPtr _cachedMethodId25; + private static readonly IntPtr _cachedMethodId26; + private static readonly IntPtr _cachedMethodId27; + private static readonly IntPtr _cachedMethodId28; + private static readonly IntPtr _cachedMethodId29; + private static readonly IntPtr _cachedMethodId30; + private static readonly IntPtr _cachedMethodId31; + private static readonly IntPtr _cachedMethodId32; + private static readonly IntPtr _cachedMethodId33; + private static readonly IntPtr _cachedMethodId34; + + static DequeAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Deque"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "addFirst", "(Ljava/lang/Object;)V"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "addLast", "(Ljava/lang/Object;)V"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "offerFirst", "(Ljava/lang/Object;)Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "offerLast", "(Ljava/lang/Object;)Z"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "removeFirst", "()Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "removeLast", "()Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "pollFirst", "()Ljava/lang/Object;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "pollLast", "()Ljava/lang/Object;"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "getFirst", "()Ljava/lang/Object;"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "getLast", "()Ljava/lang/Object;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "peekFirst", "()Ljava/lang/Object;"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "peekLast", "()Ljava/lang/Object;"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "removeFirstOccurrence", "(Ljava/lang/Object;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "removeLastOccurrence", "(Ljava/lang/Object;)Z"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "offer", "(Ljava/lang/Object;)Z"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "remove", "()Ljava/lang/Object;"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "poll", "()Ljava/lang/Object;"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "element", "()Ljava/lang/Object;"); + _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "peek", "()Ljava/lang/Object;"); + _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "push", "(Ljava/lang/Object;)V"); + _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "pop", "()Ljava/lang/Object;"); + _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "descendingIterator", "()Ljava/util/Iterator;"); + _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId30 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId31 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId32 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId33 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId34 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public DequeAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void AddLast(E e) + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of DequeAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public bool OfferFirst(E e) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool OfferLast(E e) + public void AddFirst(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E RemoveFirst() + public void AddLast(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E RemoveLast() + public bool OfferFirst(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E PollFirst() + public bool OfferLast(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E PollLast() + public E RemoveFirst() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E GetFirst() + public E RemoveLast() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E GetLast() + public E PollFirst() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E PeekFirst() + public E PollLast() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E PeekLast() + public E GetFirst() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o) + public E GetLast() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o) + public E PeekFirst() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Add(E e) + public E PeekLast() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Offer(E e) + public bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E Remove() + public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Poll() + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E Element() + public bool Offer(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Peek() + public E Remove() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId19, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Push(E e) + public E Poll() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId20, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E Pop() + public E Element() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId21, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public E Peek() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId22, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId19, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + public void Push(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId23, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId20, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int Size() + public E Pop() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId24, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId21, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Iterator Iterator() + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId22, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Iterator DescendingIterator() + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId26, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId23, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool IsEmpty() + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId27, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId24, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool AddAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator DescendingIterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId29, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId26, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId30, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId27, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId31, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Clear() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId32, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId29, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId33, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId30, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int HashCode() + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId34, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId31, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId32, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId33, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId34, args_); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Deque + public static explicit operator IntPtr(DequeAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.Deque") {} + return wrapper.GetRawObject(); + } - public abstract void AddFirst(E e); + public static explicit operator DequeAnonymousImplementation(IntPtr rawObject) + { + return new DequeAnonymousImplementation(rawObject); + } - public abstract void AddLast(E e); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class DequeAnonymousImplementation - public abstract bool OfferFirst(E e); + public abstract class DequeCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Deque where E : class + { + public DequeCallbackHelper() : base("java.util.Deque") {} - public abstract bool OfferLast(E e); + public abstract void AddFirst(E e); - public abstract E RemoveFirst(); + public abstract void AddLast(E e); - public abstract E RemoveLast(); + public abstract bool OfferFirst(E e); - public abstract E PollFirst(); + public abstract bool OfferLast(E e); - public abstract E PollLast(); + public abstract E RemoveFirst(); - public abstract E GetFirst(); + public abstract E RemoveLast(); - public abstract E GetLast(); + public abstract E PollFirst(); - public abstract E PeekFirst(); + public abstract E PollLast(); - public abstract E PeekLast(); + public abstract E GetFirst(); - public abstract bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E GetLast(); - public abstract bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E PeekFirst(); - public abstract bool Add(E e); + public abstract E PeekLast(); - public abstract bool Offer(E e); + public abstract bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract E Remove(); + public abstract bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract E Poll(); + public abstract bool Add(E e); - public abstract E Element(); + public abstract bool Offer(E e); - public abstract E Peek(); + public abstract E Remove(); - public abstract void Push(E e); + public abstract E Poll(); - public abstract E Pop(); + public abstract E Element(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E Peek(); - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract void Push(E e); - public abstract int Size(); + public abstract E Pop(); - public abstract global::Java.Util.Iterator Iterator(); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract global::Java.Util.Iterator DescendingIterator(); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool IsEmpty(); + public abstract int Size(); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator DescendingIterator(); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool IsEmpty(); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract bool RetainAll(global::Java.Util.Collection c); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract void Clear(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "addFirst" && args.Length == 1) { - AddFirst(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + AddFirst(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "addLast" && args.Length == 1) { - AddLast(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + AddLast(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "offerFirst" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(OfferFirst(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(OfferFirst(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "offerLast" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(OfferLast(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(OfferLast(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeFirst" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveFirst()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveFirst()); } else if (methodName == "removeLast" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveLast()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveLast()); } else if (methodName == "pollFirst" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirst()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirst()); } else if (methodName == "pollLast" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLast()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLast()); } else if (methodName == "getFirst" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetFirst()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetFirst()); } else if (methodName == "getLast" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetLast()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetLast()); } else if (methodName == "peekFirst" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PeekFirst()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PeekFirst()); } else if (methodName == "peekLast" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PeekLast()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PeekLast()); } else if (methodName == "removeFirstOccurrence" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveFirstOccurrence(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveFirstOccurrence(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeLastOccurrence" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveLastOccurrence(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveLastOccurrence(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "offer" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Offer(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Offer(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove()); } else if (methodName == "poll" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Poll()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Poll()); } else if (methodName == "element" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Element()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Element()); } else if (methodName == "peek" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Peek()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Peek()); } else if (methodName == "push" && args.Length == 1) { - Push(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + Push(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "pop" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Pop()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Pop()); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "descendingIterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingIterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingIterator()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void AddFirst(E e); - - void AddLast(E e); - - bool OfferFirst(E e); - - bool OfferLast(E e); - - E RemoveFirst(); - - E RemoveLast(); - - E PollFirst(); - - E PollLast(); - - E GetFirst(); - - E GetLast(); - - E PeekFirst(); - - E PeekLast(); - - bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); - - bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o); - - void Push(E e); - - E Pop(); - - global::Java.Util.Iterator DescendingIterator(); - } // end class Deque + } + } // end class DequeCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Deque.cs.meta b/Runtime/Java/Util/Deque.cs.meta index cda0b4f..8cc5372 100644 --- a/Runtime/Java/Util/Deque.cs.meta +++ b/Runtime/Java/Util/Deque.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c9a915a8801f3188a629c2e5409cb50e +guid: 3b1aea9462203af39a740c98b5dc9e36 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Dictionary.cs b/Runtime/Java/Util/Dictionary.cs index 9abfcb5..11853e8 100644 --- a/Runtime/Java/Util/Dictionary.cs +++ b/Runtime/Java/Util/Dictionary.cs @@ -37,7 +37,7 @@ public Dictionary() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +74,7 @@ public int Size() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -88,7 +88,7 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -102,8 +102,8 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally { @@ -116,8 +116,8 @@ public bool IsEmpty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally { @@ -130,7 +130,7 @@ public V Get(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); @@ -152,7 +152,12 @@ public V Put(K key, V value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); @@ -174,7 +179,7 @@ public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); diff --git a/Runtime/Java/Util/Dictionary.cs.meta b/Runtime/Java/Util/Dictionary.cs.meta index 2d2fe3c..566b330 100644 --- a/Runtime/Java/Util/Dictionary.cs.meta +++ b/Runtime/Java/Util/Dictionary.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7d51d94ee5353576a182ea7a0f65b171 +guid: eafc72fc9fdd354189e4414d81f45248 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/DoubleSummaryStatistics.cs b/Runtime/Java/Util/DoubleSummaryStatistics.cs index ba77a95..b6fd2ea 100644 --- a/Runtime/Java/Util/DoubleSummaryStatistics.cs +++ b/Runtime/Java/Util/DoubleSummaryStatistics.cs @@ -37,7 +37,7 @@ public DoubleSummaryStatistics() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +74,7 @@ public void Accept(double value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -88,7 +88,7 @@ public void Combine(global::Java.Util.DoubleSummaryStatistics other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -102,7 +102,7 @@ public long GetCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -116,7 +116,7 @@ public double GetSum() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -130,7 +130,7 @@ public double GetMin() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -144,7 +144,7 @@ public double GetMax() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -158,7 +158,7 @@ public double GetAverage() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId6, args_); } finally diff --git a/Runtime/Java/Util/DoubleSummaryStatistics.cs.meta b/Runtime/Java/Util/DoubleSummaryStatistics.cs.meta index 3d26496..dc1fe76 100644 --- a/Runtime/Java/Util/DoubleSummaryStatistics.cs.meta +++ b/Runtime/Java/Util/DoubleSummaryStatistics.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1be27fe14c94357593f61ee27760a8c9 +guid: df1a0c39f29d3d89b91d04872cbb786d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/DuplicateFormatFlagsException.cs b/Runtime/Java/Util/DuplicateFormatFlagsException.cs index bf53af2..eff0a6b 100644 --- a/Runtime/Java/Util/DuplicateFormatFlagsException.cs +++ b/Runtime/Java/Util/DuplicateFormatFlagsException.cs @@ -25,7 +25,7 @@ public DuplicateFormatFlagsException(global::System.String f) : base(IntPtr.Zero try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(f) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(f) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public DuplicateFormatFlagsException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/DuplicateFormatFlagsException.cs.meta b/Runtime/Java/Util/DuplicateFormatFlagsException.cs.meta index cfa1845..571bb85 100644 --- a/Runtime/Java/Util/DuplicateFormatFlagsException.cs.meta +++ b/Runtime/Java/Util/DuplicateFormatFlagsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 189e9839424533928bef93891d9714f1 +guid: f7a82515a43130febc70e3fe5734679a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EmptyStackException.cs b/Runtime/Java/Util/EmptyStackException.cs index c943114..7754d63 100644 --- a/Runtime/Java/Util/EmptyStackException.cs +++ b/Runtime/Java/Util/EmptyStackException.cs @@ -23,7 +23,7 @@ public EmptyStackException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/EmptyStackException.cs.meta b/Runtime/Java/Util/EmptyStackException.cs.meta index edb29e6..dceda9d 100644 --- a/Runtime/Java/Util/EmptyStackException.cs.meta +++ b/Runtime/Java/Util/EmptyStackException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5a42969228e43acfbf73e83d800823ea +guid: 643cc39eb0a63145b67b94ac878b8391 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EnumMap.cs b/Runtime/Java/Util/EnumMap.cs index 62659cf..fc8b2ee 100644 --- a/Runtime/Java/Util/EnumMap.cs +++ b/Runtime/Java/Util/EnumMap.cs @@ -29,7 +29,7 @@ public EnumMap(global::Java.Lang.Class keyType) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = keyType.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = keyType.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public EnumMap(global::Java.Util.EnumMap m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,7 @@ public EnumMap(global::Java.Util.Map m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -96,7 +96,7 @@ public EnumMap(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.EnumMap(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Util/EnumMap.cs.meta b/Runtime/Java/Util/EnumMap.cs.meta index f127da8..25226db 100644 --- a/Runtime/Java/Util/EnumMap.cs.meta +++ b/Runtime/Java/Util/EnumMap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2bdbaac8667c375c9bf046bf4634a6d2 +guid: 3e9adef0ad1930a0b4406ce6288b76c0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EnumSet.cs b/Runtime/Java/Util/EnumSet.cs index a50970a..874cf9c 100644 --- a/Runtime/Java/Util/EnumSet.cs +++ b/Runtime/Java/Util/EnumSet.cs @@ -47,7 +47,7 @@ public EnumSet() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -84,7 +84,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = elementType.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = elementType.GetRawObject() } }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -98,7 +98,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = elementType.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = elementType.GetRawObject() } }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -112,7 +112,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -126,7 +126,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -140,7 +140,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -154,7 +154,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally @@ -168,7 +168,12 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e1), ToJvalue(e2)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(e1), + ToJvalue(e2) + }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally @@ -182,7 +187,13 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e1), ToJvalue(e2), ToJvalue(e3)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(e1), + ToJvalue(e2), + ToJvalue(e3) + }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); } finally @@ -196,7 +207,14 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e1), ToJvalue(e2), ToJvalue(e3), ToJvalue(e4)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(e1), + ToJvalue(e2), + ToJvalue(e3), + ToJvalue(e4) + }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); } finally @@ -210,7 +228,15 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e1), ToJvalue(e2), ToJvalue(e3), ToJvalue(e4), ToJvalue(e5)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(e1), + ToJvalue(e2), + ToJvalue(e3), + ToJvalue(e4), + ToJvalue(e5) + }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); } finally @@ -224,7 +250,12 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(from), ToJvalue(to)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(from), + ToJvalue(to) + }; return new global::Java.Util.EnumSet(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); } finally @@ -238,7 +269,7 @@ public EnumSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.EnumSet(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally diff --git a/Runtime/Java/Util/EnumSet.cs.meta b/Runtime/Java/Util/EnumSet.cs.meta index 976fe62..a7884a7 100644 --- a/Runtime/Java/Util/EnumSet.cs.meta +++ b/Runtime/Java/Util/EnumSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4403ed0258f03f3ca4679f8017145e2f +guid: b90335611b5e3d80a2913b04428df217 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Enumeration.cs b/Runtime/Java/Util/Enumeration.cs index cd94c91..1131832 100644 --- a/Runtime/Java/Util/Enumeration.cs +++ b/Runtime/Java/Util/Enumeration.cs @@ -6,120 +6,130 @@ namespace Java.Util { public interface Enumeration : global::Google.LibraryWrapper.Java.JavaInterface where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Enumeration + private static readonly IntPtr _classObject; + + static Enumeration() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Enumeration"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + bool HasMoreElements(); + + E NextElement(); + } // end class Enumeration - static AnonymousImplementation() + public class EnumerationAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Enumeration where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + + static EnumerationAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Enumeration"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasMoreElements", "()Z"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "nextElement", "()Ljava/lang/Object;"); + } + + public EnumerationAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Enumeration"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasMoreElements", "()Z"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "nextElement", "()Ljava/lang/Object;"); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of EnumerationAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool HasMoreElements() + public bool HasMoreElements() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E NextElement() + public E NextElement() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(EnumerationAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator EnumerationAnonymousImplementation(IntPtr rawObject) + { + return new EnumerationAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Enumeration + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.Enumeration") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class EnumerationAnonymousImplementation - public abstract bool HasMoreElements(); + public abstract class EnumerationCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Enumeration where E : class + { + public EnumerationCallbackHelper() : base("java.util.Enumeration") {} - public abstract E NextElement(); + public abstract bool HasMoreElements(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract E NextElement(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "hasMoreElements" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasMoreElements()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasMoreElements()); } else if (methodName == "nextElement" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NextElement()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NextElement()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - bool HasMoreElements(); - - E NextElement(); - } // end class Enumeration + } + } // end class EnumerationCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Enumeration.cs.meta b/Runtime/Java/Util/Enumeration.cs.meta index e84ac8e..edb692e 100644 --- a/Runtime/Java/Util/Enumeration.cs.meta +++ b/Runtime/Java/Util/Enumeration.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3976769b95c13e2f8c081a19fc79a259 +guid: 2be38f7261713952b9ed0a6da49f5e5c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EventListener.cs b/Runtime/Java/Util/EventListener.cs index f83fcf6..ab825ab 100644 --- a/Runtime/Java/Util/EventListener.cs +++ b/Runtime/Java/Util/EventListener.cs @@ -6,64 +6,74 @@ namespace Java.Util { public interface EventListener : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.EventListener + private static readonly IntPtr _classObject; + + static EventListener() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/EventListener"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class EventListener + + public class EventListenerAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.EventListener + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static EventListenerAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/EventListener"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public EventListenerAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/EventListener"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of EventListenerAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(EventListenerAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator EventListenerAnonymousImplementation(IntPtr rawObject) + { + return new EventListenerAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.EventListener + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.EventListener") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class EventListenerAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class EventListenerCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.EventListener + { + public EventListenerCallbackHelper() : base("java.util.EventListener") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class EventListener + } + } // end class EventListenerCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/EventListener.cs.meta b/Runtime/Java/Util/EventListener.cs.meta index 3f7bae1..77de3fb 100644 --- a/Runtime/Java/Util/EventListener.cs.meta +++ b/Runtime/Java/Util/EventListener.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4db1be3d0b2f3adc98ac50306175af03 +guid: d9ecfa27162738658d9c023d6bf1b51e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EventListenerProxy.cs b/Runtime/Java/Util/EventListenerProxy.cs index f817046..600e0ea 100644 --- a/Runtime/Java/Util/EventListenerProxy.cs +++ b/Runtime/Java/Util/EventListenerProxy.cs @@ -25,7 +25,7 @@ public EventListenerProxy(T listener) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(listener)}; + jvalue[] args_ = new jvalue[] { ToJvalue(listener) }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public T GetListener() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); diff --git a/Runtime/Java/Util/EventListenerProxy.cs.meta b/Runtime/Java/Util/EventListenerProxy.cs.meta index 4e30073..e3568f8 100644 --- a/Runtime/Java/Util/EventListenerProxy.cs.meta +++ b/Runtime/Java/Util/EventListenerProxy.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 01ff346d10d23156b7cb28c4523935e9 +guid: 046fec04ec753cc1b41c9a857399e117 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/EventObject.cs b/Runtime/Java/Util/EventObject.cs index 06b0db2..aff8e2a 100644 --- a/Runtime/Java/Util/EventObject.cs +++ b/Runtime/Java/Util/EventObject.cs @@ -25,7 +25,7 @@ public EventObject(global::Google.LibraryWrapper.Java.JavaObject source) : base( try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = source.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = source.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public EventObject(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Util/EventObject.cs.meta b/Runtime/Java/Util/EventObject.cs.meta index b6eb4ee..614c28e 100644 --- a/Runtime/Java/Util/EventObject.cs.meta +++ b/Runtime/Java/Util/EventObject.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7670fadd0642386d8589975946aeb203 +guid: d7ead125bf95364386923e6345da913b MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs b/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs index 5508352..9917af1 100644 --- a/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs +++ b/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs @@ -27,7 +27,12 @@ public FormatFlagsConversionMismatchException(global::System.String f, char c) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(f) }, new jvalue { c = c }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(f) }, + new jvalue { c = c } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -64,7 +69,7 @@ public FormatFlagsConversionMismatchException(IntPtr rawObject) : base(IntPtr.Ze try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -78,7 +83,7 @@ public char GetConversion() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallCharMethod(_rawObject, _cachedMethodId1, args_); } finally diff --git a/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs.meta b/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs.meta index 3532972..a5b367b 100644 --- a/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs.meta +++ b/Runtime/Java/Util/FormatFlagsConversionMismatchException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b80d9e1803d53987ad4571a9a40154d2 +guid: cee70f3ee6ae37b0a52eace628b266d8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Formattable.cs b/Runtime/Java/Util/Formattable.cs index f099e3b..e10e488 100644 --- a/Runtime/Java/Util/Formattable.cs +++ b/Runtime/Java/Util/Formattable.cs @@ -6,89 +6,106 @@ namespace Java.Util { public interface Formattable : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Formattable + private static readonly IntPtr _classObject; + + static Formattable() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Formattable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Formattable"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "formatTo", "(Ljava/util/Formatter;III)V"); - } + void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision); + } // end class Formattable + + public class FormattableAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Formattable + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static FormattableAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Formattable"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "formatTo", "(Ljava/util/Formatter;III)V"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public FormattableAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = formatter.GetRawObject() }, new jvalue { i = flags }, new jvalue { i = width }, new jvalue { i = precision }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of FormattableAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = formatter.GetRawObject() }, + new jvalue { i = flags }, + new jvalue { i = width }, + new jvalue { i = precision } + }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Formattable + public static explicit operator IntPtr(FormattableAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.Formattable") {} + return wrapper.GetRawObject(); + } - public abstract void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision); + public static explicit operator FormattableAnonymousImplementation(IntPtr rawObject) + { + return new FormattableAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class FormattableAnonymousImplementation + + public abstract class FormattableCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Formattable + { + public FormattableCallbackHelper() : base("java.util.Formattable") {} + + public abstract void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "formatTo" && args.Length == 4) { - FormatTo(new global::Java.Util.Formatter(((AndroidJavaObject) args[0]).GetRawObject()), (int) args[1], (int) args[2], (int) args[3]); - return null; + FormatTo(new global::Java.Util.Formatter(((AndroidJavaObject) args[0]).GetRawObject()), (int) args[1], (int) args[2], (int) args[3]); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void FormatTo(global::Java.Util.Formatter formatter, int flags, int width, int precision); - } // end class Formattable + } + } // end class FormattableCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Formattable.cs.meta b/Runtime/Java/Util/Formattable.cs.meta index a4bf0b2..2377fbe 100644 --- a/Runtime/Java/Util/Formattable.cs.meta +++ b/Runtime/Java/Util/Formattable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0a4bcf47d0a5388fbf04bea349ea79c1 +guid: 2395a07421ab327486c602a3f31ac9aa MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/FormattableFlags.cs b/Runtime/Java/Util/FormattableFlags.cs index 28e3b07..77a373f 100644 --- a/Runtime/Java/Util/FormattableFlags.cs +++ b/Runtime/Java/Util/FormattableFlags.cs @@ -8,18 +8,36 @@ public class FormattableFlags : global::Google.LibraryWrapper.Java.JavaObject { public static int LEFT_JUSTIFY { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int UPPERCASE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static int ALTERNATE { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + } } private static readonly IntPtr _classObject; diff --git a/Runtime/Java/Util/FormattableFlags.cs.meta b/Runtime/Java/Util/FormattableFlags.cs.meta index 876aac2..4639b5d 100644 --- a/Runtime/Java/Util/FormattableFlags.cs.meta +++ b/Runtime/Java/Util/FormattableFlags.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: beaf2cba64043870af785e70fca47701 +guid: b1a3530752f33c2c97536e02d3f3ba7c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Formatter.cs b/Runtime/Java/Util/Formatter.cs index 73fca8b..2592168 100644 --- a/Runtime/Java/Util/Formatter.cs +++ b/Runtime/Java/Util/Formatter.cs @@ -10,7 +10,10 @@ public class BigDecimalLayoutForm : global::Java.Lang.Enum new global::Java.Util.Formatter.BigDecimalLayoutForm(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.Formatter.BigDecimalLayoutForm(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -20,7 +23,10 @@ public class BigDecimalLayoutForm : global::Java.Lang.Enum new global::Java.Util.Formatter.BigDecimalLayoutForm(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Util.Formatter.BigDecimalLayoutForm(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -72,7 +78,7 @@ public BigDecimalLayoutForm(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Util.Formatter.BigDecimalLayoutForm(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -150,7 +156,7 @@ public Formatter() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -165,7 +171,7 @@ public Formatter(global::Java.Lang.Appendable a) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = a.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = a.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -180,7 +186,7 @@ public Formatter(global::Java.Util.Locale l) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = l.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = l.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -195,7 +201,12 @@ public Formatter(global::Java.Lang.Appendable a, global::Java.Util.Locale l) : b try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = a.GetRawObject() }, new jvalue { l = l.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = a.GetRawObject() }, + new jvalue { l = l.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -210,7 +221,7 @@ public Formatter(global::System.String fileName) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(fileName) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(fileName) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -225,7 +236,12 @@ public Formatter(global::System.String fileName, global::System.String csn) : ba try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(fileName) }, new jvalue { l = AndroidJNI.NewString(csn) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(fileName) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -240,7 +256,13 @@ public Formatter(global::System.String fileName, global::System.String csn, glob try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(fileName) }, new jvalue { l = AndroidJNI.NewString(csn) }, new jvalue { l = l.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(fileName) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) }, + new jvalue { l = l.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId6, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -255,7 +277,7 @@ public Formatter(global::Java.ExternalType.Java.Io.File file) : base(IntPtr.Zero try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = file.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = file.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId7, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -270,7 +292,12 @@ public Formatter(global::Java.ExternalType.Java.Io.File file, global::System.Str try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = file.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(csn) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = file.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId8, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -285,7 +312,13 @@ public Formatter(global::Java.ExternalType.Java.Io.File file, global::System.Str try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = file.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(csn) }, new jvalue { l = l.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = file.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) }, + new jvalue { l = l.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId9, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -300,7 +333,7 @@ public Formatter(global::Java.ExternalType.Java.Io.PrintStream ps) : base(IntPtr try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = ps.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = ps.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId10, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -315,7 +348,7 @@ public Formatter(global::Java.ExternalType.Java.Io.OutputStream os) : base(IntPt try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = os.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId11, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -330,7 +363,12 @@ public Formatter(global::Java.ExternalType.Java.Io.OutputStream os, global::Syst try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(csn) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = os.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId12, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -345,7 +383,13 @@ public Formatter(global::Java.ExternalType.Java.Io.OutputStream os, global::Syst try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(csn) }, new jvalue { l = l.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = os.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(csn) }, + new jvalue { l = l.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId13, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -382,7 +426,7 @@ public Formatter(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -396,8 +440,8 @@ public Formatter(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Lang.Appendable.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Lang.AppendableAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally { @@ -410,7 +454,7 @@ public void Flush() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -424,7 +468,7 @@ public void Close() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -438,7 +482,7 @@ public void Close() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Io.IOException(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally diff --git a/Runtime/Java/Util/Formatter.cs.meta b/Runtime/Java/Util/Formatter.cs.meta index e0ebeb1..4ccc853 100644 --- a/Runtime/Java/Util/Formatter.cs.meta +++ b/Runtime/Java/Util/Formatter.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 24d6cc52b46130298849fc08f4230752 +guid: 7e524ff72dc73c20bc98517741d50585 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/FormatterClosedException.cs b/Runtime/Java/Util/FormatterClosedException.cs index 4052dbe..2172615 100644 --- a/Runtime/Java/Util/FormatterClosedException.cs +++ b/Runtime/Java/Util/FormatterClosedException.cs @@ -23,7 +23,7 @@ public FormatterClosedException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/FormatterClosedException.cs.meta b/Runtime/Java/Util/FormatterClosedException.cs.meta index 884e8a0..536f81f 100644 --- a/Runtime/Java/Util/FormatterClosedException.cs.meta +++ b/Runtime/Java/Util/FormatterClosedException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a654fe790fea338ba76b6552153021e2 +guid: 736b47e573ce3071814675aae373b2c5 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/GregorianCalendar.cs b/Runtime/Java/Util/GregorianCalendar.cs index 77f1988..7817a94 100644 --- a/Runtime/Java/Util/GregorianCalendar.cs +++ b/Runtime/Java/Util/GregorianCalendar.cs @@ -8,13 +8,25 @@ public class GregorianCalendar : global::Java.Util.Calendar { public static int BC { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int AD { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } private static readonly IntPtr _classObject; @@ -60,7 +72,7 @@ public GregorianCalendar() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -75,7 +87,7 @@ public GregorianCalendar(global::Java.Util.TimeZone zone) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zone.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -90,7 +102,7 @@ public GregorianCalendar(global::Java.Util.Locale aLocale) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = aLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = aLocale.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -105,7 +117,12 @@ public GregorianCalendar(global::Java.Util.TimeZone zone, global::Java.Util.Loca try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }, new jvalue { l = aLocale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = zone.GetRawObject() }, + new jvalue { l = aLocale.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -120,7 +137,13 @@ public GregorianCalendar(int year, int month, int dayOfMonth) : base(IntPtr.Zero try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = dayOfMonth }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = dayOfMonth } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -135,7 +158,15 @@ public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = dayOfMonth }, new jvalue { i = hourOfDay }, new jvalue { i = minute }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = dayOfMonth }, + new jvalue { i = hourOfDay }, + new jvalue { i = minute } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -150,7 +181,16 @@ public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = dayOfMonth }, new jvalue { i = hourOfDay }, new jvalue { i = minute }, new jvalue { i = second }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = dayOfMonth }, + new jvalue { i = hourOfDay }, + new jvalue { i = minute }, + new jvalue { i = second } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId6, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -187,7 +227,7 @@ public void SetGregorianChange(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = date.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = date.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -201,7 +241,7 @@ public void SetGregorianChange(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Date(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -215,7 +255,7 @@ public bool IsLeapYear(int year) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = year } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -229,7 +269,7 @@ public bool IsLeapYear(int year) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Time.ZonedDateTime(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -243,7 +283,7 @@ public bool IsLeapYear(int year) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zdt.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zdt.GetRawObject() } }; return new global::Java.Util.GregorianCalendar(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally diff --git a/Runtime/Java/Util/GregorianCalendar.cs.meta b/Runtime/Java/Util/GregorianCalendar.cs.meta index 5fb3f1e..1c7989a 100644 --- a/Runtime/Java/Util/GregorianCalendar.cs.meta +++ b/Runtime/Java/Util/GregorianCalendar.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 491acb4f8141395e8f371496e3d691b2 +guid: b208638042543da89fea71e3e47ac6b3 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/HashMap.cs b/Runtime/Java/Util/HashMap.cs index 2ec7b10..84e3494 100644 --- a/Runtime/Java/Util/HashMap.cs +++ b/Runtime/Java/Util/HashMap.cs @@ -53,7 +53,12 @@ public HashMap(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -68,7 +73,7 @@ public HashMap(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -83,7 +88,7 @@ public HashMap() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -98,7 +103,7 @@ public HashMap(global::Java.Util.Map m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -135,7 +140,12 @@ public V GetOrDefault(global::Google.LibraryWrapper.Java.JavaObject key, V defau try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }, ToJvalue(defaultValue)}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = key.GetRawObject() }, + ToJvalue(defaultValue) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); @@ -157,7 +167,12 @@ public V PutIfAbsent(K key, V value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -179,7 +194,12 @@ public bool Remove(global::Google.LibraryWrapper.Java.JavaObject key, global::Go try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }, new jvalue { l = value.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = key.GetRawObject() }, + new jvalue { l = value.GetRawObject() } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -193,7 +213,13 @@ public bool Replace(K key, V oldValue, V newValue) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(oldValue), ToJvalue(newValue)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(oldValue), + ToJvalue(newValue) + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -207,7 +233,12 @@ public V Replace(K key, V value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); @@ -229,7 +260,12 @@ public V ComputeIfAbsent(K key, global::Java.ExternalType.Java.Util.Function.Fun try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = mappingFunction.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = mappingFunction.GetRawObject() } + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); @@ -251,7 +287,12 @@ public V ComputeIfPresent(K key, global::Java.ExternalType.Java.Util.Function.Bi try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = remappingFunction.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = remappingFunction.GetRawObject() } + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); @@ -273,7 +314,12 @@ public V Compute(K key, global::Java.ExternalType.Java.Util.Function.BiFunction< try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = remappingFunction.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = remappingFunction.GetRawObject() } + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); @@ -295,7 +341,13 @@ public V Merge(K key, V value, global::Java.ExternalType.Java.Util.Function.BiFu try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value), new jvalue { l = remappingFunction.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value), + new jvalue { l = remappingFunction.GetRawObject() } + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); @@ -317,7 +369,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -63,7 +63,12 @@ public HashSet(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -78,7 +83,7 @@ public HashSet(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -115,7 +120,7 @@ public HashSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -129,8 +134,8 @@ public HashSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally { diff --git a/Runtime/Java/Util/HashSet.cs.meta b/Runtime/Java/Util/HashSet.cs.meta index 6bcb22b..f6e3bd8 100644 --- a/Runtime/Java/Util/HashSet.cs.meta +++ b/Runtime/Java/Util/HashSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9ceef3fc43d332f88122e8ba042972ee +guid: 9ef9595d5b92355f94abf6f525b796df MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Hashtable.cs b/Runtime/Java/Util/Hashtable.cs index 6c6d5fe..f4fcf7b 100644 --- a/Runtime/Java/Util/Hashtable.cs +++ b/Runtime/Java/Util/Hashtable.cs @@ -73,7 +73,12 @@ public Hashtable(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -88,7 +93,7 @@ public Hashtable(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -103,7 +108,7 @@ public Hashtable() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -118,7 +123,7 @@ public Hashtable(global::Java.Util.Map t) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = t.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = t.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -155,7 +160,7 @@ public bool Contains(global::Google.LibraryWrapper.Java.JavaObject value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -169,7 +174,7 @@ public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -183,7 +188,7 @@ public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -197,7 +202,7 @@ public void PutAll(global::Java.Util.Map t) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = t.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = t.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -211,7 +216,7 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -225,7 +230,7 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -239,8 +244,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally { @@ -253,8 +258,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set>.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation>(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally { @@ -267,8 +272,8 @@ public void Clear() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Collection.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.CollectionAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally { @@ -281,7 +286,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -295,7 +300,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -309,7 +314,12 @@ public V GetOrDefault(global::Google.LibraryWrapper.Java.JavaObject key, V defau try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }, ToJvalue(defaultValue)}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = key.GetRawObject() }, + ToJvalue(defaultValue) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); @@ -331,7 +341,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -100,7 +100,7 @@ public IdentityHashMap(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -114,7 +114,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally diff --git a/Runtime/Java/Util/IllegalFormatConversionException.cs.meta b/Runtime/Java/Util/IllegalFormatConversionException.cs.meta index fb86223..71c840d 100644 --- a/Runtime/Java/Util/IllegalFormatConversionException.cs.meta +++ b/Runtime/Java/Util/IllegalFormatConversionException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b8114552361f3b9cbd86b35ac7675c00 +guid: c22a7adb227e3538a3a503b7f67f2189 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IllegalFormatException.cs.meta b/Runtime/Java/Util/IllegalFormatException.cs.meta index b32b1d0..e62d4d6 100644 --- a/Runtime/Java/Util/IllegalFormatException.cs.meta +++ b/Runtime/Java/Util/IllegalFormatException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8169a865c8503492b09933a69fb2c436 +guid: e6f943c96eb53a5a86240694ca86f31c MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IllegalFormatFlagsException.cs b/Runtime/Java/Util/IllegalFormatFlagsException.cs index fdcca9e..0f6ef02 100644 --- a/Runtime/Java/Util/IllegalFormatFlagsException.cs +++ b/Runtime/Java/Util/IllegalFormatFlagsException.cs @@ -25,7 +25,7 @@ public IllegalFormatFlagsException(global::System.String f) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(f) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(f) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public IllegalFormatFlagsException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/IllegalFormatFlagsException.cs.meta b/Runtime/Java/Util/IllegalFormatFlagsException.cs.meta index 4576a22..da51b83 100644 --- a/Runtime/Java/Util/IllegalFormatFlagsException.cs.meta +++ b/Runtime/Java/Util/IllegalFormatFlagsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d10bfbfb8f813513861e1db32950331b +guid: f176d7505e023e72a0f38fdef42255a5 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IllegalFormatPrecisionException.cs b/Runtime/Java/Util/IllegalFormatPrecisionException.cs index e16b47f..bb08345 100644 --- a/Runtime/Java/Util/IllegalFormatPrecisionException.cs +++ b/Runtime/Java/Util/IllegalFormatPrecisionException.cs @@ -25,7 +25,7 @@ public IllegalFormatPrecisionException(int p) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = p }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = p } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public int GetPrecision() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/IllegalFormatPrecisionException.cs.meta b/Runtime/Java/Util/IllegalFormatPrecisionException.cs.meta index 4c0833e..a8e4397 100644 --- a/Runtime/Java/Util/IllegalFormatPrecisionException.cs.meta +++ b/Runtime/Java/Util/IllegalFormatPrecisionException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3f5dd3ce5fdf34f39c986656194c9a54 +guid: 1c94847760ca3a239a0640949cdcd650 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IllegalFormatWidthException.cs b/Runtime/Java/Util/IllegalFormatWidthException.cs index 153d1f8..2086d7e 100644 --- a/Runtime/Java/Util/IllegalFormatWidthException.cs +++ b/Runtime/Java/Util/IllegalFormatWidthException.cs @@ -25,7 +25,7 @@ public IllegalFormatWidthException(int w) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = w }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = w } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public int GetWidth() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/IllegalFormatWidthException.cs.meta b/Runtime/Java/Util/IllegalFormatWidthException.cs.meta index 8d6cca9..09bc871 100644 --- a/Runtime/Java/Util/IllegalFormatWidthException.cs.meta +++ b/Runtime/Java/Util/IllegalFormatWidthException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 968b21b815203d64bc187d510dd7268b +guid: 537190b342c63d328e42b9dadb64c2fd MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IllformedLocaleException.cs b/Runtime/Java/Util/IllformedLocaleException.cs index a70e7a1..4331908 100644 --- a/Runtime/Java/Util/IllformedLocaleException.cs +++ b/Runtime/Java/Util/IllformedLocaleException.cs @@ -29,7 +29,7 @@ public IllformedLocaleException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +44,7 @@ public IllformedLocaleException(global::System.String message) : base(IntPtr.Zer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +59,12 @@ public IllformedLocaleException(global::System.String message, int errorIndex) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }, new jvalue { i = errorIndex }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) }, + new jvalue { i = errorIndex } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -96,7 +101,7 @@ public int GetErrorIndex() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/IllformedLocaleException.cs.meta b/Runtime/Java/Util/IllformedLocaleException.cs.meta index 48968cc..5c5782e 100644 --- a/Runtime/Java/Util/IllformedLocaleException.cs.meta +++ b/Runtime/Java/Util/IllformedLocaleException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 59ecd81c5b3536c8b786d1b25a51e583 +guid: 6242443978fb3029b54aef9560ab0b85 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/InputMismatchException.cs b/Runtime/Java/Util/InputMismatchException.cs index c6db5fe..46c5e08 100644 --- a/Runtime/Java/Util/InputMismatchException.cs +++ b/Runtime/Java/Util/InputMismatchException.cs @@ -25,7 +25,7 @@ public InputMismatchException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public InputMismatchException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/InputMismatchException.cs.meta b/Runtime/Java/Util/InputMismatchException.cs.meta index ab906a9..ba40df3 100644 --- a/Runtime/Java/Util/InputMismatchException.cs.meta +++ b/Runtime/Java/Util/InputMismatchException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 44e464ddd92e3993ab414c8abdc09545 +guid: c2ce0baaafe636b0a966708a8e6eb15f MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/IntSummaryStatistics.cs b/Runtime/Java/Util/IntSummaryStatistics.cs index fe79f5a..5266664 100644 --- a/Runtime/Java/Util/IntSummaryStatistics.cs +++ b/Runtime/Java/Util/IntSummaryStatistics.cs @@ -37,7 +37,7 @@ public IntSummaryStatistics() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +74,7 @@ public void Accept(int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -88,7 +88,7 @@ public void Combine(global::Java.Util.IntSummaryStatistics other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -102,7 +102,7 @@ public long GetCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -116,7 +116,7 @@ public long GetSum() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -130,7 +130,7 @@ public int GetMin() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -144,7 +144,7 @@ public int GetMax() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -158,7 +158,7 @@ public double GetAverage() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId6, args_); } finally diff --git a/Runtime/Java/Util/IntSummaryStatistics.cs.meta b/Runtime/Java/Util/IntSummaryStatistics.cs.meta index b204439..4dce3cb 100644 --- a/Runtime/Java/Util/IntSummaryStatistics.cs.meta +++ b/Runtime/Java/Util/IntSummaryStatistics.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a191b29f3c863635bd851d95ecb0da71 +guid: aef09caf2322338e82b4f2e4e478a6e3 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/InvalidPropertiesFormatException.cs b/Runtime/Java/Util/InvalidPropertiesFormatException.cs index 6654601..c516215 100644 --- a/Runtime/Java/Util/InvalidPropertiesFormatException.cs +++ b/Runtime/Java/Util/InvalidPropertiesFormatException.cs @@ -25,7 +25,7 @@ public InvalidPropertiesFormatException(global::Java.Lang.Throwable cause) : bas try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = cause.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public InvalidPropertiesFormatException(global::System.String message) : base(In try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/InvalidPropertiesFormatException.cs.meta b/Runtime/Java/Util/InvalidPropertiesFormatException.cs.meta index da48fdc..2d948c5 100644 --- a/Runtime/Java/Util/InvalidPropertiesFormatException.cs.meta +++ b/Runtime/Java/Util/InvalidPropertiesFormatException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c5107ee8312e37c78233fb120d07d258 +guid: 5f899032fb4a35388dafa4a27e42e309 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Iterator.cs b/Runtime/Java/Util/Iterator.cs index 10d8860..5cb9b1b 100644 --- a/Runtime/Java/Util/Iterator.cs +++ b/Runtime/Java/Util/Iterator.cs @@ -6,152 +6,176 @@ namespace Java.Util { public interface Iterator : global::Google.LibraryWrapper.Java.JavaInterface where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Iterator + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + + static Iterator() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Iterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "remove", "()V"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "forEachRemaining", "(Ljava/util/function/Consumer;)V"); + } + + bool HasNext(); + + E Next(); - static AnonymousImplementation() + void Remove() + { + try { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Iterator"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasNext", "()Z"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "next", "()Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "remove", "()V"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "forEachRemaining", "(Ljava/util/function/Consumer;)V"); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId0, args_); } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + finally { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool HasNext() + void ForEachRemaining(global::Java.ExternalType.Java.Util.Function.Consumer action) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = action.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId1, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class Iterator + + public class IteratorAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Iterator where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; - public E Next() + static IteratorAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Iterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasNext", "()Z"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "next", "()Ljava/lang/Object;"); + } + + public IteratorAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of IteratorAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Remove() + public bool HasNext() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void ForEachRemaining(global::Java.ExternalType.Java.Util.Function.Consumer action) + public E Next() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = action.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(IteratorAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator IteratorAnonymousImplementation(IntPtr rawObject) + { + return new IteratorAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Iterator + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.Iterator") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class IteratorAnonymousImplementation - public abstract bool HasNext(); + public abstract class IteratorCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Iterator where E : class + { + public IteratorCallbackHelper() : base("java.util.Iterator") {} - public abstract E Next(); + public abstract bool HasNext(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract E Next(); + + public abstract void Remove(); + + public abstract void ForEachRemaining(global::Java.ExternalType.Java.Util.Function.Consumer action); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "hasNext" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasNext()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasNext()); } else if (methodName == "next" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Next()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Next()); } - return base.Invoke(methodName, args); + else if (methodName == "remove" && args.Length == 0) + { + Remove(); + return null; } - } // end class CallbackHelper - - bool HasNext(); - - E Next(); - } // end class Iterator + else if (methodName == "forEachRemaining" && args.Length == 1) + { + ForEachRemaining(new global::Java.ExternalType.Java.Util.Function.Consumer(((AndroidJavaObject) args[0]).GetRawObject())); + return null; + } + return base.Invoke(methodName, args); + } + } // end class IteratorCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Iterator.cs.meta b/Runtime/Java/Util/Iterator.cs.meta index 3c17042..7b29628 100644 --- a/Runtime/Java/Util/Iterator.cs.meta +++ b/Runtime/Java/Util/Iterator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 11e334f617fa3f51b3033709f7fe38b8 +guid: 2e32295351cc3a34a2edab5cadebdbc7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/LinkedHashMap.cs b/Runtime/Java/Util/LinkedHashMap.cs index aa78440..854c328 100644 --- a/Runtime/Java/Util/LinkedHashMap.cs +++ b/Runtime/Java/Util/LinkedHashMap.cs @@ -31,7 +31,12 @@ public LinkedHashMap(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -46,7 +51,7 @@ public LinkedHashMap(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -61,7 +66,7 @@ public LinkedHashMap() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -76,7 +81,7 @@ public LinkedHashMap(global::Java.Util.Map m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -91,7 +96,13 @@ public LinkedHashMap(int initialCapacity, float loadFactor, bool accessOrder) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }, new jvalue { z = accessOrder }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor }, + new jvalue { z = accessOrder } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/LinkedHashMap.cs.meta b/Runtime/Java/Util/LinkedHashMap.cs.meta index c559939..f6bdf64 100644 --- a/Runtime/Java/Util/LinkedHashMap.cs.meta +++ b/Runtime/Java/Util/LinkedHashMap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 40c16917e66d3723ad9e2948e25cec78 +guid: 74219c89f8663e6a9e949b9ede6a6869 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/LinkedHashSet.cs b/Runtime/Java/Util/LinkedHashSet.cs index 1085f1e..0f05b16 100644 --- a/Runtime/Java/Util/LinkedHashSet.cs +++ b/Runtime/Java/Util/LinkedHashSet.cs @@ -29,7 +29,12 @@ public LinkedHashSet(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -44,7 +49,7 @@ public LinkedHashSet(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -59,7 +64,7 @@ public LinkedHashSet() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +79,7 @@ public LinkedHashSet(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/LinkedHashSet.cs.meta b/Runtime/Java/Util/LinkedHashSet.cs.meta index 5b0f9dd..9f5b077 100644 --- a/Runtime/Java/Util/LinkedHashSet.cs.meta +++ b/Runtime/Java/Util/LinkedHashSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4092e98fac45323693d8885a2d0c6661 +guid: d2912da2a3c53cb2b75d6df5f93db317 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/LinkedList.cs b/Runtime/Java/Util/LinkedList.cs index 9e85f81..9320b14 100644 --- a/Runtime/Java/Util/LinkedList.cs +++ b/Runtime/Java/Util/LinkedList.cs @@ -73,7 +73,7 @@ public LinkedList() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -88,7 +88,7 @@ public LinkedList(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -125,7 +125,7 @@ public E GetFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); @@ -147,7 +147,7 @@ public E GetLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -169,7 +169,7 @@ public E RemoveFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); @@ -191,7 +191,7 @@ public E RemoveLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); @@ -213,7 +213,7 @@ public void AddFirst(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -227,7 +227,7 @@ public void AddLast(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -241,7 +241,7 @@ public E Peek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); @@ -263,7 +263,7 @@ public E Element() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); @@ -285,7 +285,7 @@ public E Poll() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); @@ -307,7 +307,7 @@ public E Remove() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -329,7 +329,7 @@ public bool Offer(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -343,7 +343,7 @@ public bool OfferFirst(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -357,7 +357,7 @@ public bool OfferLast(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -371,7 +371,7 @@ public E PeekFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); @@ -393,7 +393,7 @@ public E PeekLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); @@ -415,7 +415,7 @@ public E PollFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); @@ -437,7 +437,7 @@ public E PollLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); @@ -459,7 +459,7 @@ public void Push(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -473,7 +473,7 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); @@ -495,7 +495,7 @@ public bool RemoveFirstOccurrence(global::Google.LibraryWrapper.Java.JavaObject try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -509,7 +509,7 @@ public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -523,8 +523,8 @@ public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally { @@ -537,7 +537,7 @@ public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } finally @@ -551,8 +551,8 @@ public bool RemoveLastOccurrence(global::Google.LibraryWrapper.Java.JavaObject o try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); } finally { diff --git a/Runtime/Java/Util/LinkedList.cs.meta b/Runtime/Java/Util/LinkedList.cs.meta index bcbc594..997e78b 100644 --- a/Runtime/Java/Util/LinkedList.cs.meta +++ b/Runtime/Java/Util/LinkedList.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d656f2398e9a338d9eb7053ecaf1e518 +guid: 32e9e1ef2d1237b69366d6ecc385b978 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/List.cs b/Runtime/Java/Util/List.cs index d9e66a3..244ca5f 100644 --- a/Runtime/Java/Util/List.cs +++ b/Runtime/Java/Util/List.cs @@ -6,664 +6,714 @@ namespace Java.Util { public interface List : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Collection where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.List - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - private static readonly IntPtr _cachedMethodId25; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/List"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "addAll", "(ILjava/util/Collection;)Z"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "replaceAll", "(Ljava/util/function/UnaryOperator;)V"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "sort", "(Ljava/util/Comparator;)V"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "get", "(I)Ljava/lang/Object;"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "set", "(ILjava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "add", "(ILjava/lang/Object;)V"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "remove", "(I)Ljava/lang/Object;"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "indexOf", "(Ljava/lang/Object;)I"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "lastIndexOf", "(Ljava/lang/Object;)I"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "listIterator", "()Ljava/util/ListIterator;"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "listIterator", "(I)Ljava/util/ListIterator;"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "subList", "(II)Ljava/util/List;"); - _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + + static List() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/List"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "replaceAll", "(Ljava/util/function/UnaryOperator;)V"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "sort", "(Ljava/util/Comparator;)V"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + } + + bool AddAll(int index, global::Java.Util.Collection c); + + E Get(int index); + + E Set(int index, E element); - public int Size() + void Add(int index, E element); + + E Remove(int index); + + int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + + int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + + global::Java.Util.ListIterator ListIterator(); + + global::Java.Util.ListIterator ListIterator(int index); + + global::Java.Util.List SubList(int fromIndex, int toIndex); + + void ReplaceAll(global::Java.ExternalType.Java.Util.Function.UnaryOperator @operator) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = @operator.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId0, args_); } - - public bool IsEmpty() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + void Sort(global::Java.Util.Comparator c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId1, args_); } - - public global::Java.Util.Iterator Iterator() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Add(E e) + global::Java.ExternalType.Java.Util.Spliterator Spliterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId2, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + } // end class List - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public class ListAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.List where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + private static readonly IntPtr _cachedMethodId19; + private static readonly IntPtr _cachedMethodId20; + private static readonly IntPtr _cachedMethodId21; + private static readonly IntPtr _cachedMethodId22; + + static ListAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/List"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "addAll", "(ILjava/util/Collection;)Z"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "get", "(I)Ljava/lang/Object;"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "set", "(ILjava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "add", "(ILjava/lang/Object;)V"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "remove", "(I)Ljava/lang/Object;"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "indexOf", "(Ljava/lang/Object;)I"); + _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "lastIndexOf", "(Ljava/lang/Object;)I"); + _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "listIterator", "()Ljava/util/ListIterator;"); + _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "listIterator", "(I)Ljava/util/ListIterator;"); + _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "subList", "(II)Ljava/util/List;"); + } + + public ListAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); - } - finally + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ListAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool ContainsAll(global::Java.Util.Collection c) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(global::Java.Util.Collection c) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(int index, global::Java.Util.Collection c) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RemoveAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void ReplaceAll(global::Java.ExternalType.Java.Util.Function.UnaryOperator @operator) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @operator.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Sort(global::Java.Util.Comparator c) + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Clear() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool AddAll(int index, global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + new jvalue { l = c.GetRawObject() } + }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int HashCode() + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Get(int index) + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E Set(int index, E element) + public void Clear() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, ToJvalue(element)}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Add(int index, E element) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }, ToJvalue(element)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId18, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Remove(int index) + public int HashCode() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId19, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o) + public E Get(int index) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId20, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o) + public E Set(int index, E element) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + ToJvalue(element) + }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId21, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.ListIterator ListIterator() + public void Add(int index, E element) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.ListIterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = index }, + ToJvalue(element) + }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.ListIterator ListIterator(int index) + public E Remove(int index) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; - return new global::Java.Util.ListIterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.List SubList(int fromIndex, int toIndex) + public int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = fromIndex }, new jvalue { i = toIndex }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId18, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.ExternalType.Java.Util.Spliterator Spliterator() + public int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId19, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public global::Java.Util.ListIterator ListIterator() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ListIteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public global::Java.Util.ListIterator ListIterator(int index) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; + return new global::Java.Util.ListIteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public global::Java.Util.List SubList(int fromIndex, int toIndex) + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = fromIndex }, + new jvalue { i = toIndex } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.List + public static explicit operator IntPtr(ListAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.List") {} + return wrapper.GetRawObject(); + } - public abstract int Size(); + public static explicit operator ListAnonymousImplementation(IntPtr rawObject) + { + return new ListAnonymousImplementation(rawObject); + } - public abstract bool IsEmpty(); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ListAnonymousImplementation - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract class ListCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.List where E : class + { + public ListCallbackHelper() : base("java.util.List") {} - public abstract global::Java.Util.Iterator Iterator(); + public abstract int Size(); - public abstract bool Add(E e); + public abstract bool IsEmpty(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract bool Add(E e); - public abstract bool AddAll(int index, global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool AddAll(int index, global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract bool RetainAll(global::Java.Util.Collection c); - public abstract E Get(int index); + public abstract void ReplaceAll(global::Java.ExternalType.Java.Util.Function.UnaryOperator @operator); - public abstract E Set(int index, E element); + public abstract void Sort(global::Java.Util.Comparator c); - public abstract void Add(int index, E element); + public abstract void Clear(); - public abstract E Remove(int index); + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract int HashCode(); - public abstract int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E Get(int index); - public abstract global::Java.Util.ListIterator ListIterator(); + public abstract E Set(int index, E element); - public abstract global::Java.Util.ListIterator ListIterator(int index); + public abstract void Add(int index, E element); - public abstract global::Java.Util.List SubList(int fromIndex, int toIndex); + public abstract E Remove(int index); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract global::Java.Util.ListIterator ListIterator(); + + public abstract global::Java.Util.ListIterator ListIterator(int index); + + public abstract global::Java.Util.List SubList(int fromIndex, int toIndex); + + public abstract global::Java.ExternalType.Java.Util.Spliterator Spliterator(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll((int) args[0], new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll((int) args[0], new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + } + else if (methodName == "replaceAll" && args.Length == 1) + { + ReplaceAll(new global::Java.ExternalType.Java.Util.Function.UnaryOperator(((AndroidJavaObject) args[0]).GetRawObject())); + return null; + } + else if (methodName == "sort" && args.Length == 1) + { + Sort(new global::Java.Util.ComparatorAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } else if (methodName == "get" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get((int) args[0])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get((int) args[0])); } else if (methodName == "set" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Set((int) args[0], args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Set((int) args[0], args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "add" && args.Length == 2) { - Add((int) args[0], args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject())); - return null; + Add((int) args[0], args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject())); + return null; } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove((int) args[0])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove((int) args[0])); } else if (methodName == "indexOf" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IndexOf(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IndexOf(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "lastIndexOf" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastIndexOf(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastIndexOf(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "listIterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ListIterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ListIterator()); } else if (methodName == "listIterator" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ListIterator((int) args[0])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ListIterator((int) args[0])); } else if (methodName == "subList" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubList((int) args[0], (int) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubList((int) args[0], (int) args[1])); } - return base.Invoke(methodName, args); + else if (methodName == "spliterator" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Spliterator()); } - } // end class CallbackHelper - - bool AddAll(int index, global::Java.Util.Collection c); - - E Get(int index); - - E Set(int index, E element); - - void Add(int index, E element); - - E Remove(int index); - - int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o); - - int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o); - - global::Java.Util.ListIterator ListIterator(); - - global::Java.Util.ListIterator ListIterator(int index); - - global::Java.Util.List SubList(int fromIndex, int toIndex); - } // end class List + return base.Invoke(methodName, args); + } + } // end class ListCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/List.cs.meta b/Runtime/Java/Util/List.cs.meta index 1ce8d93..a493ab1 100644 --- a/Runtime/Java/Util/List.cs.meta +++ b/Runtime/Java/Util/List.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 11258dfc6c1936f490f26cc9ea9adc6b +guid: 87b89174c04631128286c8268a375723 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ListIterator.cs b/Runtime/Java/Util/ListIterator.cs index 9528de6..8f45e92 100644 --- a/Runtime/Java/Util/ListIterator.cs +++ b/Runtime/Java/Util/ListIterator.cs @@ -6,295 +6,305 @@ namespace Java.Util { public interface ListIterator : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Iterator where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.ListIterator + private static readonly IntPtr _classObject; + + static ListIterator() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/ListIterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + bool HasPrevious(); + + E Previous(); + + int NextIndex(); + + int PreviousIndex(); + + void Remove(); + + void Set(E e); + + void Add(E e); + } // end class ListIterator + + public class ListIteratorAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.ListIterator where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + + static ListIteratorAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/ListIterator"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasNext", "()Z"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "next", "()Ljava/lang/Object;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "hasPrevious", "()Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "previous", "()Ljava/lang/Object;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "nextIndex", "()I"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "previousIndex", "()I"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "remove", "()V"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "set", "(Ljava/lang/Object;)V"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)V"); + } + + public ListIteratorAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - - static AnonymousImplementation() + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/ListIterator"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "hasNext", "()Z"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "next", "()Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "hasPrevious", "()Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "previous", "()Ljava/lang/Object;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "nextIndex", "()I"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "previousIndex", "()I"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "remove", "()V"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "set", "(Ljava/lang/Object;)V"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)V"); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ListIteratorAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public bool HasNext() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Next() + public bool HasNext() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); } - - public bool HasPrevious() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Previous() + public E Next() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } - - public int NextIndex() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int PreviousIndex() + public bool HasPrevious() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Remove() + public E Previous() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Set(E e) + public int NextIndex() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Add(E e) + public int PreviousIndex() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Remove() + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void Set(E e) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public void Add(E e) + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.ListIterator + public static explicit operator IntPtr(ListIteratorAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.ListIterator") {} + return wrapper.GetRawObject(); + } - public abstract bool HasNext(); + public static explicit operator ListIteratorAnonymousImplementation(IntPtr rawObject) + { + return new ListIteratorAnonymousImplementation(rawObject); + } - public abstract E Next(); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ListIteratorAnonymousImplementation - public abstract bool HasPrevious(); + public abstract class ListIteratorCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.ListIterator where E : class + { + public ListIteratorCallbackHelper() : base("java.util.ListIterator") {} - public abstract E Previous(); + public abstract bool HasNext(); - public abstract int NextIndex(); + public abstract E Next(); - public abstract int PreviousIndex(); + public abstract bool HasPrevious(); - public abstract void Remove(); + public abstract E Previous(); - public abstract void Set(E e); + public abstract int NextIndex(); - public abstract void Add(E e); + public abstract int PreviousIndex(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract void Remove(); + + public abstract void Set(E e); + + public abstract void Add(E e); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "hasNext" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasNext()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasNext()); } else if (methodName == "next" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Next()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Next()); } else if (methodName == "hasPrevious" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasPrevious()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HasPrevious()); } else if (methodName == "previous" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Previous()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Previous()); } else if (methodName == "nextIndex" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NextIndex()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NextIndex()); } else if (methodName == "previousIndex" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PreviousIndex()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PreviousIndex()); } else if (methodName == "remove" && args.Length == 0) { - Remove(); - return null; + Remove(); + return null; } else if (methodName == "set" && args.Length == 1) { - Set(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + Set(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "add" && args.Length == 1) { - Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - bool HasPrevious(); - - E Previous(); - - int NextIndex(); - - int PreviousIndex(); - - void Remove(); - - void Set(E e); - - void Add(E e); - } // end class ListIterator + } + } // end class ListIteratorCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/ListIterator.cs.meta b/Runtime/Java/Util/ListIterator.cs.meta index 23a7028..260e66b 100644 --- a/Runtime/Java/Util/ListIterator.cs.meta +++ b/Runtime/Java/Util/ListIterator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 21c17658dcbf3444bc8aa70d4f1ea7e1 +guid: a0c0ff2315ce3b28a1454381297c701a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ListResourceBundle.cs b/Runtime/Java/Util/ListResourceBundle.cs index 44d16e9..703b31b 100644 --- a/Runtime/Java/Util/ListResourceBundle.cs +++ b/Runtime/Java/Util/ListResourceBundle.cs @@ -25,7 +25,7 @@ public ListResourceBundle() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public ListResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Util/ListResourceBundle.cs.meta b/Runtime/Java/Util/ListResourceBundle.cs.meta index cb3f18b..053e046 100644 --- a/Runtime/Java/Util/ListResourceBundle.cs.meta +++ b/Runtime/Java/Util/ListResourceBundle.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 66342919fc44312ca37fda514326a0c8 +guid: c59f6675df1332f89b42d099f9671a3d MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Locale.cs b/Runtime/Java/Util/Locale.cs index dc6e098..f079d0b 100644 --- a/Runtime/Java/Util/Locale.cs +++ b/Runtime/Java/Util/Locale.cs @@ -51,7 +51,7 @@ public Builder() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -88,7 +88,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -102,7 +102,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(languageTag) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(languageTag) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -116,7 +116,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(language) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(language) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -130,7 +130,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(script) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(script) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -144,7 +144,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(region) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(region) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally @@ -158,7 +158,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(variant) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(variant) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -172,7 +172,12 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = key }, new jvalue { l = AndroidJNI.NewString(value) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { c = key }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(value) } + }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally @@ -186,7 +191,12 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }, new jvalue { l = AndroidJNI.NewString(type) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(type) } + }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -200,7 +210,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(attribute) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(attribute) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally @@ -214,7 +224,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(attribute) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(attribute) } }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally @@ -228,7 +238,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } finally @@ -242,7 +252,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale.Builder(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally @@ -256,7 +266,7 @@ public Builder(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -285,7 +295,10 @@ public class Category : global::Java.Lang.Enum new global::Java.Util.Locale.Category(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.Locale.Category(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -295,7 +308,10 @@ public class Category : global::Java.Lang.Enum new global::Java.Util.Locale.Category(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Util.Locale.Category(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -347,7 +363,7 @@ public Category(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Util.Locale.Category(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -376,7 +392,10 @@ public class FilteringMode : global::Java.Lang.Enum new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -386,7 +405,10 @@ public class FilteringMode : global::Java.Lang.Enum new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -396,7 +418,10 @@ public class FilteringMode : global::Java.Lang.Enum new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -406,7 +431,10 @@ public class FilteringMode : global::Java.Lang.Enum new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + get + { + return new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -416,7 +444,10 @@ public class FilteringMode : global::Java.Lang.Enum new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Util.Locale.FilteringMode(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -474,7 +505,7 @@ public FilteringMode(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Util.Locale.FilteringMode(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -503,13 +534,25 @@ public class LanguageRange : global::Google.LibraryWrapper.Java.JavaObject { public static double MAX_WEIGHT { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId0, value); + } } public static double MIN_WEIGHT { - get => AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticDoubleField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticDoubleField(_classObject, _cachedFieldId1, value); + } } private static readonly IntPtr _classObject; @@ -549,7 +592,7 @@ public LanguageRange(global::System.String range) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(range) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(range) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -564,7 +607,12 @@ public LanguageRange(global::System.String range, double weight) : base(IntPtr.Z try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(range) }, new jvalue { d = weight }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(range) }, + new jvalue { d = weight } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -601,7 +649,7 @@ public LanguageRange(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -615,7 +663,7 @@ public double GetWeight() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -629,8 +677,8 @@ public double GetWeight() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(ranges) }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ranges) } }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally { @@ -643,8 +691,13 @@ public double GetWeight() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(ranges) }, new jvalue { l = map.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ranges) }, + new jvalue { l = map.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally { @@ -657,8 +710,13 @@ public double GetWeight() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = map.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = map.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally { @@ -671,7 +729,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -685,7 +743,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -712,7 +770,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) public static global::Java.Util.Locale ENGLISH { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -722,7 +783,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale FRENCH { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -732,7 +796,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale GERMAN { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -742,7 +809,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale ITALIAN { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId3)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -752,7 +822,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale JAPANESE { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId4)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -762,7 +835,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale KOREAN { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId5)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -772,7 +848,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale CHINESE { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId6)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -782,7 +861,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale SIMPLIFIED_CHINESE { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId7)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -792,7 +874,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale TRADITIONAL_CHINESE { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId8)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -802,7 +887,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale FRANCE { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId9)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -812,7 +900,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale GERMANY { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId10)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -822,7 +913,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale ITALY { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId11)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -832,7 +926,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale JAPAN { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId12)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -842,7 +939,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale KOREA { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId13)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -852,7 +952,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale CHINA { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId14)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -862,7 +965,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale PRC { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId15)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -872,7 +978,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale TAIWAN { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId16)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -882,7 +991,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale UK { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId17)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -892,7 +1004,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale US { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId18)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -902,7 +1017,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale CANADA { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId19)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -912,7 +1030,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale CANADA_FRENCH { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId20)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -922,7 +1043,10 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static global::Java.Util.Locale ROOT { - get => new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + get + { + return new global::Java.Util.Locale(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId21)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -932,13 +1056,25 @@ public static explicit operator LanguageRange(IntPtr rawObject) } public static char PRIVATE_USE_EXTENSION { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId22); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId22, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId22); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId22, value); + } } public static char UNICODE_LOCALE_EXTENSION { - get => AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId23); - set => AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId23, value); + get + { + return AndroidJNI.GetStaticCharField(_classObject, _cachedFieldId23); + } + set + { + AndroidJNI.SetStaticCharField(_classObject, _cachedFieldId23, value); + } } private static readonly IntPtr _classObject; @@ -1086,7 +1222,13 @@ public Locale(global::System.String language, global::System.String country, glo try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(language) }, new jvalue { l = AndroidJNI.NewString(country) }, new jvalue { l = AndroidJNI.NewString(variant) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(language) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(country) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(variant) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -1101,7 +1243,12 @@ public Locale(global::System.String language, global::System.String country) : b try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(language) }, new jvalue { l = AndroidJNI.NewString(country) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(language) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(country) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -1116,7 +1263,7 @@ public Locale(global::System.String language) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(language) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(language) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -1153,7 +1300,7 @@ public Locale(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -1167,7 +1314,7 @@ public Locale(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = category.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = category.GetRawObject() } }; return new global::Java.Util.Locale(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -1181,7 +1328,7 @@ public static void SetDefault(global::Java.Util.Locale newLocale) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = newLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = newLocale.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId2, args_); } finally @@ -1195,7 +1342,12 @@ public static void SetDefault(global::Java.Util.Locale.Category category, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = category.GetRawObject() }, new jvalue { l = newLocale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = category.GetRawObject() }, + new jvalue { l = newLocale.GetRawObject() } + }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId3, args_); } finally @@ -1209,7 +1361,7 @@ public static void SetDefault(global::Java.Util.Locale.Category category, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -1223,7 +1375,7 @@ public static void SetDefault(global::Java.Util.Locale.Category category, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -1237,7 +1389,7 @@ public static void SetDefault(global::Java.Util.Locale.Category category, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -1251,7 +1403,7 @@ public static void SetDefault(global::Java.Util.Locale.Category category, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -1265,7 +1417,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -1279,7 +1431,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally @@ -1293,7 +1445,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { c = key }}; + jvalue[] args_ = new jvalue[] { new jvalue { c = key } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -1307,8 +1459,8 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally { @@ -1321,8 +1473,8 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally { @@ -1335,7 +1487,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -1349,8 +1501,8 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally { @@ -1363,7 +1515,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -1377,7 +1529,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(languageTag) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(languageTag) } }; return new global::Java.Util.Locale(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId16, args_)); } finally @@ -1391,7 +1543,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -1405,7 +1557,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -1419,7 +1571,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -1433,7 +1585,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inLocale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -1447,7 +1599,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId21, args_); } finally @@ -1461,7 +1613,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inLocale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId22, args_); } finally @@ -1475,7 +1627,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); } finally @@ -1489,7 +1641,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inLocale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId24, args_); } finally @@ -1503,7 +1655,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -1517,7 +1669,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inLocale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId26, args_); } finally @@ -1531,7 +1683,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId27, args_); } finally @@ -1545,7 +1697,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inLocale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inLocale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId28, args_); } finally @@ -1559,7 +1711,7 @@ public bool HasExtensions() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId29, args_)); } finally @@ -1573,7 +1725,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId30, args_); } finally @@ -1587,7 +1739,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId31, args_); } finally @@ -1601,8 +1753,14 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = locales.GetRawObject() }, new jvalue { l = mode.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId32, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = locales.GetRawObject() }, + new jvalue { l = mode.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId32, args_)); } finally { @@ -1615,8 +1773,13 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = locales.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId33, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = locales.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId33, args_)); } finally { @@ -1629,8 +1792,14 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = tags.GetRawObject() }, new jvalue { l = mode.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId34, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = tags.GetRawObject() }, + new jvalue { l = mode.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId34, args_)); } finally { @@ -1643,8 +1812,13 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = tags.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId35, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = tags.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId35, args_)); } finally { @@ -1657,7 +1831,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = locales.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = locales.GetRawObject() } + }; return new global::Java.Util.Locale(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId36, args_)); } finally @@ -1671,7 +1850,12 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = priorityList.GetRawObject() }, new jvalue { l = tags.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = priorityList.GetRawObject() }, + new jvalue { l = tags.GetRawObject() } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId37, args_); } finally diff --git a/Runtime/Java/Util/Locale.cs.meta b/Runtime/Java/Util/Locale.cs.meta index 07dee8c..a049c72 100644 --- a/Runtime/Java/Util/Locale.cs.meta +++ b/Runtime/Java/Util/Locale.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2dbb336078da3abda8175e6a06bbe9b7 +guid: b325fe6d25a4335881d43edb1e56b7dc MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/LongSummaryStatistics.cs b/Runtime/Java/Util/LongSummaryStatistics.cs index fd089bc..6b7d7bd 100644 --- a/Runtime/Java/Util/LongSummaryStatistics.cs +++ b/Runtime/Java/Util/LongSummaryStatistics.cs @@ -39,7 +39,7 @@ public LongSummaryStatistics() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -76,7 +76,7 @@ public void Accept(int value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -90,7 +90,7 @@ public void Accept(long value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -104,7 +104,7 @@ public void Combine(global::Java.Util.LongSummaryStatistics other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -118,7 +118,7 @@ public long GetCount() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -132,7 +132,7 @@ public long GetSum() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -146,7 +146,7 @@ public long GetMin() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -160,7 +160,7 @@ public long GetMax() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -174,7 +174,7 @@ public double GetAverage() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId7, args_); } finally diff --git a/Runtime/Java/Util/LongSummaryStatistics.cs.meta b/Runtime/Java/Util/LongSummaryStatistics.cs.meta index f92b6a2..0e99f18 100644 --- a/Runtime/Java/Util/LongSummaryStatistics.cs.meta +++ b/Runtime/Java/Util/LongSummaryStatistics.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e84000e33f503c15ad11ffdf55c08c93 +guid: 29f453f5d331374bbc13c8d3168271ef MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Map.cs b/Runtime/Java/Util/Map.cs index 472ae97..351ba1d 100644 --- a/Runtime/Java/Util/Map.cs +++ b/Runtime/Java/Util/Map.cs @@ -6,357 +6,43 @@ namespace Java.Util { public static class Map { - public interface Entry : global::Google.LibraryWrapper.Java.JavaInterface where K2 : class where V2 : class - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Map$Entry"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "getKey", "()Ljava/lang/Object;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "getValue", "()Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "setValue", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - _cachedMethodId5 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByKey", "()Ljava/util/Comparator;"); - _cachedMethodId6 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByValue", "()Ljava/util/Comparator;"); - _cachedMethodId7 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByKey", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); - _cachedMethodId8 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByValue", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public K2 GetKey() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K2) == typeof(global::System.String)) - { - return (K2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public V2 GetValue() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(V2) == typeof(global::System.String)) - { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public V2 SetValue(V2 value) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; - if (typeof(V2) == typeof(global::System.String)) - { - return (V2) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public int HashCode() - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static global::Java.Util.Comparator> ComparingByKey() where K3 : class, global::Java.ExternalType.Java.Lang.Comparable where V3 : class - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator>.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static global::Java.Util.Comparator> ComparingByValue() where K3 : class where V3 : class, global::Java.ExternalType.Java.Lang.Comparable - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator>.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static global::Java.Util.Comparator> ComparingByKey(global::Java.Util.Comparator cmp) where K3 : class where V3 : class - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cmp.GetRawObject() }}; - return new global::Java.Util.Comparator>.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static global::Java.Util.Comparator> ComparingByValue(global::Java.Util.Comparator cmp) where K3 : class where V3 : class - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = cmp.GetRawObject() }}; - return new global::Java.Util.Comparator>.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) - { - return wrapper.GetRawObject(); - } - - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } - - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation - - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Map.Entry - { - public CallbackHelper() : base("java.util.Map$Entry") {} - - public abstract K2 GetKey(); - - public abstract V2 GetValue(); - - public abstract V2 SetValue(V2 value); - - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - - public abstract int HashCode(); - - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { - if (methodName == "getKey" && args.Length == 0) - { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetKey()); - } - else if (methodName == "getValue" && args.Length == 0) - { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetValue()); - } - else if (methodName == "setValue" && args.Length == 1) - { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SetValue(args[0] is global::System.String ? (V2) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); - } - else if (methodName == "equals" && args.Length == 1) - { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); - } - else if (methodName == "hashCode" && args.Length == 0) - { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); - } - return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - K2 GetKey(); - - V2 GetValue(); - - V2 SetValue(V2 value); - - bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - - int HashCode(); - } // end class Entry - - } // end class Map - public interface Map : global::Google.LibraryWrapper.Java.JavaInterface where K : class where V : class - { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map + public interface Entry : global::Google.LibraryWrapper.Java.JavaInterface where K : class where V : class { private static readonly IntPtr _classObject; private static readonly IntPtr _cachedMethodId0; private static readonly IntPtr _cachedMethodId1; private static readonly IntPtr _cachedMethodId2; private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - - static AnonymousImplementation() + + static Entry() { AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Map"); + IntPtr classObject = AndroidJNI.FindClass("java/util/Map$Entry"); _classObject = AndroidJNI.NewGlobalRef(classObject); AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "getOrDefault", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "forEach", "(Ljava/util/function/BiConsumer;)V"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "replaceAll", "(Ljava/util/function/BiFunction;)V"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "putIfAbsent", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "replace", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "replace", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "computeIfAbsent", "(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "computeIfPresent", "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "compute", "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "merge", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + _cachedMethodId0 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByKey", "()Ljava/util/Comparator;"); + _cachedMethodId1 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByValue", "()Ljava/util/Comparator;"); + _cachedMethodId2 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByKey", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); + _cachedMethodId3 = AndroidJNI.GetStaticMethodID(_classObject, "comparingByValue", "(Ljava/util/Comparator;)Ljava/util/Comparator;"); + } + + K GetKey(); + + V GetValue(); + + V SetValue(V value); + + bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + int HashCode(); + + static global::Java.Util.Comparator> ComparingByKey() where K2 : class, global::Java.ExternalType.Java.Lang.Comparable where V2 : class { - if (rawObject == IntPtr.Zero) - { - return; - } try { AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation>(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally { @@ -364,13 +50,13 @@ public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) } } - public int Size() + static global::Java.Util.Comparator> ComparingByValue() where K2 : class where V2 : class, global::Java.ExternalType.Java.Lang.Comparable { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation>(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally { @@ -378,13 +64,13 @@ public int Size() } } - public bool IsEmpty() + static global::Java.Util.Comparator> ComparingByKey(global::Java.Util.Comparator cmp) where K2 : class where V2 : class { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); + jvalue[] args_ = new jvalue[] { new jvalue { l = cmp.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation>(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally { @@ -392,27 +78,58 @@ public bool IsEmpty() } } - public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + static global::Java.Util.Comparator> ComparingByValue(global::Java.Util.Comparator cmp) where K2 : class where V2 : class { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); + jvalue[] args_ = new jvalue[] { new jvalue { l = cmp.GetRawObject() } }; + return new global::Java.Util.ComparatorAnonymousImplementation>(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally { AndroidJNI.PopLocalFrame(IntPtr.Zero); } } + } // end class Entry + + public class EntryAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map.Entry where K : class where V : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + + static EntryAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Map$Entry"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "getKey", "()Ljava/lang/Object;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "getValue", "()Ljava/lang/Object;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "setValue", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } - public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + public EntryAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) { + if (rawObject == IntPtr.Zero) + { + return; + } try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) + { + throw new ArgumentException("The provided reference is not an instance of EntryAnonymousImplementation."); + } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } finally { @@ -420,20 +137,20 @@ public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) } } - public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + public K GetKey() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } else { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } finally @@ -442,19 +159,19 @@ public V Get(global::Google.LibraryWrapper.Java.JavaObject key) } } - public V Put(K key, V value) + public V GetValue() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = new jvalue[] { }; if (typeof(V) == typeof(global::System.String)) { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } else { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } @@ -464,19 +181,19 @@ public V Put(K key, V value) } } - public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + public V SetValue(V value) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; if (typeof(V) == typeof(global::System.String)) { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } else { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } @@ -486,13 +203,13 @@ public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) } } - public void PutAll(global::Java.Util.Map m) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally { @@ -500,13 +217,13 @@ public void PutAll(global::Java.Util.Map m) } } - public void Clear() + public int HashCode() { try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally { @@ -514,424 +231,847 @@ public void Clear() } } - public global::Java.Util.Set KeySet() + public static explicit operator IntPtr(EntryAnonymousImplementation wrapper) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return wrapper.GetRawObject(); } - public global::Java.Util.Collection Values() + public static explicit operator EntryAnonymousImplementation(IntPtr rawObject) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Collection.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return new EntryAnonymousImplementation(rawObject); } - public global::Java.Util.Set> EntrySet() + public new static IntPtr GetRawClass() { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set>.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return AndroidJNI.NewLocalRef(_classObject); } + } // end class EntryAnonymousImplementation - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public abstract class EntryCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Map.Entry where K : class where V : class + { + public EntryCallbackHelper() : base("java.util.Map$Entry") {} + + public abstract K GetKey(); + + public abstract V GetValue(); + + public abstract V SetValue(V value); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); - } - finally + if (methodName == "getKey" && args.Length == 0) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetKey()); } - } - - public int HashCode() - { - try + else if (methodName == "getValue" && args.Length == 0) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetValue()); } - finally + else if (methodName == "setValue" && args.Length == 1) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SetValue(args[0] is global::System.String ? (V) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } - } - - public V GetOrDefault(global::Google.LibraryWrapper.Java.JavaObject key, V defaultValue) - { - try + else if (methodName == "equals" && args.Length == 1) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }, ToJvalue(defaultValue)}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } - finally + else if (methodName == "hashCode" && args.Length == 0) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } + return base.Invoke(methodName, args); } + } // end class EntryCallbackHelper - public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer action) - { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = action.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + } // end class Map + public interface Map : global::Google.LibraryWrapper.Java.JavaInterface where K : class where V : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + + static Map() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Map"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "getOrDefault", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "forEach", "(Ljava/util/function/BiConsumer;)V"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "replaceAll", "(Ljava/util/function/BiFunction;)V"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "putIfAbsent", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "replace", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "replace", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "computeIfAbsent", "(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "computeIfPresent", "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "compute", "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "merge", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"); + } + + int Size(); + + bool IsEmpty(); + + bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); + + bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); + + V Get(global::Google.LibraryWrapper.Java.JavaObject key); + + V Put(K key, V value); + + V Remove(global::Google.LibraryWrapper.Java.JavaObject key); + + void PutAll(global::Java.Util.Map m); + + void Clear(); + + global::Java.Util.Set KeySet(); + + global::Java.Util.Collection Values(); + + global::Java.Util.Set> EntrySet(); + + bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + int HashCode(); + + V GetOrDefault(global::Google.LibraryWrapper.Java.JavaObject key, V defaultValue) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = key.GetRawObject() }, + ToJvalue(defaultValue) + }; + if (typeof(V) == typeof(global::System.String)) + { + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId0, args_); + } + else + { + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId0, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void ReplaceAll(global::Java.ExternalType.Java.Util.Function.BiFunction function) + void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer action) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = action.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId1, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + void ReplaceAll(global::Java.ExternalType.Java.Util.Function.BiFunction function) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = function.GetRawObject() } }; + AndroidJNI.CallVoidMethod(GetRawObject(), _cachedMethodId2, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + V PutIfAbsent(K key, V value) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = function.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId3, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId3, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V PutIfAbsent(K key, V value) + bool Remove(global::Google.LibraryWrapper.Java.JavaObject key, global::Google.LibraryWrapper.Java.JavaObject value) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = key.GetRawObject() }, + new jvalue { l = value.GetRawObject() } + }; + return AndroidJNI.CallBooleanMethod(GetRawObject(), _cachedMethodId4, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + bool Replace(K key, V oldValue, V newValue) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(oldValue), + ToJvalue(newValue) + }; + return AndroidJNI.CallBooleanMethod(GetRawObject(), _cachedMethodId5, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + V Replace(K key, V value) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId6, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId6, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject key, global::Google.LibraryWrapper.Java.JavaObject value) + V ComputeIfAbsent(K key, global::Java.ExternalType.Java.Util.Function.Function mappingFunction) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = mappingFunction.GetRawObject() } + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }, new jvalue { l = value.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId7, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId7, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Replace(K key, V oldValue, V newValue) + V ComputeIfPresent(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = remappingFunction.GetRawObject() } + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(oldValue), ToJvalue(newValue)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId8, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId8, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Replace(K key, V value) + V Compute(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + new jvalue { l = remappingFunction.GetRawObject() } + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId20, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId9, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId9, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V ComputeIfAbsent(K key, global::Java.ExternalType.Java.Util.Function.Function mappingFunction) + V Merge(K key, V value, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value), + new jvalue { l = remappingFunction.GetRawObject() } + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = mappingFunction.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId21, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (V) (global::System.Object) AndroidJNI.CallStringMethod(GetRawObject(), _cachedMethodId10, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId10, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + } // end class Map - public V ComputeIfPresent(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + public class MapAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Map where K : class where V : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + + static MapAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Map"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public MapAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try + return; + } + try + { + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = remappingFunction.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId22, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + throw new ArgumentException("The provided reference is not an instance of MapAnonymousImplementation."); } - finally + _rawObject = AndroidJNI.NewGlobalRef(rawObject); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public int Size() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public bool IsEmpty() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); + } + else + { + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Compute(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + public V Put(K key, V value) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), new jvalue { l = remappingFunction.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Merge(K key, V value, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction) + public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value), new jvalue { l = remappingFunction.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId24, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void PutAll(global::Java.Util.Map m) + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void Clear() + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public global::Java.Util.Set KeySet() + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public global::Java.Util.Collection Values() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.CollectionAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public global::Java.Util.Set> EntrySet() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation>(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Map + public int HashCode() { - public CallbackHelper() : base("java.util.Map") {} + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public abstract int Size(); + public static explicit operator IntPtr(MapAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public abstract bool IsEmpty(); + public static explicit operator MapAnonymousImplementation(IntPtr rawObject) + { + return new MapAnonymousImplementation(rawObject); + } - public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class MapAnonymousImplementation - public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); + public abstract class MapCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Map where K : class where V : class + { + public MapCallbackHelper() : base("java.util.Map") {} - public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract int Size(); - public abstract V Put(K key, V value); + public abstract bool IsEmpty(); - public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract void PutAll(global::Java.Util.Map m); + public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); - public abstract void Clear(); + public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract global::Java.Util.Set KeySet(); + public abstract V Put(K key, V value); - public abstract global::Java.Util.Collection Values(); + public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract global::Java.Util.Set> EntrySet(); + public abstract void PutAll(global::Java.Util.Map m); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract void Clear(); - public abstract int HashCode(); + public abstract global::Java.Util.Set KeySet(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract global::Java.Util.Collection Values(); + + public abstract global::Java.Util.Set> EntrySet(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public abstract V GetOrDefault(global::Google.LibraryWrapper.Java.JavaObject key, V defaultValue); + + public abstract void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer action); + + public abstract void ReplaceAll(global::Java.ExternalType.Java.Util.Function.BiFunction function); + + public abstract V PutIfAbsent(K key, V value); + + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject key, global::Google.LibraryWrapper.Java.JavaObject value); + + public abstract bool Replace(K key, V oldValue, V newValue); + + public abstract V Replace(K key, V value); + + public abstract V ComputeIfAbsent(K key, global::Java.ExternalType.Java.Util.Function.Function mappingFunction); + + public abstract V ComputeIfPresent(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction); + + public abstract V Compute(K key, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction); + + public abstract V Merge(K key, V value, global::Java.ExternalType.Java.Util.Function.BiFunction remappingFunction); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "containsKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsValue" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "get" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "put" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "putAll" && args.Length == 1) { - PutAll(new global::Java.Util.Map.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + PutAll(new global::Java.Util.MapAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "keySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); } else if (methodName == "values" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); } else if (methodName == "entrySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } - return base.Invoke(methodName, args); + else if (methodName == "getOrDefault" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(GetOrDefault(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } - } // end class CallbackHelper - - int Size(); - - bool IsEmpty(); - - bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); - - bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); - - V Get(global::Google.LibraryWrapper.Java.JavaObject key); - - V Put(K key, V value); - - V Remove(global::Google.LibraryWrapper.Java.JavaObject key); - - void PutAll(global::Java.Util.Map m); - - void Clear(); - - global::Java.Util.Set KeySet(); - - global::Java.Util.Collection Values(); - - global::Java.Util.Set> EntrySet(); - - bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - - int HashCode(); - } // end class Map + else if (methodName == "forEach" && args.Length == 1) + { + ForEach(new global::Java.ExternalType.Java.Util.Function.BiConsumer(((AndroidJavaObject) args[0]).GetRawObject())); + return null; + } + else if (methodName == "replaceAll" && args.Length == 1) + { + ReplaceAll(new global::Java.ExternalType.Java.Util.Function.BiFunction(((AndroidJavaObject) args[0]).GetRawObject())); + return null; + } + else if (methodName == "putIfAbsent" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PutIfAbsent(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "remove" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()), new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "replace" && args.Length == 3) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Replace(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()), args[2] is global::System.String ? (V) (global::System.Object) args[2] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[2]).GetRawObject()))); + } + else if (methodName == "replace" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Replace(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "computeIfAbsent" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ComputeIfAbsent(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), new global::Java.ExternalType.Java.Util.Function.Function(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "computeIfPresent" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ComputeIfPresent(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), new global::Java.ExternalType.Java.Util.Function.BiFunction(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "compute" && args.Length == 2) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Compute(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), new global::Java.ExternalType.Java.Util.Function.BiFunction(((AndroidJavaObject) args[1]).GetRawObject()))); + } + else if (methodName == "merge" && args.Length == 3) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Merge(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()), new global::Java.ExternalType.Java.Util.Function.BiFunction(((AndroidJavaObject) args[2]).GetRawObject()))); + } + return base.Invoke(methodName, args); + } + } // end class MapCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Map.cs.meta b/Runtime/Java/Util/Map.cs.meta index 8c5a565..d0104bb 100644 --- a/Runtime/Java/Util/Map.cs.meta +++ b/Runtime/Java/Util/Map.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: be6494dff5dd3ff690887bbd9d0ee6a6 +guid: ce0764b808053839b744b1b4835a5d43 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/MissingFormatArgumentException.cs b/Runtime/Java/Util/MissingFormatArgumentException.cs index ae70c90..949c7cf 100644 --- a/Runtime/Java/Util/MissingFormatArgumentException.cs +++ b/Runtime/Java/Util/MissingFormatArgumentException.cs @@ -25,7 +25,7 @@ public MissingFormatArgumentException(global::System.String s) : base(IntPtr.Zer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public MissingFormatArgumentException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/MissingFormatArgumentException.cs.meta b/Runtime/Java/Util/MissingFormatArgumentException.cs.meta index 2ef4188..0ad643b 100644 --- a/Runtime/Java/Util/MissingFormatArgumentException.cs.meta +++ b/Runtime/Java/Util/MissingFormatArgumentException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 02ccfdb7d4883cfea8b75fd69bc4d61c +guid: e120cf0052ba3eb882633ce24525d313 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/MissingFormatWidthException.cs b/Runtime/Java/Util/MissingFormatWidthException.cs index 217728d..0337728 100644 --- a/Runtime/Java/Util/MissingFormatWidthException.cs +++ b/Runtime/Java/Util/MissingFormatWidthException.cs @@ -25,7 +25,7 @@ public MissingFormatWidthException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public MissingFormatWidthException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/MissingFormatWidthException.cs.meta b/Runtime/Java/Util/MissingFormatWidthException.cs.meta index 040c354..351f4cb 100644 --- a/Runtime/Java/Util/MissingFormatWidthException.cs.meta +++ b/Runtime/Java/Util/MissingFormatWidthException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5b4d365cc68a33a5bd616a506dc91dcf +guid: 51f68ac134fb3324bdbacd03d74a44e6 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/MissingResourceException.cs b/Runtime/Java/Util/MissingResourceException.cs index be6f0be..879bb41 100644 --- a/Runtime/Java/Util/MissingResourceException.cs +++ b/Runtime/Java/Util/MissingResourceException.cs @@ -27,7 +27,13 @@ public MissingResourceException(global::System.String s, global::System.String c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }, new jvalue { l = AndroidJNI.NewString(className) }, new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(className) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -64,7 +70,7 @@ public MissingResourceException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -78,7 +84,7 @@ public MissingResourceException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } finally diff --git a/Runtime/Java/Util/MissingResourceException.cs.meta b/Runtime/Java/Util/MissingResourceException.cs.meta index 3aaabb4..aac3f3f 100644 --- a/Runtime/Java/Util/MissingResourceException.cs.meta +++ b/Runtime/Java/Util/MissingResourceException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a7cb52d494be311ca487d6c71a448a49 +guid: 95fd10767d8b38bc8b890e6aec080ed1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/NavigableMap.cs b/Runtime/Java/Util/NavigableMap.cs index 7991408..7b688cd 100644 --- a/Runtime/Java/Util/NavigableMap.cs +++ b/Runtime/Java/Util/NavigableMap.cs @@ -6,1010 +6,1047 @@ namespace Java.Util { public interface NavigableMap : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.SortedMap where K : class where V : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.NavigableMap - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - private static readonly IntPtr _cachedMethodId25; - private static readonly IntPtr _cachedMethodId26; - private static readonly IntPtr _cachedMethodId27; - private static readonly IntPtr _cachedMethodId28; - private static readonly IntPtr _cachedMethodId29; - private static readonly IntPtr _cachedMethodId30; - private static readonly IntPtr _cachedMethodId31; - private static readonly IntPtr _cachedMethodId32; - private static readonly IntPtr _cachedMethodId33; - private static readonly IntPtr _cachedMethodId34; - private static readonly IntPtr _cachedMethodId35; - private static readonly IntPtr _cachedMethodId36; - private static readonly IntPtr _cachedMethodId37; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableMap"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "lowerEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "lowerKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "floorEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "floorKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "ceilingEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "ceilingKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "higherEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "higherKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "firstEntry", "()Ljava/util/Map$Entry;"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "lastEntry", "()Ljava/util/Map$Entry;"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "pollFirstEntry", "()Ljava/util/Map$Entry;"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "pollLastEntry", "()Ljava/util/Map$Entry;"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "descendingMap", "()Ljava/util/NavigableMap;"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "navigableKeySet", "()Ljava/util/NavigableSet;"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "descendingKeySet", "()Ljava/util/NavigableSet;"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableMap;"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;Z)Ljava/util/NavigableMap;"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;Z)Ljava/util/NavigableMap;"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "firstKey", "()Ljava/lang/Object;"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "lastKey", "()Ljava/lang/Object;"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); - _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); - _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); - _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); - _cachedMethodId30 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); - _cachedMethodId31 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId32 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId33 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId34 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); - _cachedMethodId35 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId36 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId37 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + private static readonly IntPtr _classObject; + + static NavigableMap() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableMap"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + global::Java.Util.Map.Entry LowerEntry(K key); + + K LowerKey(K key); + + global::Java.Util.Map.Entry FloorEntry(K key); + + K FloorKey(K key); + + global::Java.Util.Map.Entry CeilingEntry(K key); + + K CeilingKey(K key); + + global::Java.Util.Map.Entry HigherEntry(K key); + + K HigherKey(K key); + + global::Java.Util.Map.Entry FirstEntry(); + + global::Java.Util.Map.Entry LastEntry(); + + global::Java.Util.Map.Entry PollFirstEntry(); + + global::Java.Util.Map.Entry PollLastEntry(); + + global::Java.Util.NavigableMap DescendingMap(); + + global::Java.Util.NavigableSet NavigableKeySet(); + + global::Java.Util.NavigableSet DescendingKeySet(); + + global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive); - public global::Java.Util.Map.Entry LowerEntry(K key) + global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive); + + global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive); + } // end class NavigableMap + + public class NavigableMapAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.NavigableMap where K : class where V : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + private static readonly IntPtr _cachedMethodId19; + private static readonly IntPtr _cachedMethodId20; + private static readonly IntPtr _cachedMethodId21; + private static readonly IntPtr _cachedMethodId22; + private static readonly IntPtr _cachedMethodId23; + private static readonly IntPtr _cachedMethodId24; + private static readonly IntPtr _cachedMethodId25; + private static readonly IntPtr _cachedMethodId26; + private static readonly IntPtr _cachedMethodId27; + private static readonly IntPtr _cachedMethodId28; + private static readonly IntPtr _cachedMethodId29; + private static readonly IntPtr _cachedMethodId30; + private static readonly IntPtr _cachedMethodId31; + private static readonly IntPtr _cachedMethodId32; + private static readonly IntPtr _cachedMethodId33; + private static readonly IntPtr _cachedMethodId34; + private static readonly IntPtr _cachedMethodId35; + private static readonly IntPtr _cachedMethodId36; + private static readonly IntPtr _cachedMethodId37; + + static NavigableMapAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableMap"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "lowerEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "lowerKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "floorEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "floorKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "ceilingEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "ceilingKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "higherEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "higherKey", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "firstEntry", "()Ljava/util/Map$Entry;"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "lastEntry", "()Ljava/util/Map$Entry;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "pollFirstEntry", "()Ljava/util/Map$Entry;"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "pollLastEntry", "()Ljava/util/Map$Entry;"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "descendingMap", "()Ljava/util/NavigableMap;"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "navigableKeySet", "()Ljava/util/NavigableSet;"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "descendingKeySet", "()Ljava/util/NavigableSet;"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableMap;"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;Z)Ljava/util/NavigableMap;"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;Z)Ljava/util/NavigableMap;"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); + _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "firstKey", "()Ljava/lang/Object;"); + _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "lastKey", "()Ljava/lang/Object;"); + _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); + _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); + _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); + _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); + _cachedMethodId30 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); + _cachedMethodId31 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId32 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId33 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId34 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); + _cachedMethodId35 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId36 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId37 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public NavigableMapAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public K LowerKey(K key) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of NavigableMapAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public global::Java.Util.Map.Entry FloorEntry(K key) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public K FloorKey(K key) + public global::Java.Util.Map.Entry LowerEntry(K key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Map.Entry CeilingEntry(K key) + public K LowerKey(K key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K CeilingKey(K key) + public global::Java.Util.Map.Entry FloorEntry(K key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Map.Entry HigherEntry(K key) + public K FloorKey(K key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K HigherKey(K key) + public global::Java.Util.Map.Entry CeilingEntry(K key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Map.Entry FirstEntry() + public K CeilingKey(K key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Map.Entry LastEntry() + public global::Java.Util.Map.Entry HigherEntry(K key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Map.Entry PollFirstEntry() + public K HigherKey(K key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Map.Entry PollLastEntry() + public global::Java.Util.Map.Entry FirstEntry() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.NavigableMap DescendingMap() + public global::Java.Util.Map.Entry LastEntry() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet NavigableKeySet() + public global::Java.Util.Map.Entry PollFirstEntry() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet DescendingKeySet() + public global::Java.Util.Map.Entry PollLastEntry() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive) + public global::Java.Util.NavigableMap DescendingMap() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), new jvalue { z = fromInclusive }, ToJvalue(toKey), new jvalue { z = toInclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive) + public global::Java.Util.NavigableSet NavigableKeySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toKey), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive) + public global::Java.Util.NavigableSet DescendingKeySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.SortedMap SubMap(K fromKey, K toKey) + public global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + new jvalue { z = fromInclusive }, + ToJvalue(toKey), + new jvalue { z = toInclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.SortedMap HeadMap(K toKey) + public global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(toKey), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.SortedMap TailMap(K fromKey) + public global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Comparator Comparator() + public global::Java.Util.SortedMap SubMap(K fromKey, K toKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + ToJvalue(toKey) + }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K FirstKey() + public global::Java.Util.SortedMap HeadMap(K toKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId22, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(toKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K LastKey() + public global::Java.Util.SortedMap TailMap(K fromKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(fromKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Set KeySet() + public global::Java.Util.Comparator Comparator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.Collection Values() + public K FirstKey() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Collection.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId22, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Set> EntrySet() + public K LastKey() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set>.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId26, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId23, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int Size() + public global::Java.Util.Set KeySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId27, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool IsEmpty() + public global::Java.Util.Collection Values() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.CollectionAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId25, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + public global::Java.Util.Set> EntrySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId29, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation>(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId26, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId30, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId27, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId31, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId31, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public V Put(K key, V value) + public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId32, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId32, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId29, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId33, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId33, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId30, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void PutAll(global::Java.Util.Map m) + public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId34, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId31, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId31, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Clear() + public V Put(K key, V value) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId35, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId32, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId32, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId36, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId33, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId33, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int HashCode() + public void PutAll(global::Java.Util.Map m) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId37, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId34, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId35, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId36, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId37, args_); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public static explicit operator IntPtr(NavigableMapAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.NavigableMap + public static explicit operator NavigableMapAnonymousImplementation(IntPtr rawObject) { - public CallbackHelper() : base("java.util.NavigableMap") {} + return new NavigableMapAnonymousImplementation(rawObject); + } - public abstract global::Java.Util.Map.Entry LowerEntry(K key); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class NavigableMapAnonymousImplementation - public abstract K LowerKey(K key); + public abstract class NavigableMapCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.NavigableMap where K : class where V : class + { + public NavigableMapCallbackHelper() : base("java.util.NavigableMap") {} - public abstract global::Java.Util.Map.Entry FloorEntry(K key); + public abstract global::Java.Util.Map.Entry LowerEntry(K key); - public abstract K FloorKey(K key); + public abstract K LowerKey(K key); - public abstract global::Java.Util.Map.Entry CeilingEntry(K key); + public abstract global::Java.Util.Map.Entry FloorEntry(K key); - public abstract K CeilingKey(K key); + public abstract K FloorKey(K key); - public abstract global::Java.Util.Map.Entry HigherEntry(K key); + public abstract global::Java.Util.Map.Entry CeilingEntry(K key); - public abstract K HigherKey(K key); + public abstract K CeilingKey(K key); - public abstract global::Java.Util.Map.Entry FirstEntry(); + public abstract global::Java.Util.Map.Entry HigherEntry(K key); - public abstract global::Java.Util.Map.Entry LastEntry(); + public abstract K HigherKey(K key); - public abstract global::Java.Util.Map.Entry PollFirstEntry(); + public abstract global::Java.Util.Map.Entry FirstEntry(); - public abstract global::Java.Util.Map.Entry PollLastEntry(); + public abstract global::Java.Util.Map.Entry LastEntry(); - public abstract global::Java.Util.NavigableMap DescendingMap(); + public abstract global::Java.Util.Map.Entry PollFirstEntry(); - public abstract global::Java.Util.NavigableSet NavigableKeySet(); + public abstract global::Java.Util.Map.Entry PollLastEntry(); - public abstract global::Java.Util.NavigableSet DescendingKeySet(); + public abstract global::Java.Util.NavigableMap DescendingMap(); - public abstract global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive); + public abstract global::Java.Util.NavigableSet NavigableKeySet(); - public abstract global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive); + public abstract global::Java.Util.NavigableSet DescendingKeySet(); - public abstract global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive); + public abstract global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive); - public abstract global::Java.Util.SortedMap SubMap(K fromKey, K toKey); + public abstract global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive); - public abstract global::Java.Util.SortedMap HeadMap(K toKey); + public abstract global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive); - public abstract global::Java.Util.SortedMap TailMap(K fromKey); + public abstract global::Java.Util.SortedMap SubMap(K fromKey, K toKey); - public abstract global::Java.Util.Comparator Comparator(); + public abstract global::Java.Util.SortedMap HeadMap(K toKey); - public abstract K FirstKey(); + public abstract global::Java.Util.SortedMap TailMap(K fromKey); - public abstract K LastKey(); + public abstract global::Java.Util.Comparator Comparator(); - public abstract global::Java.Util.Set KeySet(); + public abstract K FirstKey(); - public abstract global::Java.Util.Collection Values(); + public abstract K LastKey(); - public abstract global::Java.Util.Set> EntrySet(); + public abstract global::Java.Util.Set KeySet(); - public abstract int Size(); + public abstract global::Java.Util.Collection Values(); - public abstract bool IsEmpty(); + public abstract global::Java.Util.Set> EntrySet(); - public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract int Size(); - public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); + public abstract bool IsEmpty(); - public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract V Put(K key, V value); + public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); - public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract void PutAll(global::Java.Util.Map m); + public abstract V Put(K key, V value); - public abstract void Clear(); + public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract void PutAll(global::Java.Util.Map m); - public abstract int HashCode(); + public abstract void Clear(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "lowerEntry" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LowerEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LowerEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "lowerKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LowerKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LowerKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "floorEntry" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FloorEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FloorEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "floorKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FloorKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FloorKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "ceilingEntry" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CeilingEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CeilingEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "ceilingKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CeilingKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(CeilingKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "higherEntry" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HigherEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HigherEntry(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "higherKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HigherKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HigherKey(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "firstEntry" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstEntry()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstEntry()); } else if (methodName == "lastEntry" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastEntry()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastEntry()); } else if (methodName == "pollFirstEntry" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirstEntry()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirstEntry()); } else if (methodName == "pollLastEntry" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLastEntry()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLastEntry()); } else if (methodName == "descendingMap" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingMap()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingMap()); } else if (methodName == "navigableKeySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NavigableKeySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(NavigableKeySet()); } else if (methodName == "descendingKeySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingKeySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingKeySet()); } else if (methodName == "subMap" && args.Length == 4) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1], args[2] is global::System.String ? (K) (global::System.Object) args[2] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[2]).GetRawObject()), (bool) args[3])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1], args[2] is global::System.String ? (K) (global::System.Object) args[2] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[2]).GetRawObject()), (bool) args[3])); } else if (methodName == "headMap" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); } else if (methodName == "tailMap" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); } else if (methodName == "subMap" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (K) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (K) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "headMap" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "tailMap" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "comparator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); } else if (methodName == "firstKey" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstKey()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstKey()); } else if (methodName == "lastKey" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastKey()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastKey()); } else if (methodName == "keySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); } else if (methodName == "values" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); } else if (methodName == "entrySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "containsKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsValue" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "get" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "put" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "putAll" && args.Length == 1) { - PutAll(new global::Java.Util.Map.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + PutAll(new global::Java.Util.MapAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - global::Java.Util.Map.Entry LowerEntry(K key); - - K LowerKey(K key); - - global::Java.Util.Map.Entry FloorEntry(K key); - - K FloorKey(K key); - - global::Java.Util.Map.Entry CeilingEntry(K key); - - K CeilingKey(K key); - - global::Java.Util.Map.Entry HigherEntry(K key); - - K HigherKey(K key); - - global::Java.Util.Map.Entry FirstEntry(); - - global::Java.Util.Map.Entry LastEntry(); - - global::Java.Util.Map.Entry PollFirstEntry(); - - global::Java.Util.Map.Entry PollLastEntry(); - - global::Java.Util.NavigableMap DescendingMap(); - - global::Java.Util.NavigableSet NavigableKeySet(); - - global::Java.Util.NavigableSet DescendingKeySet(); - - global::Java.Util.NavigableMap SubMap(K fromKey, bool fromInclusive, K toKey, bool toInclusive); - - global::Java.Util.NavigableMap HeadMap(K toKey, bool inclusive); - - global::Java.Util.NavigableMap TailMap(K fromKey, bool inclusive); - } // end class NavigableMap + } + } // end class NavigableMapCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/NavigableMap.cs.meta b/Runtime/Java/Util/NavigableMap.cs.meta index 436fb5f..79f9f0d 100644 --- a/Runtime/Java/Util/NavigableMap.cs.meta +++ b/Runtime/Java/Util/NavigableMap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d5c891d2ad643a29b755df2f89c03ec0 +guid: b1649cc403fd38db906b72d49e2b97dd MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/NavigableSet.cs b/Runtime/Java/Util/NavigableSet.cs index 85fb2a6..e7f854b 100644 --- a/Runtime/Java/Util/NavigableSet.cs +++ b/Runtime/Java/Util/NavigableSet.cs @@ -6,811 +6,843 @@ namespace Java.Util { public interface NavigableSet : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.SortedSet where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.NavigableSet - { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - private static readonly IntPtr _cachedMethodId20; - private static readonly IntPtr _cachedMethodId21; - private static readonly IntPtr _cachedMethodId22; - private static readonly IntPtr _cachedMethodId23; - private static readonly IntPtr _cachedMethodId24; - private static readonly IntPtr _cachedMethodId25; - private static readonly IntPtr _cachedMethodId26; - private static readonly IntPtr _cachedMethodId27; - private static readonly IntPtr _cachedMethodId28; - private static readonly IntPtr _cachedMethodId29; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableSet"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "lower", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "floor", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "ceiling", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "higher", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "pollFirst", "()Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "pollLast", "()Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "descendingSet", "()Ljava/util/NavigableSet;"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "descendingIterator", "()Ljava/util/Iterator;"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableSet;"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "first", "()Ljava/lang/Object;"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "last", "()Ljava/lang/Object;"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + private static readonly IntPtr _classObject; + + static NavigableSet() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableSet"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + E Lower(E e); + + E Floor(E e); + + E Ceiling(E e); + + E Higher(E e); + + E PollFirst(); + + E PollLast(); + + global::Java.Util.NavigableSet DescendingSet(); + + global::Java.Util.Iterator DescendingIterator(); + + global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive); + + global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive); + + global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive); + } // end class NavigableSet - public E Lower(E e) + public class NavigableSetAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.NavigableSet where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + private static readonly IntPtr _cachedMethodId19; + private static readonly IntPtr _cachedMethodId20; + private static readonly IntPtr _cachedMethodId21; + private static readonly IntPtr _cachedMethodId22; + private static readonly IntPtr _cachedMethodId23; + private static readonly IntPtr _cachedMethodId24; + private static readonly IntPtr _cachedMethodId25; + private static readonly IntPtr _cachedMethodId26; + private static readonly IntPtr _cachedMethodId27; + private static readonly IntPtr _cachedMethodId28; + private static readonly IntPtr _cachedMethodId29; + + static NavigableSetAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/NavigableSet"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "lower", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "floor", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "ceiling", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "higher", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "pollFirst", "()Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "pollLast", "()Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "descendingSet", "()Ljava/util/NavigableSet;"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "descendingIterator", "()Ljava/util/Iterator;"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableSet;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "first", "()Ljava/lang/Object;"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "last", "()Ljava/lang/Object;"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId20 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId21 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId22 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId23 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId24 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId25 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId26 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId27 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId28 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId29 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public NavigableSetAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public E Floor(E e) + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of NavigableSetAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public E Ceiling(E e) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Higher(E e) + public E Lower(E e) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E PollFirst() + public E Floor(E e) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E PollLast() + public E Ceiling(E e) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Iterator Iterator() + public E Higher(E e) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet DescendingSet() + public E PollFirst() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Iterator DescendingIterator() + public E PollLast() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), new jvalue { z = fromInclusive }, ToJvalue(toElement), new jvalue { z = toInclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive) + public global::Java.Util.NavigableSet DescendingSet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toElement), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive) + public global::Java.Util.Iterator DescendingIterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.SortedSet SubSet(E fromElement, E toElement) + public global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + new jvalue { z = fromInclusive }, + ToJvalue(toElement), + new jvalue { z = toInclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.SortedSet HeadSet(E toElement) + public global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(toElement), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.SortedSet TailSet(E fromElement) + public global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Comparator Comparator() + public global::Java.Util.SortedSet SubSet(E fromElement, E toElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + ToJvalue(toElement) + }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E First() + public global::Java.Util.SortedSet HeadSet(E toElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(toElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E Last() + public global::Java.Util.SortedSet TailSet(E fromElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(fromElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int Size() + public global::Java.Util.Comparator Comparator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId18, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool IsEmpty() + public E First() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + public E Last() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId20, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId17, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Add(E e) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId21, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId18, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId22, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsAll(global::Java.Util.Collection c) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId23, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId20, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(global::Java.Util.Collection c) + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId24, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId21, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId25, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId22, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId26, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId23, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Clear() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId27, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId24, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId25, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int HashCode() + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId29, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId26, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId27, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId28, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId29, args_); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.NavigableSet + public static explicit operator IntPtr(NavigableSetAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.NavigableSet") {} + return wrapper.GetRawObject(); + } - public abstract E Lower(E e); + public static explicit operator NavigableSetAnonymousImplementation(IntPtr rawObject) + { + return new NavigableSetAnonymousImplementation(rawObject); + } - public abstract E Floor(E e); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class NavigableSetAnonymousImplementation - public abstract E Ceiling(E e); + public abstract class NavigableSetCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.NavigableSet where E : class + { + public NavigableSetCallbackHelper() : base("java.util.NavigableSet") {} - public abstract E Higher(E e); + public abstract E Lower(E e); - public abstract E PollFirst(); + public abstract E Floor(E e); - public abstract E PollLast(); + public abstract E Ceiling(E e); - public abstract global::Java.Util.Iterator Iterator(); + public abstract E Higher(E e); - public abstract global::Java.Util.NavigableSet DescendingSet(); + public abstract E PollFirst(); - public abstract global::Java.Util.Iterator DescendingIterator(); + public abstract E PollLast(); - public abstract global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive); + public abstract global::Java.Util.Iterator Iterator(); - public abstract global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive); + public abstract global::Java.Util.NavigableSet DescendingSet(); - public abstract global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive); + public abstract global::Java.Util.Iterator DescendingIterator(); - public abstract global::Java.Util.SortedSet SubSet(E fromElement, E toElement); + public abstract global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive); - public abstract global::Java.Util.SortedSet HeadSet(E toElement); + public abstract global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive); - public abstract global::Java.Util.SortedSet TailSet(E fromElement); + public abstract global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive); - public abstract global::Java.Util.Comparator Comparator(); + public abstract global::Java.Util.SortedSet SubSet(E fromElement, E toElement); - public abstract E First(); + public abstract global::Java.Util.SortedSet HeadSet(E toElement); - public abstract E Last(); + public abstract global::Java.Util.SortedSet TailSet(E fromElement); - public abstract int Size(); + public abstract global::Java.Util.Comparator Comparator(); - public abstract bool IsEmpty(); + public abstract E First(); - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E Last(); - public abstract bool Add(E e); + public abstract int Size(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool IsEmpty(); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract bool Add(E e); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool RetainAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract void Clear(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "lower" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Lower(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Lower(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "floor" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Floor(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Floor(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "ceiling" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Ceiling(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Ceiling(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "higher" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Higher(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Higher(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "pollFirst" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirst()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollFirst()); } else if (methodName == "pollLast" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLast()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(PollLast()); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "descendingSet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingSet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingSet()); } else if (methodName == "descendingIterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingIterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(DescendingIterator()); } else if (methodName == "subSet" && args.Length == 4) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1], args[2] is global::System.String ? (E) (global::System.Object) args[2] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[2]).GetRawObject()), (bool) args[3])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1], args[2] is global::System.String ? (E) (global::System.Object) args[2] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[2]).GetRawObject()), (bool) args[3])); } else if (methodName == "headSet" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); } else if (methodName == "tailSet" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), (bool) args[1])); } else if (methodName == "subSet" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "headSet" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "tailSet" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "comparator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); } else if (methodName == "first" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(First()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(First()); } else if (methodName == "last" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Last()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Last()); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - E Lower(E e); - - E Floor(E e); - - E Ceiling(E e); - - E Higher(E e); - - E PollFirst(); - - E PollLast(); - - global::Java.Util.NavigableSet DescendingSet(); - - global::Java.Util.Iterator DescendingIterator(); - - global::Java.Util.NavigableSet SubSet(E fromElement, bool fromInclusive, E toElement, bool toInclusive); - - global::Java.Util.NavigableSet HeadSet(E toElement, bool inclusive); - - global::Java.Util.NavigableSet TailSet(E fromElement, bool inclusive); - } // end class NavigableSet + } + } // end class NavigableSetCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/NavigableSet.cs.meta b/Runtime/Java/Util/NavigableSet.cs.meta index fc047cc..b90d34c 100644 --- a/Runtime/Java/Util/NavigableSet.cs.meta +++ b/Runtime/Java/Util/NavigableSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b6a11ab9fbe93278aac32bb7f8595316 +guid: f70aa2e17c343d1ea76ef4e1915ac7f4 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/NoSuchElementException.cs b/Runtime/Java/Util/NoSuchElementException.cs index 27e1547..67a4fb1 100644 --- a/Runtime/Java/Util/NoSuchElementException.cs +++ b/Runtime/Java/Util/NoSuchElementException.cs @@ -25,7 +25,7 @@ public NoSuchElementException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public NoSuchElementException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/NoSuchElementException.cs.meta b/Runtime/Java/Util/NoSuchElementException.cs.meta index 265ea23..0610fe8 100644 --- a/Runtime/Java/Util/NoSuchElementException.cs.meta +++ b/Runtime/Java/Util/NoSuchElementException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ef8649ee0dd73ddc990440aeca9f2c69 +guid: c254f0fc83f63bb3a5f0082396cc7ad1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Objects.cs b/Runtime/Java/Util/Objects.cs index 4a27af9..e288f86 100644 --- a/Runtime/Java/Util/Objects.cs +++ b/Runtime/Java/Util/Objects.cs @@ -65,7 +65,12 @@ public static bool Equals(global::Google.LibraryWrapper.Java.JavaObject a, globa try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = a.GetRawObject() }, new jvalue { l = b.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = a.GetRawObject() }, + new jvalue { l = b.GetRawObject() } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId0, args_); } finally @@ -79,7 +84,12 @@ public static bool DeepEquals(global::Google.LibraryWrapper.Java.JavaObject a, g try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = a.GetRawObject() }, new jvalue { l = b.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = a.GetRawObject() }, + new jvalue { l = b.GetRawObject() } + }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId1, args_); } finally @@ -93,7 +103,7 @@ public static int HashCode(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId2, args_); } finally @@ -107,7 +117,7 @@ public static int HashCode(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId3, args_); } finally @@ -121,7 +131,12 @@ public static int HashCode(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(nullDefault) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = o.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(nullDefault) } + }; return AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId4, args_); } finally @@ -135,7 +150,13 @@ public static int Compare(T a, T b, global::Java.Util.Comparator c) where try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(a), ToJvalue(b), new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(a), + ToJvalue(b), + new jvalue { l = c.GetRawObject() } + }; return AndroidJNI.CallStaticIntMethod(_classObject, _cachedMethodId5, args_); } finally @@ -149,7 +170,7 @@ public static T RequireNonNull(T obj) where T : class try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj)}; + jvalue[] args_ = new jvalue[] { ToJvalue(obj) }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId6, args_); @@ -171,7 +192,12 @@ public static T RequireNonNull(T obj, global::System.String message) where T try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj), new jvalue { l = AndroidJNI.NewString(message) }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(obj), + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(message) } + }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId7, args_); @@ -193,7 +219,7 @@ public static bool IsNull(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId8, args_); } finally @@ -207,7 +233,7 @@ public static bool NonNull(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallStaticBooleanMethod(_classObject, _cachedMethodId9, args_); } finally @@ -221,7 +247,12 @@ public static T RequireNonNull(T obj, global::Java.ExternalType.Java.Util.Fun try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj), new jvalue { l = messageSupplier.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(obj), + new jvalue { l = messageSupplier.GetRawObject() } + }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStaticStringMethod(_classObject, _cachedMethodId10, args_); diff --git a/Runtime/Java/Util/Objects.cs.meta b/Runtime/Java/Util/Objects.cs.meta index 3a74dcc..ba243c2 100644 --- a/Runtime/Java/Util/Objects.cs.meta +++ b/Runtime/Java/Util/Objects.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c36586dc5516374a8e744fad90f9ac64 +guid: bd2c0ad229793e899c38e28707a931bf MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Observable.cs b/Runtime/Java/Util/Observable.cs index d9106d6..2788bda 100644 --- a/Runtime/Java/Util/Observable.cs +++ b/Runtime/Java/Util/Observable.cs @@ -37,7 +37,7 @@ public Observable() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -74,7 +74,7 @@ public void AddObserver(global::Java.Util.Observer o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -88,7 +88,7 @@ public void DeleteObserver(global::Java.Util.Observer o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -102,7 +102,7 @@ public void NotifyObservers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -116,7 +116,7 @@ public void NotifyObservers(global::Google.LibraryWrapper.Java.JavaObject arg) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = arg.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = arg.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -130,7 +130,7 @@ public void DeleteObservers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -144,7 +144,7 @@ public bool HasChanged() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -158,7 +158,7 @@ public int CountObservers() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally diff --git a/Runtime/Java/Util/Observable.cs.meta b/Runtime/Java/Util/Observable.cs.meta index efd1683..9d10f82 100644 --- a/Runtime/Java/Util/Observable.cs.meta +++ b/Runtime/Java/Util/Observable.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 10205c1c92283b9bafda8431bb57c401 +guid: 4695c316e32436f3a0ce31a89eb9037e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Observer.cs b/Runtime/Java/Util/Observer.cs index 44fe9f8..ad12729 100644 --- a/Runtime/Java/Util/Observer.cs +++ b/Runtime/Java/Util/Observer.cs @@ -6,89 +6,104 @@ namespace Java.Util { public interface Observer : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Observer + private static readonly IntPtr _classObject; + + static Observer() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Observer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Observer"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "update", "(Ljava/util/Observable;Ljava/lang/Object;)V"); - } + void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg); + } // end class Observer + + public class ObserverAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Observer + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static ObserverAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Observer"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "update", "(Ljava/util/Observable;Ljava/lang/Object;)V"); + } - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + public ObserverAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }, new jvalue { l = arg.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of ObserverAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = o.GetRawObject() }, + new jvalue { l = arg.GetRawObject() } + }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } - - public new static IntPtr GetRawClass() + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Observer + public static explicit operator IntPtr(ObserverAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.Observer") {} + return wrapper.GetRawObject(); + } - public abstract void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg); + public static explicit operator ObserverAnonymousImplementation(IntPtr rawObject) + { + return new ObserverAnonymousImplementation(rawObject); + } - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class ObserverAnonymousImplementation + + public abstract class ObserverCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Observer + { + public ObserverCallbackHelper() : base("java.util.Observer") {} + + public abstract void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "update" && args.Length == 2) { - Update(new global::Java.Util.Observable(((AndroidJavaObject) args[0]).GetRawObject()), new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[1]).GetRawObject())); - return null; + Update(new global::Java.Util.Observable(((AndroidJavaObject) args[0]).GetRawObject()), new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[1]).GetRawObject())); + return null; } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - void Update(global::Java.Util.Observable o, global::Google.LibraryWrapper.Java.JavaObject arg); - } // end class Observer + } + } // end class ObserverCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Observer.cs.meta b/Runtime/Java/Util/Observer.cs.meta index 883e29c..0a27672 100644 --- a/Runtime/Java/Util/Observer.cs.meta +++ b/Runtime/Java/Util/Observer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: efda6c23232c352992785190b9b10d8a +guid: 46205070c0ec3c15ad54d8dc3b2e8d4a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Optional.cs b/Runtime/Java/Util/Optional.cs index 4eaf65e..5f03412 100644 --- a/Runtime/Java/Util/Optional.cs +++ b/Runtime/Java/Util/Optional.cs @@ -71,7 +71,7 @@ public Optional(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Optional(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -85,7 +85,7 @@ public Optional(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; return new global::Java.Util.Optional(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -99,7 +99,7 @@ public Optional(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(value)}; + jvalue[] args_ = new jvalue[] { ToJvalue(value) }; return new global::Java.Util.Optional(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -113,7 +113,7 @@ public T Get() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); @@ -135,7 +135,7 @@ public bool IsPresent() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -149,7 +149,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.Consumer c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = consumer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = consumer.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -163,7 +163,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.Consumer c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = predicate.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = predicate.GetRawObject() } }; return new global::Java.Util.Optional(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally @@ -177,7 +177,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.Consumer c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = mapper.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = mapper.GetRawObject() } }; return new global::Java.Util.Optional(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally @@ -191,7 +191,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.Consumer c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = mapper.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = mapper.GetRawObject() } }; return new global::Java.Util.Optional(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally @@ -205,7 +205,7 @@ public T OrElse(T other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(other)}; + jvalue[] args_ = new jvalue[] { ToJvalue(other) }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -227,7 +227,7 @@ public T OrElseGet(global::Java.ExternalType.Java.Util.Function.Supplier othe try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); @@ -249,7 +249,7 @@ public T OrElseThrow(global::Java.ExternalType.Java.Util.Function.Supplier try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = exceptionSupplier.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = exceptionSupplier.GetRawObject() } }; if (typeof(T) == typeof(global::System.String)) { return (T) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); @@ -271,7 +271,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -285,7 +285,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId13, args_); } finally diff --git a/Runtime/Java/Util/Optional.cs.meta b/Runtime/Java/Util/Optional.cs.meta index f871fd2..0044202 100644 --- a/Runtime/Java/Util/Optional.cs.meta +++ b/Runtime/Java/Util/Optional.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2be38d2b8433344fb01fcda0cb3c8623 +guid: 4ed9c27c1b6e332fafe380f387af59e9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/OptionalDouble.cs b/Runtime/Java/Util/OptionalDouble.cs index fa57de5..9d45b92 100644 --- a/Runtime/Java/Util/OptionalDouble.cs +++ b/Runtime/Java/Util/OptionalDouble.cs @@ -63,7 +63,7 @@ public OptionalDouble(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.OptionalDouble(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -77,7 +77,7 @@ public OptionalDouble(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = value } }; return new global::Java.Util.OptionalDouble(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -91,7 +91,7 @@ public double GetAsDouble() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -105,7 +105,7 @@ public bool IsPresent() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -119,7 +119,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.DoubleConsume try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = consumer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = consumer.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -133,7 +133,7 @@ public double OrElse(double other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = other }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = other } }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -147,7 +147,7 @@ public double OrElseGet(global::Java.ExternalType.Java.Util.Function.DoubleSuppl try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -161,7 +161,7 @@ public double OrElseThrow(global::Java.ExternalType.Java.Util.Function.Suppli try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = exceptionSupplier.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = exceptionSupplier.GetRawObject() } }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -175,7 +175,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -189,7 +189,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally diff --git a/Runtime/Java/Util/OptionalDouble.cs.meta b/Runtime/Java/Util/OptionalDouble.cs.meta index f4c63fd..1333376 100644 --- a/Runtime/Java/Util/OptionalDouble.cs.meta +++ b/Runtime/Java/Util/OptionalDouble.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ba9990ab10ee3127bdfa6997efcdeb22 +guid: a83fdf7b9584355eaa7a831a83039901 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/OptionalInt.cs b/Runtime/Java/Util/OptionalInt.cs index 9aa4726..1832dfd 100644 --- a/Runtime/Java/Util/OptionalInt.cs +++ b/Runtime/Java/Util/OptionalInt.cs @@ -63,7 +63,7 @@ public OptionalInt(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.OptionalInt(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -77,7 +77,7 @@ public OptionalInt(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = value } }; return new global::Java.Util.OptionalInt(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -91,7 +91,7 @@ public int GetAsInt() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -105,7 +105,7 @@ public bool IsPresent() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -119,7 +119,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.IntConsumer c try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = consumer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = consumer.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -133,7 +133,7 @@ public int OrElse(int other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = other }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = other } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -147,7 +147,7 @@ public int OrElseGet(global::Java.ExternalType.Java.Util.Function.IntSupplier ot try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -161,7 +161,7 @@ public int OrElseThrow(global::Java.ExternalType.Java.Util.Function.Supplier< try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = exceptionSupplier.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = exceptionSupplier.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -175,7 +175,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -189,7 +189,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally diff --git a/Runtime/Java/Util/OptionalInt.cs.meta b/Runtime/Java/Util/OptionalInt.cs.meta index 23b53e1..7b99d02 100644 --- a/Runtime/Java/Util/OptionalInt.cs.meta +++ b/Runtime/Java/Util/OptionalInt.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c1095879054f31a8ab791a90f057a27e +guid: 0c3dc380ed9d3ee281d4014f1296d1b7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/OptionalLong.cs b/Runtime/Java/Util/OptionalLong.cs index ea374d0..c56c776 100644 --- a/Runtime/Java/Util/OptionalLong.cs +++ b/Runtime/Java/Util/OptionalLong.cs @@ -63,7 +63,7 @@ public OptionalLong(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.OptionalLong(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -77,7 +77,7 @@ public OptionalLong(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = value }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = value } }; return new global::Java.Util.OptionalLong(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -91,7 +91,7 @@ public long GetAsLong() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -105,7 +105,7 @@ public bool IsPresent() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -119,7 +119,7 @@ public void IfPresent(global::Java.ExternalType.Java.Util.Function.LongConsumer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = consumer.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = consumer.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -133,7 +133,7 @@ public long OrElse(long other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = other }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = other } }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -147,7 +147,7 @@ public long OrElseGet(global::Java.ExternalType.Java.Util.Function.LongSupplier try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -161,7 +161,7 @@ public long OrElseThrow(global::Java.ExternalType.Java.Util.Function.Supplier try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = exceptionSupplier.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = exceptionSupplier.GetRawObject() } }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -175,7 +175,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -189,7 +189,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally diff --git a/Runtime/Java/Util/OptionalLong.cs.meta b/Runtime/Java/Util/OptionalLong.cs.meta index 5a3cedb..c0bbf36 100644 --- a/Runtime/Java/Util/OptionalLong.cs.meta +++ b/Runtime/Java/Util/OptionalLong.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a3296d92bb7839e7ab4fd062cb3a9736 +guid: 3b898d009939302391f6f056a39dc891 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/PriorityQueue.cs b/Runtime/Java/Util/PriorityQueue.cs index 2868baa..956cee6 100644 --- a/Runtime/Java/Util/PriorityQueue.cs +++ b/Runtime/Java/Util/PriorityQueue.cs @@ -39,7 +39,7 @@ public PriorityQueue() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -54,7 +54,7 @@ public PriorityQueue(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -69,7 +69,7 @@ public PriorityQueue(global::Java.Util.Comparator comparator) : base(IntPtr.Z try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = comparator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = comparator.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -84,7 +84,12 @@ public PriorityQueue(int initialCapacity, global::Java.Util.Comparator compar try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { l = comparator.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { l = comparator.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -99,7 +104,7 @@ public PriorityQueue(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId4, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -114,7 +119,7 @@ public PriorityQueue(global::Java.Util.PriorityQueue c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId5, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -129,7 +134,7 @@ public PriorityQueue(global::Java.Util.SortedSet c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId6, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -166,8 +171,8 @@ public PriorityQueue(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -180,8 +185,8 @@ public PriorityQueue(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally { diff --git a/Runtime/Java/Util/PriorityQueue.cs.meta b/Runtime/Java/Util/PriorityQueue.cs.meta index b95cc04..f001bc3 100644 --- a/Runtime/Java/Util/PriorityQueue.cs.meta +++ b/Runtime/Java/Util/PriorityQueue.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5ee45f3df85a3716bf0b401cb02dc4c7 +guid: 59cf50b510d83fce85cc00f147fd0a45 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Properties.cs b/Runtime/Java/Util/Properties.cs index 7a36925..206f6be 100644 --- a/Runtime/Java/Util/Properties.cs +++ b/Runtime/Java/Util/Properties.cs @@ -55,7 +55,7 @@ public Properties() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -70,7 +70,7 @@ public Properties(global::Java.Util.Properties defaults) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = defaults.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = defaults.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -107,7 +107,12 @@ public Properties(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }, new jvalue { l = AndroidJNI.NewString(value) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(value) } + }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -121,7 +126,7 @@ public void Load(global::Java.ExternalType.Java.Io.Reader reader) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = reader.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = reader.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -135,7 +140,7 @@ public void Load(global::Java.ExternalType.Java.Io.InputStream inStream) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = inStream.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = inStream.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -149,7 +154,12 @@ public void Save(global::Java.ExternalType.Java.Io.OutputStream @out, global::Sy try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @out.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(comments) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = @out.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(comments) } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -163,7 +173,12 @@ public void Store(global::Java.ExternalType.Java.Io.Writer writer, global::Syste try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = writer.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(comments) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = writer.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(comments) } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -177,7 +192,12 @@ public void Store(global::Java.ExternalType.Java.Io.OutputStream @out, global::S try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @out.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(comments) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = @out.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(comments) } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -191,7 +211,7 @@ public void LoadFromXML(global::Java.ExternalType.Java.Io.InputStream @in) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @in.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @in.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -205,7 +225,12 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(comment) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = os.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(comment) } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -219,7 +244,13 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = os.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(comment) }, new jvalue { l = AndroidJNI.NewString(encoding) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = os.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(comment) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(encoding) } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -233,7 +264,7 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -247,7 +278,12 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }, new jvalue { l = AndroidJNI.NewString(defaultValue) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(defaultValue) } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -261,8 +297,8 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally { @@ -275,8 +311,8 @@ public void StoreToXML(global::Java.ExternalType.Java.Io.OutputStream os, global try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally { @@ -289,7 +325,7 @@ public void List(global::Java.ExternalType.Java.Io.PrintStream @out) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @out.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @out.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -303,7 +339,7 @@ public void List(global::Java.ExternalType.Java.Io.PrintWriter @out) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @out.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @out.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId14, args_); } finally diff --git a/Runtime/Java/Util/Properties.cs.meta b/Runtime/Java/Util/Properties.cs.meta index b94b098..688e7aa 100644 --- a/Runtime/Java/Util/Properties.cs.meta +++ b/Runtime/Java/Util/Properties.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b69da79833e83136afe4101d78acfcf8 +guid: 7f408abc7b1b3a9ca841b5ecb0acf9f0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/PropertyPermission.cs b/Runtime/Java/Util/PropertyPermission.cs index 1f94a18..a8c4af3 100644 --- a/Runtime/Java/Util/PropertyPermission.cs +++ b/Runtime/Java/Util/PropertyPermission.cs @@ -33,7 +33,12 @@ public PropertyPermission(global::System.String name, global::System.String acti try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }, new jvalue { l = AndroidJNI.NewString(actions) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(actions) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -70,7 +75,7 @@ public bool Implies(global::Java.ExternalType.Java.Security.Permission p) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = p.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = p.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -84,7 +89,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -98,7 +103,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -112,7 +117,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -126,7 +131,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Security.PermissionCollection(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally diff --git a/Runtime/Java/Util/PropertyPermission.cs.meta b/Runtime/Java/Util/PropertyPermission.cs.meta index 89ed619..22957c5 100644 --- a/Runtime/Java/Util/PropertyPermission.cs.meta +++ b/Runtime/Java/Util/PropertyPermission.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5d3a5e3fc3cc3ddfb67a3a424744f60b +guid: aeff89dad31636b89842cef8e3895219 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/PropertyResourceBundle.cs b/Runtime/Java/Util/PropertyResourceBundle.cs index ef64815..c4c4159 100644 --- a/Runtime/Java/Util/PropertyResourceBundle.cs +++ b/Runtime/Java/Util/PropertyResourceBundle.cs @@ -27,7 +27,7 @@ public PropertyResourceBundle(global::Java.ExternalType.Java.Io.InputStream stre try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = stream.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = stream.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -42,7 +42,7 @@ public PropertyResourceBundle(global::Java.ExternalType.Java.Io.Reader reader) : try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = reader.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = reader.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -79,7 +79,7 @@ public PropertyResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally diff --git a/Runtime/Java/Util/PropertyResourceBundle.cs.meta b/Runtime/Java/Util/PropertyResourceBundle.cs.meta index 8a7c29f..aa76898 100644 --- a/Runtime/Java/Util/PropertyResourceBundle.cs.meta +++ b/Runtime/Java/Util/PropertyResourceBundle.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1d7526aa33183f4788540d43c2ce882a +guid: 8f9e4c0b55e830409e60dd9c07ff2f17 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Queue.cs b/Runtime/Java/Util/Queue.cs index 20a3d95..125c8cf 100644 --- a/Runtime/Java/Util/Queue.cs +++ b/Runtime/Java/Util/Queue.cs @@ -6,503 +6,513 @@ namespace Java.Util { public interface Queue : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Collection where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Queue + private static readonly IntPtr _classObject; + + static Queue() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Queue"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "offer", "(Ljava/lang/Object;)Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "remove", "()Ljava/lang/Object;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "poll", "()Ljava/lang/Object;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "element", "()Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "peek", "()Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Queue"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + bool Offer(E e); + + E Remove(); + + E Poll(); + + E Element(); + + E Peek(); + } // end class Queue - public bool Add(E e) + public class QueueAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Queue where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + + static QueueAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Queue"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "offer", "(Ljava/lang/Object;)Z"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "remove", "()Ljava/lang/Object;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "poll", "()Ljava/lang/Object;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "element", "()Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "peek", "()Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public QueueAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public bool Offer(E e) + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of QueueAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public E Remove() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Poll() + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId0, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Element() + public bool Offer(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Peek() + public E Remove() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int Size() + public E Poll() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId3, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool IsEmpty() + public E Element() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + public E Peek() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Iterator Iterator() + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsAll(global::Java.Util.Collection c) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Clear() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId16, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int HashCode() + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId17, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId16, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId17, args_); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } + + public static explicit operator IntPtr(QueueAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Queue + public static explicit operator QueueAnonymousImplementation(IntPtr rawObject) { - public CallbackHelper() : base("java.util.Queue") {} + return new QueueAnonymousImplementation(rawObject); + } - public abstract bool Add(E e); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class QueueAnonymousImplementation - public abstract bool Offer(E e); + public abstract class QueueCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Queue where E : class + { + public QueueCallbackHelper() : base("java.util.Queue") {} - public abstract E Remove(); + public abstract bool Add(E e); - public abstract E Poll(); + public abstract bool Offer(E e); - public abstract E Element(); + public abstract E Remove(); - public abstract E Peek(); + public abstract E Poll(); - public abstract int Size(); + public abstract E Element(); - public abstract bool IsEmpty(); + public abstract E Peek(); - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract int Size(); - public abstract global::Java.Util.Iterator Iterator(); + public abstract bool IsEmpty(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool RetainAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract void Clear(); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "offer" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Offer(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Offer(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove()); } else if (methodName == "poll" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Poll()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Poll()); } else if (methodName == "element" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Element()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Element()); } else if (methodName == "peek" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Peek()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Peek()); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - bool Offer(E e); - - E Remove(); - - E Poll(); - - E Element(); - - E Peek(); - } // end class Queue + } + } // end class QueueCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Queue.cs.meta b/Runtime/Java/Util/Queue.cs.meta index 804bcb7..be2f1ac 100644 --- a/Runtime/Java/Util/Queue.cs.meta +++ b/Runtime/Java/Util/Queue.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 94db7969a3473c4db117ec867013d879 +guid: 205f95871f2d32b29734991bb7526800 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Random.cs b/Runtime/Java/Util/Random.cs index e22e2c0..482fdcf 100644 --- a/Runtime/Java/Util/Random.cs +++ b/Runtime/Java/Util/Random.cs @@ -65,7 +65,7 @@ public Random() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -80,7 +80,7 @@ public Random(long seed) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = seed }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = seed } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -117,7 +117,7 @@ public void SetSeed(long seed) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = seed }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = seed } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -131,7 +131,7 @@ public int NextInt() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -145,7 +145,7 @@ public int NextInt(int bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bound }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bound } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -159,7 +159,7 @@ public long NextLong() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -173,7 +173,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -187,7 +187,7 @@ public float NextFloat() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallFloatMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -201,7 +201,7 @@ public double NextDouble() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -215,7 +215,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -229,7 +229,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally @@ -243,7 +243,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } finally @@ -257,7 +257,13 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { i = randomNumberOrigin }, new jvalue { i = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { i = randomNumberOrigin }, + new jvalue { i = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } finally @@ -271,7 +277,12 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = randomNumberOrigin }, new jvalue { i = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = randomNumberOrigin }, + new jvalue { i = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally @@ -285,7 +296,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -299,7 +310,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); } finally @@ -313,7 +324,13 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { j = randomNumberOrigin }, new jvalue { j = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { j = randomNumberOrigin }, + new jvalue { j = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally @@ -327,7 +344,12 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = randomNumberOrigin }, new jvalue { j = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = randomNumberOrigin }, + new jvalue { j = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); } finally @@ -341,7 +363,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -355,7 +377,7 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally @@ -369,7 +391,13 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { d = randomNumberOrigin }, new jvalue { d = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { d = randomNumberOrigin }, + new jvalue { d = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally @@ -383,7 +411,12 @@ public double NextGaussian() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = randomNumberOrigin }, new jvalue { d = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = randomNumberOrigin }, + new jvalue { d = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally diff --git a/Runtime/Java/Util/Random.cs.meta b/Runtime/Java/Util/Random.cs.meta index ac87fb5..cc1d2e7 100644 --- a/Runtime/Java/Util/Random.cs.meta +++ b/Runtime/Java/Util/Random.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ba58ec5772e13900af1bcdf1afe2b66f +guid: b538f8d3dd4336d5a07a4db1a81a8058 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/RandomAccess.cs b/Runtime/Java/Util/RandomAccess.cs index f6fd0f4..8840d7c 100644 --- a/Runtime/Java/Util/RandomAccess.cs +++ b/Runtime/Java/Util/RandomAccess.cs @@ -6,64 +6,74 @@ namespace Java.Util { public interface RandomAccess : global::Google.LibraryWrapper.Java.JavaInterface { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.RandomAccess + private static readonly IntPtr _classObject; + + static RandomAccess() { - private static readonly IntPtr _classObject; + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/RandomAccess"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + } // end class RandomAccess + + public class RandomAccessAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.RandomAccess + { + private static readonly IntPtr _classObject; - static AnonymousImplementation() + static RandomAccessAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/RandomAccess"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + public RandomAccessAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/RandomAccess"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); + return; } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + try { - if (rawObject == IntPtr.Zero) - { - return; - } - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of RandomAccessAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public static explicit operator IntPtr(AnonymousImplementation wrapper) + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) - { - return new AnonymousImplementation(rawObject); - } + public static explicit operator IntPtr(RandomAccessAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new static IntPtr GetRawClass() - { - return AndroidJNI.NewLocalRef(_classObject); - } - } // end class AnonymousImplementation + public static explicit operator RandomAccessAnonymousImplementation(IntPtr rawObject) + { + return new RandomAccessAnonymousImplementation(rawObject); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.RandomAccess + public new static IntPtr GetRawClass() { - public CallbackHelper() : base("java.util.RandomAccess") {} + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class RandomAccessAnonymousImplementation - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract class RandomAccessCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.RandomAccess + { + public RandomAccessCallbackHelper() : base("java.util.RandomAccess") {} + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { return base.Invoke(methodName, args); - } - } // end class CallbackHelper - } // end class RandomAccess + } + } // end class RandomAccessCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/RandomAccess.cs.meta b/Runtime/Java/Util/RandomAccess.cs.meta index 08520ba..b7f3b96 100644 --- a/Runtime/Java/Util/RandomAccess.cs.meta +++ b/Runtime/Java/Util/RandomAccess.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d74298ea5b5d39bdb069009324cee5e6 +guid: c078d202d08c3543b49489c2aad67df9 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ResourceBundle.cs b/Runtime/Java/Util/ResourceBundle.cs index 5ec506a..df53385 100644 --- a/Runtime/Java/Util/ResourceBundle.cs +++ b/Runtime/Java/Util/ResourceBundle.cs @@ -10,7 +10,10 @@ public class Control : global::Google.LibraryWrapper.Java.JavaObject { public static global::Java.Util.List FORMAT_DEFAULT { - get => new global::Java.Util.List.AnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + get + { + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId0)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -20,7 +23,10 @@ public class Control : global::Google.LibraryWrapper.Java.JavaObject } public static global::Java.Util.List FORMAT_CLASS { - get => new global::Java.Util.List.AnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + get + { + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId1)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -30,7 +36,10 @@ public class Control : global::Google.LibraryWrapper.Java.JavaObject } public static global::Java.Util.List FORMAT_PROPERTIES { - get => new global::Java.Util.List.AnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + get + { + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.GetStaticObjectField(_classObject, _cachedFieldId2)); + } set { IntPtr valueRef = value.GetRawObject(); @@ -40,13 +49,25 @@ public class Control : global::Google.LibraryWrapper.Java.JavaObject } public static long TTL_DONT_CACHE { - get => AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId3); - set => AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId3, value); + get + { + return AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId3); + } + set + { + AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId3, value); + } } public static long TTL_NO_EXPIRATION_CONTROL { - get => AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId4); - set => AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId4, value); + get + { + return AndroidJNI.GetStaticLongField(_classObject, _cachedFieldId4); + } + set + { + AndroidJNI.SetStaticLongField(_classObject, _cachedFieldId4, value); + } } private static readonly IntPtr _classObject; @@ -96,7 +117,7 @@ public Control() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -133,7 +154,7 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = formats.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = formats.GetRawObject() } }; return new global::Java.Util.ResourceBundle.Control(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -147,7 +168,7 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = formats.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = formats.GetRawObject() } }; return new global::Java.Util.ResourceBundle.Control(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -161,8 +182,8 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) } }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally { @@ -175,8 +196,13 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }}; - return new global::Java.Util.List.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() } + }; + return new global::Java.Util.ListAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally { @@ -189,7 +215,12 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() } + }; return new global::Java.Util.Locale(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally @@ -203,7 +234,15 @@ public Control(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(format) }, new jvalue { l = loader.GetRawObject() }, new jvalue { z = reload }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(format) }, + new jvalue { l = loader.GetRawObject() }, + new jvalue { z = reload } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally @@ -217,7 +256,12 @@ public long GetTimeToLive(global::System.String baseName, global::Java.Util.Loca try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() } + }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -231,7 +275,16 @@ public bool NeedsReload(global::System.String baseName, global::Java.Util.Locale try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }, new jvalue { l = AndroidJNI.NewString(format) }, new jvalue { l = loader.GetRawObject() }, new jvalue { l = bundle.GetRawObject() }, new jvalue { j = loadTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(format) }, + new jvalue { l = loader.GetRawObject() }, + new jvalue { l = bundle.GetRawObject() }, + new jvalue { j = loadTime } + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -245,7 +298,12 @@ public bool NeedsReload(global::System.String baseName, global::Java.Util.Locale try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -259,7 +317,12 @@ public bool NeedsReload(global::System.String baseName, global::Java.Util.Locale try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(bundleName) }, new jvalue { l = AndroidJNI.NewString(suffix) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(bundleName) }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(suffix) } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -331,7 +394,7 @@ public ResourceBundle() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -368,7 +431,7 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -382,7 +445,7 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -396,7 +459,7 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -410,7 +473,7 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.Locale(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -424,7 +487,7 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) } }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally @@ -438,7 +501,12 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = control.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = control.GetRawObject() } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally @@ -452,7 +520,12 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally @@ -466,7 +539,13 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = targetLocale.GetRawObject() }, new jvalue { l = control.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = targetLocale.GetRawObject() }, + new jvalue { l = control.GetRawObject() } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); } finally @@ -480,7 +559,13 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = locale.GetRawObject() }, new jvalue { l = loader.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = locale.GetRawObject() }, + new jvalue { l = loader.GetRawObject() } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); } finally @@ -494,7 +579,14 @@ public ResourceBundle(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(baseName) }, new jvalue { l = targetLocale.GetRawObject() }, new jvalue { l = loader.GetRawObject() }, new jvalue { l = control.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(baseName) }, + new jvalue { l = targetLocale.GetRawObject() }, + new jvalue { l = loader.GetRawObject() }, + new jvalue { l = control.GetRawObject() } + }; return new global::Java.Util.ResourceBundle(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); } finally @@ -508,7 +600,7 @@ public static void ClearCache() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId10, args_); } finally @@ -522,7 +614,7 @@ public static void ClearCache(global::Java.Lang.ClassLoader loader) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = loader.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = loader.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId11, args_); } finally @@ -536,8 +628,8 @@ public static void ClearCache(global::Java.Lang.ClassLoader loader) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally { @@ -550,7 +642,7 @@ public bool ContainsKey(global::System.String key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(key) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(key) } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -564,8 +656,8 @@ public bool ContainsKey(global::System.String key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally { diff --git a/Runtime/Java/Util/ResourceBundle.cs.meta b/Runtime/Java/Util/ResourceBundle.cs.meta index 277ddb9..0924de6 100644 --- a/Runtime/Java/Util/ResourceBundle.cs.meta +++ b/Runtime/Java/Util/ResourceBundle.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9405675e7d3b3b6283b919bfb4112b83 +guid: 022c0d90dd7d382c935bf405f3885025 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ServiceConfigurationError.cs b/Runtime/Java/Util/ServiceConfigurationError.cs index 7f5befb..851f431 100644 --- a/Runtime/Java/Util/ServiceConfigurationError.cs +++ b/Runtime/Java/Util/ServiceConfigurationError.cs @@ -25,7 +25,7 @@ public ServiceConfigurationError(global::System.String msg) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(msg) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(msg) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,12 @@ public ServiceConfigurationError(global::System.String msg, global::Java.Lang.Th try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(msg) }, new jvalue { l = cause.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(msg) }, + new jvalue { l = cause.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/ServiceConfigurationError.cs.meta b/Runtime/Java/Util/ServiceConfigurationError.cs.meta index 0d65ce0..a0d81ba 100644 --- a/Runtime/Java/Util/ServiceConfigurationError.cs.meta +++ b/Runtime/Java/Util/ServiceConfigurationError.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 653336455c0c30f7a4b6d72531a87f73 +guid: 005f5d0ebd1b30a7986cb28bc59cc5a8 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/ServiceLoader.cs b/Runtime/Java/Util/ServiceLoader.cs index 39ced59..7d76519 100644 --- a/Runtime/Java/Util/ServiceLoader.cs +++ b/Runtime/Java/Util/ServiceLoader.cs @@ -53,7 +53,7 @@ public void Reload() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -67,8 +67,8 @@ public void Reload() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally { @@ -81,7 +81,12 @@ public void Reload() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = service.GetRawObject() }, new jvalue { l = loader.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = service.GetRawObject() }, + new jvalue { l = loader.GetRawObject() } + }; return new global::Java.Util.ServiceLoader(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally @@ -95,7 +100,7 @@ public void Reload() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = service.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = service.GetRawObject() } }; return new global::Java.Util.ServiceLoader(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally @@ -109,7 +114,7 @@ public void Reload() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = service.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = service.GetRawObject() } }; return new global::Java.Util.ServiceLoader(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally diff --git a/Runtime/Java/Util/ServiceLoader.cs.meta b/Runtime/Java/Util/ServiceLoader.cs.meta index f3b680f..ae752e1 100644 --- a/Runtime/Java/Util/ServiceLoader.cs.meta +++ b/Runtime/Java/Util/ServiceLoader.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 91fe664e112f3df69bf831e72b45f2ea +guid: 8e2bd96cf5583f0d9d9da59d9ff989ff MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Set.cs b/Runtime/Java/Util/Set.cs index 652c7d2..3f214f0 100644 --- a/Runtime/Java/Util/Set.cs +++ b/Runtime/Java/Util/Set.cs @@ -6,367 +6,383 @@ namespace Java.Util { public interface Set : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Collection where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Set + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static Set() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/Set"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Set"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + } + + global::Java.ExternalType.Java.Util.Spliterator Spliterator() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId0, args_)); } - - public int Size() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class Set - public bool IsEmpty() + public class SetAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.Set where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + + static SetAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/Set"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public SetAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of SetAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public global::Java.Util.Iterator Iterator() + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Add(E e) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsAll(global::Java.Util.Collection c) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId2, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool AddAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId4, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId5, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Clear() + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId6, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int HashCode() + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.ExternalType.Java.Util.Spliterator Spliterator() + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); + } + finally { - return wrapper.GetRawObject(); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId12, args_); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } + + public static explicit operator IntPtr(SetAnonymousImplementation wrapper) + { + return wrapper.GetRawObject(); + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Set + public static explicit operator SetAnonymousImplementation(IntPtr rawObject) { - public CallbackHelper() : base("java.util.Set") {} + return new SetAnonymousImplementation(rawObject); + } - public abstract int Size(); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class SetAnonymousImplementation + + public abstract class SetCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.Set where E : class + { + public SetCallbackHelper() : base("java.util.Set") {} - public abstract bool IsEmpty(); + public abstract int Size(); - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool IsEmpty(); - public abstract global::Java.Util.Iterator Iterator(); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool Add(E e); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool Add(E e); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool RetainAll(global::Java.Util.Collection c); - public abstract void Clear(); + public abstract bool RemoveAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract void Clear(); - public abstract int HashCode(); + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract int HashCode(); + + public abstract global::Java.ExternalType.Java.Util.Spliterator Spliterator(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } - return base.Invoke(methodName, args); + else if (methodName == "spliterator" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Spliterator()); } - } // end class CallbackHelper - } // end class Set + return base.Invoke(methodName, args); + } + } // end class SetCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/Set.cs.meta b/Runtime/Java/Util/Set.cs.meta index 0eca36d..1de21ae 100644 --- a/Runtime/Java/Util/Set.cs.meta +++ b/Runtime/Java/Util/Set.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cc2ede54b8a636788c78371c66e141f5 +guid: da5e030b907e30dcbb9a36579e37c8e2 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/SimpleTimeZone.cs b/Runtime/Java/Util/SimpleTimeZone.cs index 985bb7c..f21b5c4 100644 --- a/Runtime/Java/Util/SimpleTimeZone.cs +++ b/Runtime/Java/Util/SimpleTimeZone.cs @@ -8,18 +8,36 @@ public class SimpleTimeZone : global::Java.Util.TimeZone { public static int WALL_TIME { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int STANDARD_TIME { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } public static int UTC_TIME { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId2); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId2, value); + } } private static readonly IntPtr _classObject; @@ -71,7 +89,12 @@ public SimpleTimeZone(int rawOffset, global::System.String ID) : base(IntPtr.Zer try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = rawOffset }, new jvalue { l = AndroidJNI.NewString(ID) }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = rawOffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -86,7 +109,20 @@ public SimpleTimeZone(int rawOffset, global::System.String ID, int startMonth, i try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = rawOffset }, new jvalue { l = AndroidJNI.NewString(ID) }, new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startDayOfWeek }, new jvalue { i = startTime }, new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endDayOfWeek }, new jvalue { i = endTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = rawOffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) }, + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startDayOfWeek }, + new jvalue { i = startTime }, + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endDayOfWeek }, + new jvalue { i = endTime } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -101,7 +137,21 @@ public SimpleTimeZone(int rawOffset, global::System.String ID, int startMonth, i try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = rawOffset }, new jvalue { l = AndroidJNI.NewString(ID) }, new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startDayOfWeek }, new jvalue { i = startTime }, new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endDayOfWeek }, new jvalue { i = endTime }, new jvalue { i = dstSavings }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = rawOffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) }, + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startDayOfWeek }, + new jvalue { i = startTime }, + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endDayOfWeek }, + new jvalue { i = endTime }, + new jvalue { i = dstSavings } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -116,7 +166,23 @@ public SimpleTimeZone(int rawOffset, global::System.String ID, int startMonth, i try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = rawOffset }, new jvalue { l = AndroidJNI.NewString(ID) }, new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startDayOfWeek }, new jvalue { i = startTime }, new jvalue { i = startTimeMode }, new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endDayOfWeek }, new jvalue { i = endTime }, new jvalue { i = endTimeMode }, new jvalue { i = dstSavings }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = rawOffset }, + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) }, + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startDayOfWeek }, + new jvalue { i = startTime }, + new jvalue { i = startTimeMode }, + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endDayOfWeek }, + new jvalue { i = endTime }, + new jvalue { i = endTimeMode }, + new jvalue { i = dstSavings } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -153,7 +219,7 @@ public void SetStartYear(int year) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = year }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = year } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -167,7 +233,14 @@ public void SetStartRule(int startMonth, int startDay, int startDayOfWeek, int s try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startDayOfWeek }, new jvalue { i = startTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startDayOfWeek }, + new jvalue { i = startTime } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -181,7 +254,13 @@ public void SetStartRule(int startMonth, int startDay, int startTime) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startTime } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -195,7 +274,15 @@ public void SetStartRule(int startMonth, int startDay, int startDayOfWeek, int s try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = startMonth }, new jvalue { i = startDay }, new jvalue { i = startDayOfWeek }, new jvalue { i = startTime }, new jvalue { z = after }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = startMonth }, + new jvalue { i = startDay }, + new jvalue { i = startDayOfWeek }, + new jvalue { i = startTime }, + new jvalue { z = after } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -209,7 +296,14 @@ public void SetEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endDayOfWeek }, new jvalue { i = endTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endDayOfWeek }, + new jvalue { i = endTime } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -223,7 +317,13 @@ public void SetEndRule(int endMonth, int endDay, int endTime) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endTime }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endTime } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -237,7 +337,15 @@ public void SetEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime, try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = endMonth }, new jvalue { i = endDay }, new jvalue { i = endDayOfWeek }, new jvalue { i = endTime }, new jvalue { z = after }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = endMonth }, + new jvalue { i = endDay }, + new jvalue { i = endDayOfWeek }, + new jvalue { i = endTime }, + new jvalue { z = after } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -251,7 +359,7 @@ public void SetDSTSavings(int millisSavedDuringDST) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = millisSavedDuringDST }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = millisSavedDuringDST } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -265,7 +373,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -279,7 +387,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); } finally diff --git a/Runtime/Java/Util/SimpleTimeZone.cs.meta b/Runtime/Java/Util/SimpleTimeZone.cs.meta index 4955370..264a060 100644 --- a/Runtime/Java/Util/SimpleTimeZone.cs.meta +++ b/Runtime/Java/Util/SimpleTimeZone.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 334db7bbab893a478f5bc219ed78666f +guid: 8f1c226f23503622bdf851521cb239dd MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/SortedMap.cs b/Runtime/Java/Util/SortedMap.cs index 332b1c8..e98e2cf 100644 --- a/Runtime/Java/Util/SortedMap.cs +++ b/Runtime/Java/Util/SortedMap.cs @@ -6,558 +6,578 @@ namespace Java.Util { public interface SortedMap : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Map where K : class where V : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.SortedMap + private static readonly IntPtr _classObject; + + static SortedMap() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/SortedMap"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "firstKey", "()Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "lastKey", "()Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/SortedMap"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + } + + global::Java.Util.Comparator Comparator(); + + global::Java.Util.SortedMap SubMap(K fromKey, K toKey); + + global::Java.Util.SortedMap HeadMap(K toKey); + + global::Java.Util.SortedMap TailMap(K fromKey); + + K FirstKey(); + + K LastKey(); + } // end class SortedMap - public global::Java.Util.Comparator Comparator() + public class SortedMapAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.SortedMap where K : class where V : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + private static readonly IntPtr _cachedMethodId19; + + static SortedMapAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/SortedMap"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "headMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "tailMap", "(Ljava/lang/Object;)Ljava/util/SortedMap;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "firstKey", "()Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "lastKey", "()Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "keySet", "()Ljava/util/Set;"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "values", "()Ljava/util/Collection;"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "entrySet", "()Ljava/util/Set;"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "containsKey", "(Ljava/lang/Object;)Z"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "containsValue", "(Ljava/lang/Object;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "get", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Ljava/lang/Object;"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "putAll", "(Ljava/util/Map;)V"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public SortedMapAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public global::Java.Util.SortedMap SubMap(K fromKey, K toKey) + try { - try + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of SortedMapAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } - - public global::Java.Util.SortedMap HeadMap(K toKey) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public global::Java.Util.SortedMap TailMap(K fromKey) + public global::Java.Util.Comparator Comparator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K FirstKey() + public global::Java.Util.SortedMap SubMap(K fromKey, K toKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + ToJvalue(toKey) + }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public K LastKey() + public global::Java.Util.SortedMap HeadMap(K toKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(K) == typeof(global::System.String)) - { - return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(toKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Set KeySet() + public global::Java.Util.SortedMap TailMap(K fromKey) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(fromKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Collection Values() + public K FirstKey() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Collection.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Set> EntrySet() + public K LastKey() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(K) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Set>.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int Size() + public global::Java.Util.Set KeySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool IsEmpty() + public global::Java.Util.Collection Values() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.CollectionAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + public global::Java.Util.Set> EntrySet() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.SetAnonymousImplementation>(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = value.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public V Put(K key, V value) + public bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + public bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = key.GetRawObject() }}; - if (typeof(V) == typeof(global::System.String)) - { - return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = value.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void PutAll(global::Java.Util.Map m) + public V Get(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public void Clear() + public V Put(K key, V value) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public V Remove(global::Google.LibraryWrapper.Java.JavaObject key) + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = key.GetRawObject() } }; + if (typeof(V) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); + return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public int HashCode() + public void PutAll(global::Java.Util.Map m) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId19, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); + } + finally { - return new AnonymousImplementation(rawObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try + { + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId19, args_); + } + finally { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PopLocalFrame(IntPtr.Zero); } - } // end class AnonymousImplementation + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.SortedMap + public static explicit operator IntPtr(SortedMapAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.SortedMap") {} + return wrapper.GetRawObject(); + } - public abstract global::Java.Util.Comparator Comparator(); + public static explicit operator SortedMapAnonymousImplementation(IntPtr rawObject) + { + return new SortedMapAnonymousImplementation(rawObject); + } - public abstract global::Java.Util.SortedMap SubMap(K fromKey, K toKey); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class SortedMapAnonymousImplementation - public abstract global::Java.Util.SortedMap HeadMap(K toKey); + public abstract class SortedMapCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.SortedMap where K : class where V : class + { + public SortedMapCallbackHelper() : base("java.util.SortedMap") {} - public abstract global::Java.Util.SortedMap TailMap(K fromKey); + public abstract global::Java.Util.Comparator Comparator(); - public abstract K FirstKey(); + public abstract global::Java.Util.SortedMap SubMap(K fromKey, K toKey); - public abstract K LastKey(); + public abstract global::Java.Util.SortedMap HeadMap(K toKey); - public abstract global::Java.Util.Set KeySet(); + public abstract global::Java.Util.SortedMap TailMap(K fromKey); - public abstract global::Java.Util.Collection Values(); + public abstract K FirstKey(); - public abstract global::Java.Util.Set> EntrySet(); + public abstract K LastKey(); - public abstract int Size(); + public abstract global::Java.Util.Set KeySet(); - public abstract bool IsEmpty(); + public abstract global::Java.Util.Collection Values(); - public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract global::Java.Util.Set> EntrySet(); - public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); + public abstract int Size(); - public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract bool IsEmpty(); - public abstract V Put(K key, V value); + public abstract bool ContainsKey(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); + public abstract bool ContainsValue(global::Google.LibraryWrapper.Java.JavaObject value); - public abstract void PutAll(global::Java.Util.Map m); + public abstract V Get(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract void Clear(); + public abstract V Put(K key, V value); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract V Remove(global::Google.LibraryWrapper.Java.JavaObject key); - public abstract int HashCode(); + public abstract void PutAll(global::Java.Util.Map m); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract void Clear(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "comparator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); } else if (methodName == "subMap" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (K) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (K) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "headMap" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "tailMap" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailMap(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "firstKey" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstKey()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(FirstKey()); } else if (methodName == "lastKey" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastKey()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(LastKey()); } else if (methodName == "keySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(KeySet()); } else if (methodName == "values" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Values()); } else if (methodName == "entrySet" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(EntrySet()); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "containsKey" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsKey(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsValue" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsValue(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "get" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Get(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "put" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Put(args[0] is global::System.String ? (K) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (V) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "putAll" && args.Length == 1) { - PutAll(new global::Java.Util.Map.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); - return null; + PutAll(new global::Java.Util.MapAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject())); + return null; } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - global::Java.Util.Comparator Comparator(); - - global::Java.Util.SortedMap SubMap(K fromKey, K toKey); - - global::Java.Util.SortedMap HeadMap(K toKey); - - global::Java.Util.SortedMap TailMap(K fromKey); - - K FirstKey(); - - K LastKey(); - } // end class SortedMap + } + } // end class SortedMapCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/SortedMap.cs.meta b/Runtime/Java/Util/SortedMap.cs.meta index 595c147..262dbcc 100644 --- a/Runtime/Java/Util/SortedMap.cs.meta +++ b/Runtime/Java/Util/SortedMap.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c600e4f2ca26380fae6d83aa96db0c48 +guid: 5861918e01db3981b0a13b70f0c2a5f7 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/SortedSet.cs b/Runtime/Java/Util/SortedSet.cs index ded27fe..68582fa 100644 --- a/Runtime/Java/Util/SortedSet.cs +++ b/Runtime/Java/Util/SortedSet.cs @@ -6,527 +6,548 @@ namespace Java.Util { public interface SortedSet : global::Google.LibraryWrapper.Java.JavaInterface, global::Java.Util.Set where E : class { - public new class AnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.SortedSet + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + + static SortedSet() { - private static readonly IntPtr _classObject; - private static readonly IntPtr _cachedMethodId0; - private static readonly IntPtr _cachedMethodId1; - private static readonly IntPtr _cachedMethodId2; - private static readonly IntPtr _cachedMethodId3; - private static readonly IntPtr _cachedMethodId4; - private static readonly IntPtr _cachedMethodId5; - private static readonly IntPtr _cachedMethodId6; - private static readonly IntPtr _cachedMethodId7; - private static readonly IntPtr _cachedMethodId8; - private static readonly IntPtr _cachedMethodId9; - private static readonly IntPtr _cachedMethodId10; - private static readonly IntPtr _cachedMethodId11; - private static readonly IntPtr _cachedMethodId12; - private static readonly IntPtr _cachedMethodId13; - private static readonly IntPtr _cachedMethodId14; - private static readonly IntPtr _cachedMethodId15; - private static readonly IntPtr _cachedMethodId16; - private static readonly IntPtr _cachedMethodId17; - private static readonly IntPtr _cachedMethodId18; - private static readonly IntPtr _cachedMethodId19; - - static AnonymousImplementation() - { - AndroidJNI.AttachCurrentThread(); - IntPtr classObject = AndroidJNI.FindClass("java/util/SortedSet"); - _classObject = AndroidJNI.NewGlobalRef(classObject); - AndroidJNI.DeleteLocalRef(classObject); - _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); - _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); - _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "first", "()Ljava/lang/Object;"); - _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "last", "()Ljava/lang/Object;"); - _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); - _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); - _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); - _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); - _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); - _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); - _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); - _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); - _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); - _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); - _cachedMethodId19 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); - } - - public AnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) - { - if (rawObject == IntPtr.Zero) - { - return; - } - try - { - AndroidJNI.PushLocalFrame(0); - IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); - if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) - { - throw new ArgumentException("The provided reference is not an instance of AnonymousImplementation."); - } - _rawObject = AndroidJNI.NewGlobalRef(rawObject); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } - } + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/SortedSet"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "spliterator", "()Ljava/util/Spliterator;"); + } + + global::Java.Util.Comparator Comparator(); + + global::Java.Util.SortedSet SubSet(E fromElement, E toElement); - public global::Java.Util.Comparator Comparator() + global::Java.Util.SortedSet HeadSet(E toElement); + + global::Java.Util.SortedSet TailSet(E fromElement); + + E First(); + + E Last(); + + global::Java.ExternalType.Java.Util.Spliterator Spliterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(GetRawObject(), _cachedMethodId0, args_)); } - - public global::Java.Util.SortedSet SubSet(E fromElement, E toElement) + finally { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } + } // end class SortedSet - public global::Java.Util.SortedSet HeadSet(E toElement) + public class SortedSetAnonymousImplementation : global::Google.LibraryWrapper.Java.JavaObject, global::Java.Util.SortedSet where E : class + { + private static readonly IntPtr _classObject; + private static readonly IntPtr _cachedMethodId0; + private static readonly IntPtr _cachedMethodId1; + private static readonly IntPtr _cachedMethodId2; + private static readonly IntPtr _cachedMethodId3; + private static readonly IntPtr _cachedMethodId4; + private static readonly IntPtr _cachedMethodId5; + private static readonly IntPtr _cachedMethodId6; + private static readonly IntPtr _cachedMethodId7; + private static readonly IntPtr _cachedMethodId8; + private static readonly IntPtr _cachedMethodId9; + private static readonly IntPtr _cachedMethodId10; + private static readonly IntPtr _cachedMethodId11; + private static readonly IntPtr _cachedMethodId12; + private static readonly IntPtr _cachedMethodId13; + private static readonly IntPtr _cachedMethodId14; + private static readonly IntPtr _cachedMethodId15; + private static readonly IntPtr _cachedMethodId16; + private static readonly IntPtr _cachedMethodId17; + private static readonly IntPtr _cachedMethodId18; + + static SortedSetAnonymousImplementation() + { + AndroidJNI.AttachCurrentThread(); + IntPtr classObject = AndroidJNI.FindClass("java/util/SortedSet"); + _classObject = AndroidJNI.NewGlobalRef(classObject); + AndroidJNI.DeleteLocalRef(classObject); + _cachedMethodId0 = AndroidJNI.GetMethodID(_classObject, "comparator", "()Ljava/util/Comparator;"); + _cachedMethodId1 = AndroidJNI.GetMethodID(_classObject, "subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId2 = AndroidJNI.GetMethodID(_classObject, "headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId3 = AndroidJNI.GetMethodID(_classObject, "tailSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;"); + _cachedMethodId4 = AndroidJNI.GetMethodID(_classObject, "first", "()Ljava/lang/Object;"); + _cachedMethodId5 = AndroidJNI.GetMethodID(_classObject, "last", "()Ljava/lang/Object;"); + _cachedMethodId6 = AndroidJNI.GetMethodID(_classObject, "size", "()I"); + _cachedMethodId7 = AndroidJNI.GetMethodID(_classObject, "isEmpty", "()Z"); + _cachedMethodId8 = AndroidJNI.GetMethodID(_classObject, "contains", "(Ljava/lang/Object;)Z"); + _cachedMethodId9 = AndroidJNI.GetMethodID(_classObject, "iterator", "()Ljava/util/Iterator;"); + _cachedMethodId10 = AndroidJNI.GetMethodID(_classObject, "add", "(Ljava/lang/Object;)Z"); + _cachedMethodId11 = AndroidJNI.GetMethodID(_classObject, "remove", "(Ljava/lang/Object;)Z"); + _cachedMethodId12 = AndroidJNI.GetMethodID(_classObject, "containsAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId13 = AndroidJNI.GetMethodID(_classObject, "addAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId14 = AndroidJNI.GetMethodID(_classObject, "retainAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId15 = AndroidJNI.GetMethodID(_classObject, "removeAll", "(Ljava/util/Collection;)Z"); + _cachedMethodId16 = AndroidJNI.GetMethodID(_classObject, "clear", "()V"); + _cachedMethodId17 = AndroidJNI.GetMethodID(_classObject, "equals", "(Ljava/lang/Object;)Z"); + _cachedMethodId18 = AndroidJNI.GetMethodID(_classObject, "hashCode", "()I"); + } + + public SortedSetAnonymousImplementation(IntPtr rawObject) : base(IntPtr.Zero) + { + if (rawObject == IntPtr.Zero) { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + return; } - - public global::Java.Util.SortedSet TailSet(E fromElement) + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); - } - finally + AndroidJNI.PushLocalFrame(0); + IntPtr instanceClassObject_ = AndroidJNI.GetObjectClass(rawObject); + if (!AndroidJNI.IsAssignableFrom(instanceClassObject_, _classObject)) { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + throw new ArgumentException("The provided reference is not an instance of SortedSetAnonymousImplementation."); } + _rawObject = AndroidJNI.NewGlobalRef(rawObject); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public E First() + public global::Java.Util.Comparator Comparator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public E Last() + public global::Java.Util.SortedSet SubSet(E fromElement, E toElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - if (typeof(E) == typeof(global::System.String)) - { - return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); - } - else - { - IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); - return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); - } - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + ToJvalue(toElement) + }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.ExternalType.Java.Util.Spliterator Spliterator() + public global::Java.Util.SortedSet HeadSet(E toElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(toElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int Size() + public global::Java.Util.SortedSet TailSet(E fromElement) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(fromElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool IsEmpty() + public E First() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + public E Last() + { + try { - try + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + if (typeof(E) == typeof(global::System.String)) { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId9, args_); + return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId5, args_); } - finally + else { - AndroidJNI.PopLocalFrame(IntPtr.Zero); + IntPtr result_ = AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_); + return Google.LibraryWrapper.Java.Utils.CreateGenericInstance(result_); } } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public global::Java.Util.Iterator Iterator() + public int Size() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Add(E e) + public bool IsEmpty() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId7, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + public bool Contains(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId8, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool ContainsAll(global::Java.Util.Collection c) + public global::Java.Util.Iterator Iterator() + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId9, args_)); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool AddAll(global::Java.Util.Collection c) + public bool Add(E e) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public bool RetainAll(global::Java.Util.Collection c) + public bool Remove(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool RemoveAll(global::Java.Util.Collection c) + public bool ContainsAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId16, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public void Clear() + public bool AddAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + public bool RetainAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; - return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); + } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); } + } - public int HashCode() + public bool RemoveAll(global::Java.Util.Collection c) + { + try { - try - { - AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId19, args_); - } - finally - { - AndroidJNI.PopLocalFrame(IntPtr.Zero); - } + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId15, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator IntPtr(AnonymousImplementation wrapper) + public void Clear() + { + try { - return wrapper.GetRawObject(); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId16, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public static explicit operator AnonymousImplementation(IntPtr rawObject) + public bool Equals(global::Google.LibraryWrapper.Java.JavaObject o) + { + try { - return new AnonymousImplementation(rawObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; + return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId17, args_); } + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new static IntPtr GetRawClass() + public int HashCode() + { + try { - return AndroidJNI.NewLocalRef(_classObject); + AndroidJNI.PushLocalFrame(0); + jvalue[] args_ = new jvalue[] { }; + return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId18, args_); } - } // end class AnonymousImplementation + finally + { + AndroidJNI.PopLocalFrame(IntPtr.Zero); + } + } - public new abstract class CallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.SortedSet + public static explicit operator IntPtr(SortedSetAnonymousImplementation wrapper) { - public CallbackHelper() : base("java.util.SortedSet") {} + return wrapper.GetRawObject(); + } - public abstract global::Java.Util.Comparator Comparator(); + public static explicit operator SortedSetAnonymousImplementation(IntPtr rawObject) + { + return new SortedSetAnonymousImplementation(rawObject); + } - public abstract global::Java.Util.SortedSet SubSet(E fromElement, E toElement); + public new static IntPtr GetRawClass() + { + return AndroidJNI.NewLocalRef(_classObject); + } + } // end class SortedSetAnonymousImplementation - public abstract global::Java.Util.SortedSet HeadSet(E toElement); + public abstract class SortedSetCallbackHelper : global::Google.LibraryWrapper.Java.JavaProxy, global::Java.Util.SortedSet where E : class + { + public SortedSetCallbackHelper() : base("java.util.SortedSet") {} - public abstract global::Java.Util.SortedSet TailSet(E fromElement); + public abstract global::Java.Util.Comparator Comparator(); - public abstract E First(); + public abstract global::Java.Util.SortedSet SubSet(E fromElement, E toElement); - public abstract E Last(); + public abstract global::Java.Util.SortedSet HeadSet(E toElement); - public abstract int Size(); + public abstract global::Java.Util.SortedSet TailSet(E fromElement); - public abstract bool IsEmpty(); + public abstract E First(); - public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract E Last(); - public abstract global::Java.Util.Iterator Iterator(); + public abstract global::Java.ExternalType.Java.Util.Spliterator Spliterator(); - public abstract bool Add(E e); + public abstract int Size(); - public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool IsEmpty(); - public abstract bool ContainsAll(global::Java.Util.Collection c); + public abstract bool Contains(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract bool AddAll(global::Java.Util.Collection c); + public abstract global::Java.Util.Iterator Iterator(); - public abstract bool RetainAll(global::Java.Util.Collection c); + public abstract bool Add(E e); - public abstract bool RemoveAll(global::Java.Util.Collection c); + public abstract bool Remove(global::Google.LibraryWrapper.Java.JavaObject o); - public abstract void Clear(); + public abstract bool ContainsAll(global::Java.Util.Collection c); - public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + public abstract bool AddAll(global::Java.Util.Collection c); - public abstract int HashCode(); + public abstract bool RetainAll(global::Java.Util.Collection c); - public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) - { + public abstract bool RemoveAll(global::Java.Util.Collection c); + + public abstract void Clear(); + + public abstract bool Equals(global::Google.LibraryWrapper.Java.JavaObject o); + + public abstract int HashCode(); + + public override sealed AndroidJavaObject Invoke(global::System.String methodName, global::System.Object[] args) + { if (methodName == "comparator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Comparator()); } else if (methodName == "subSet" && args.Length == 2) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(SubSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()), args[1] is global::System.String ? (E) (global::System.Object) args[1] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[1]).GetRawObject()))); } else if (methodName == "headSet" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HeadSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "tailSet" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(TailSet(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "first" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(First()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(First()); } else if (methodName == "last" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Last()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Last()); + } + else if (methodName == "spliterator" && args.Length == 0) + { + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Spliterator()); } else if (methodName == "size" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Size()); } else if (methodName == "isEmpty" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(IsEmpty()); } else if (methodName == "contains" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Contains(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "iterator" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Iterator()); } else if (methodName == "add" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Add(args[0] is global::System.String ? (E) (global::System.Object) args[0] : Google.LibraryWrapper.Java.Utils.CreateGenericInstance(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "remove" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Remove(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "containsAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(ContainsAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "addAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(AddAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "retainAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RetainAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "removeAll" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.Collection.AnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(RemoveAll(new global::Java.Util.CollectionAnonymousImplementation(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "clear" && args.Length == 0) { - Clear(); - return null; + Clear(); + return null; } else if (methodName == "equals" && args.Length == 1) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(Equals(new global::Google.LibraryWrapper.Java.JavaObject(((AndroidJavaObject) args[0]).GetRawObject()))); } else if (methodName == "hashCode" && args.Length == 0) { - return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); + return Google.LibraryWrapper.Java.Utils.ToAndroidJavaObject(HashCode()); } return base.Invoke(methodName, args); - } - } // end class CallbackHelper - - global::Java.Util.Comparator Comparator(); - - global::Java.Util.SortedSet SubSet(E fromElement, E toElement); - - global::Java.Util.SortedSet HeadSet(E toElement); - - global::Java.Util.SortedSet TailSet(E fromElement); - - E First(); - - E Last(); - } // end class SortedSet + } + } // end class SortedSetCallbackHelper } // end namespace Java.Util diff --git a/Runtime/Java/Util/SortedSet.cs.meta b/Runtime/Java/Util/SortedSet.cs.meta index aeb50e8..ca28e5a 100644 --- a/Runtime/Java/Util/SortedSet.cs.meta +++ b/Runtime/Java/Util/SortedSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4afd5a5cdceb370e80df5505a29d05cd +guid: 94d45a465cf23bf5aa0a4ca4ea529e4a MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Spliterators.cs b/Runtime/Java/Util/Spliterators.cs index 65e3033..4410722 100644 --- a/Runtime/Java/Util/Spliterators.cs +++ b/Runtime/Java/Util/Spliterators.cs @@ -31,7 +31,7 @@ public AbstractDoubleSpliterator() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -68,8 +68,8 @@ public AbstractDoubleSpliterator(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfDouble.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfDoubleAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -82,7 +82,7 @@ public long EstimateSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -96,7 +96,7 @@ public int Characteristics() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -146,7 +146,7 @@ public AbstractIntSpliterator() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -183,8 +183,8 @@ public AbstractIntSpliterator(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfInt.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfIntAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -197,7 +197,7 @@ public long EstimateSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -211,7 +211,7 @@ public int Characteristics() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -261,7 +261,7 @@ public AbstractLongSpliterator() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -298,8 +298,8 @@ public AbstractLongSpliterator(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfLong.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfLongAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -312,7 +312,7 @@ public long EstimateSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -326,7 +326,7 @@ public int Characteristics() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -376,7 +376,7 @@ public AbstractSpliterator() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -413,8 +413,8 @@ public AbstractSpliterator(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -427,7 +427,7 @@ public long EstimateSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -441,7 +441,7 @@ public int Characteristics() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -537,8 +537,8 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally { @@ -551,8 +551,8 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfInt.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfIntAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally { @@ -565,8 +565,8 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfLong.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfLongAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId2, args_)); } finally { @@ -579,8 +579,8 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfDouble.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfDoubleAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId3, args_)); } finally { @@ -593,8 +593,13 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = c.GetRawObject() }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId4, args_)); } finally { @@ -607,8 +612,14 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { j = size }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { j = size }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId5, args_)); } finally { @@ -621,8 +632,13 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId6, args_)); } finally { @@ -635,8 +651,14 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { j = size }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfInt.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { j = size }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfIntAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId7, args_)); } finally { @@ -649,8 +671,13 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfInt.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfIntAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId8, args_)); } finally { @@ -663,8 +690,14 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { j = size }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfLong.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { j = size }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfLongAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId9, args_)); } finally { @@ -677,8 +710,13 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfLong.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfLongAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId10, args_)); } finally { @@ -691,8 +729,14 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { j = size }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfDouble.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { j = size }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfDoubleAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId11, args_)); } finally { @@ -705,8 +749,13 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = iterator.GetRawObject() }, new jvalue { i = characteristics }}; - return new global::Java.ExternalType.Java.Util.Spliterator.OfDouble.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = iterator.GetRawObject() }, + new jvalue { i = characteristics } + }; + return new global::Java.ExternalType.Java.Util.Spliterator.OfDoubleAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId12, args_)); } finally { @@ -719,8 +768,8 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = spliterator.GetRawObject() }}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); + jvalue[] args_ = new jvalue[] { new jvalue { l = spliterator.GetRawObject() } }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId13, args_)); } finally { @@ -733,7 +782,7 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = spliterator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = spliterator.GetRawObject() } }; return new global::Java.ExternalType.Java.Util.PrimitiveIterator.OfInt(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId14, args_)); } finally @@ -747,7 +796,7 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = spliterator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = spliterator.GetRawObject() } }; return new global::Java.ExternalType.Java.Util.PrimitiveIterator.OfLong(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId15, args_)); } finally @@ -761,7 +810,7 @@ public Spliterators(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = spliterator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = spliterator.GetRawObject() } }; return new global::Java.ExternalType.Java.Util.PrimitiveIterator.OfDouble(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId16, args_)); } finally diff --git a/Runtime/Java/Util/Spliterators.cs.meta b/Runtime/Java/Util/Spliterators.cs.meta index d70611f..def341e 100644 --- a/Runtime/Java/Util/Spliterators.cs.meta +++ b/Runtime/Java/Util/Spliterators.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2cae19bb385c389c8f510ca4e523b32e +guid: 08ca3eb9822e369fac64629ba122d9eb MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/SplittableRandom.cs b/Runtime/Java/Util/SplittableRandom.cs index bc50e8f..3009de1 100644 --- a/Runtime/Java/Util/SplittableRandom.cs +++ b/Runtime/Java/Util/SplittableRandom.cs @@ -71,7 +71,7 @@ public SplittableRandom(long seed) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = seed }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = seed } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -86,7 +86,7 @@ public SplittableRandom() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -123,7 +123,7 @@ public SplittableRandom(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.SplittableRandom(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -137,7 +137,7 @@ public int NextInt() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -151,7 +151,7 @@ public int NextInt(int bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = bound }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = bound } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -165,7 +165,12 @@ public int NextInt(int origin, int bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = origin }, new jvalue { i = bound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = origin }, + new jvalue { i = bound } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -179,7 +184,7 @@ public long NextLong() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -193,7 +198,7 @@ public long NextLong(long bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = bound }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = bound } }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -207,7 +212,12 @@ public long NextLong(long origin, long bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = origin }, new jvalue { j = bound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = origin }, + new jvalue { j = bound } + }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -221,7 +231,7 @@ public double NextDouble() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -235,7 +245,7 @@ public double NextDouble(double bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = bound }}; + jvalue[] args_ = new jvalue[] { new jvalue { d = bound } }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -249,7 +259,12 @@ public double NextDouble(double origin, double bound) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = origin }, new jvalue { d = bound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = origin }, + new jvalue { d = bound } + }; return AndroidJNI.CallDoubleMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -263,7 +278,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -277,7 +292,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId11, args_)); } finally @@ -291,7 +306,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally @@ -305,7 +320,13 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { i = randomNumberOrigin }, new jvalue { i = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { i = randomNumberOrigin }, + new jvalue { i = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId13, args_)); } finally @@ -319,7 +340,12 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = randomNumberOrigin }, new jvalue { i = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = randomNumberOrigin }, + new jvalue { i = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.IntStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally @@ -333,7 +359,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId15, args_)); } finally @@ -347,7 +373,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -361,7 +387,13 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { j = randomNumberOrigin }, new jvalue { j = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { j = randomNumberOrigin }, + new jvalue { j = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally @@ -375,7 +407,12 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = randomNumberOrigin }, new jvalue { j = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = randomNumberOrigin }, + new jvalue { j = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.LongStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally @@ -389,7 +426,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = streamSize } }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally @@ -403,7 +440,7 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); } finally @@ -417,7 +454,13 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = streamSize }, new jvalue { d = randomNumberOrigin }, new jvalue { d = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = streamSize }, + new jvalue { d = randomNumberOrigin }, + new jvalue { d = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally @@ -431,7 +474,12 @@ public bool NextBoolean() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { d = randomNumberOrigin }, new jvalue { d = randomNumberBound }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { d = randomNumberOrigin }, + new jvalue { d = randomNumberBound } + }; return new global::Java.ExternalType.Java.Util.Stream.DoubleStream(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } finally diff --git a/Runtime/Java/Util/SplittableRandom.cs.meta b/Runtime/Java/Util/SplittableRandom.cs.meta index da5c1c6..df2d0e7 100644 --- a/Runtime/Java/Util/SplittableRandom.cs.meta +++ b/Runtime/Java/Util/SplittableRandom.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e7b0c06d145337fbf307a72bcfaf576 +guid: c52f3a47f0f1363ca0aede2716da4d2e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Stack.cs b/Runtime/Java/Util/Stack.cs index b71ece0..27fa46e 100644 --- a/Runtime/Java/Util/Stack.cs +++ b/Runtime/Java/Util/Stack.cs @@ -33,7 +33,7 @@ public Stack() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -70,7 +70,7 @@ public E Push(E item) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(item)}; + jvalue[] args_ = new jvalue[] { ToJvalue(item) }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); @@ -92,7 +92,7 @@ public E Pop() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -114,7 +114,7 @@ public E Peek() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); @@ -136,7 +136,7 @@ public bool Empty() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -150,7 +150,7 @@ public int Search(global::Google.LibraryWrapper.Java.JavaObject o) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = o.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally diff --git a/Runtime/Java/Util/Stack.cs.meta b/Runtime/Java/Util/Stack.cs.meta index 84c3496..a639ab6 100644 --- a/Runtime/Java/Util/Stack.cs.meta +++ b/Runtime/Java/Util/Stack.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e2c86d7caab39e9832377230e7df529 +guid: e7cd4c9f4e3c3e85b2d3c1c22caf7ba1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/StringJoiner.cs b/Runtime/Java/Util/StringJoiner.cs index f303330..7fb3b85 100644 --- a/Runtime/Java/Util/StringJoiner.cs +++ b/Runtime/Java/Util/StringJoiner.cs @@ -33,7 +33,7 @@ public StringJoiner(global::Java.Lang.CharSequence delimiter) : base(IntPtr.Zero try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = delimiter.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = delimiter.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -48,7 +48,13 @@ public StringJoiner(global::Java.Lang.CharSequence delimiter, global::Java.Lang. try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = delimiter.GetRawObject() }, new jvalue { l = prefix.GetRawObject() }, new jvalue { l = suffix.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = delimiter.GetRawObject() }, + new jvalue { l = prefix.GetRawObject() }, + new jvalue { l = suffix.GetRawObject() } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -85,7 +91,7 @@ public StringJoiner(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = emptyValue.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = emptyValue.GetRawObject() } }; return new global::Java.Util.StringJoiner(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally @@ -99,7 +105,7 @@ public StringJoiner(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = newElement.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = newElement.GetRawObject() } }; return new global::Java.Util.StringJoiner(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally @@ -113,7 +119,7 @@ public StringJoiner(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return new global::Java.Util.StringJoiner(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally @@ -127,7 +133,7 @@ public int Length() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally diff --git a/Runtime/Java/Util/StringJoiner.cs.meta b/Runtime/Java/Util/StringJoiner.cs.meta index 9dfe4da..5ff3bd2 100644 --- a/Runtime/Java/Util/StringJoiner.cs.meta +++ b/Runtime/Java/Util/StringJoiner.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 525a654dd4073504a8e0bd2196adbc2e +guid: 9d150b4f5c353ced97639eb9198b3bab MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/TimeZone.cs b/Runtime/Java/Util/TimeZone.cs index d9f9d24..0cad3f9 100644 --- a/Runtime/Java/Util/TimeZone.cs +++ b/Runtime/Java/Util/TimeZone.cs @@ -8,13 +8,25 @@ public class TimeZone : global::Google.LibraryWrapper.Java.JavaObject, global::J { public static int SHORT { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId0); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId0, value); + } } public static int LONG { - get => AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); - set => AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + get + { + return AndroidJNI.GetStaticIntField(_classObject, _cachedFieldId1); + } + set + { + AndroidJNI.SetStaticIntField(_classObject, _cachedFieldId1, value); + } } private static readonly IntPtr _classObject; @@ -80,7 +92,7 @@ public TimeZone() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -117,7 +129,16 @@ public int GetOffset(int era, int year, int month, int day, int dayOfWeek, int m try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = era }, new jvalue { i = year }, new jvalue { i = month }, new jvalue { i = day }, new jvalue { i = dayOfWeek }, new jvalue { i = milliseconds }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = era }, + new jvalue { i = year }, + new jvalue { i = month }, + new jvalue { i = day }, + new jvalue { i = dayOfWeek }, + new jvalue { i = milliseconds } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -131,7 +152,7 @@ public int GetOffset(long date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = date }}; + jvalue[] args_ = new jvalue[] { new jvalue { j = date } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -145,7 +166,7 @@ public void SetRawOffset(int offsetMillis) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = offsetMillis }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = offsetMillis } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -159,7 +180,7 @@ public int GetRawOffset() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -173,7 +194,7 @@ public int GetRawOffset() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -187,7 +208,7 @@ public void SetID(global::System.String ID) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(ID) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -201,7 +222,7 @@ public void SetID(global::System.String ID) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -215,7 +236,7 @@ public void SetID(global::System.String ID) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = locale.GetRawObject() } }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -229,7 +250,12 @@ public void SetID(global::System.String ID) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = daylight }, new jvalue { i = style }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = daylight }, + new jvalue { i = style } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -243,7 +269,13 @@ public void SetID(global::System.String ID) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = daylight }, new jvalue { i = style }, new jvalue { l = locale.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { z = daylight }, + new jvalue { i = style }, + new jvalue { l = locale.GetRawObject() } + }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -257,7 +289,7 @@ public int GetDSTSavings() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -271,7 +303,7 @@ public bool UseDaylightTime() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -285,7 +317,7 @@ public bool ObservesDaylightTime() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -299,7 +331,7 @@ public bool InDaylightTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = date.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = date.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -313,7 +345,7 @@ public bool InDaylightTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(ID) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(ID) } }; return new global::Java.Util.TimeZone(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId14, args_)); } finally @@ -327,7 +359,7 @@ public bool InDaylightTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zoneId.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zoneId.GetRawObject() } }; return new global::Java.Util.TimeZone(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId15, args_)); } finally @@ -341,7 +373,7 @@ public bool InDaylightTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.ExternalType.Java.Time.ZoneId(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -355,7 +387,7 @@ public bool InDaylightTime(global::Java.Util.Date date) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.TimeZone(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId17, args_)); } finally @@ -369,7 +401,7 @@ public static void SetDefault(global::Java.Util.TimeZone zone) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = zone.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = zone.GetRawObject() } }; AndroidJNI.CallStaticVoidMethod(_classObject, _cachedMethodId18, args_); } finally @@ -383,7 +415,7 @@ public bool HasSameRules(global::Java.Util.TimeZone other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = other.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = other.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -397,7 +429,7 @@ public bool HasSameRules(global::Java.Util.TimeZone other) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); } finally diff --git a/Runtime/Java/Util/TimeZone.cs.meta b/Runtime/Java/Util/TimeZone.cs.meta index b3aec41..be637fa 100644 --- a/Runtime/Java/Util/TimeZone.cs.meta +++ b/Runtime/Java/Util/TimeZone.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5ee12ab1272f3d9b9de6018879311183 +guid: 66faa108079f3e2d8d0b6339b89fbbcc MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Timer.cs b/Runtime/Java/Util/Timer.cs index c8896c0..a0563ef 100644 --- a/Runtime/Java/Util/Timer.cs +++ b/Runtime/Java/Util/Timer.cs @@ -45,7 +45,7 @@ public Timer() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -60,7 +60,7 @@ public Timer(bool isDaemon) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { z = isDaemon }}; + jvalue[] args_ = new jvalue[] { new jvalue { z = isDaemon } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -75,7 +75,7 @@ public Timer(global::System.String name) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -90,7 +90,12 @@ public Timer(global::System.String name, bool isDaemon) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }, new jvalue { z = isDaemon }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) }, + new jvalue { z = isDaemon } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -127,7 +132,12 @@ public void Schedule(global::Java.Util.TimerTask task, long delay) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { j = delay }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { j = delay } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -141,7 +151,12 @@ public void Schedule(global::Java.Util.TimerTask task, global::Java.Util.Date ti try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { l = time.GetRawObject() }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { l = time.GetRawObject() } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -155,7 +170,13 @@ public void Schedule(global::Java.Util.TimerTask task, long delay, long period) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { j = delay }, new jvalue { j = period }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { j = delay }, + new jvalue { j = period } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -169,7 +190,13 @@ public void Schedule(global::Java.Util.TimerTask task, global::Java.Util.Date fi try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { l = firstTime.GetRawObject() }, new jvalue { j = period }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { l = firstTime.GetRawObject() }, + new jvalue { j = period } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -183,7 +210,13 @@ public void ScheduleAtFixedRate(global::Java.Util.TimerTask task, long delay, lo try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { j = delay }, new jvalue { j = period }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { j = delay }, + new jvalue { j = period } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -197,7 +230,13 @@ public void ScheduleAtFixedRate(global::Java.Util.TimerTask task, global::Java.U try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = task.GetRawObject() }, new jvalue { l = firstTime.GetRawObject() }, new jvalue { j = period }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = task.GetRawObject() }, + new jvalue { l = firstTime.GetRawObject() }, + new jvalue { j = period } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -211,7 +250,7 @@ public void Cancel() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -225,7 +264,7 @@ public int Purge() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally diff --git a/Runtime/Java/Util/Timer.cs.meta b/Runtime/Java/Util/Timer.cs.meta index cf98333..e01ac16 100644 --- a/Runtime/Java/Util/Timer.cs.meta +++ b/Runtime/Java/Util/Timer.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 593d5c0a3df1391e909e76819ffe1ea6 +guid: 993e1e694fd53793a8fed93b407300f1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/TimerTask.cs b/Runtime/Java/Util/TimerTask.cs index c837b13..95ccf97 100644 --- a/Runtime/Java/Util/TimerTask.cs +++ b/Runtime/Java/Util/TimerTask.cs @@ -49,7 +49,7 @@ public void Run() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -63,7 +63,7 @@ public bool Cancel() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -77,7 +77,7 @@ public long ScheduledExecutionTime() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId2, args_); } finally diff --git a/Runtime/Java/Util/TimerTask.cs.meta b/Runtime/Java/Util/TimerTask.cs.meta index fc10e66..8a53b5a 100644 --- a/Runtime/Java/Util/TimerTask.cs.meta +++ b/Runtime/Java/Util/TimerTask.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 79dae1f386d739b8834ba274573fd5f2 +guid: 021f880746e73f6cac2e89b9bab8ad53 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/TooManyListenersException.cs b/Runtime/Java/Util/TooManyListenersException.cs index 7f2df22..ab24421 100644 --- a/Runtime/Java/Util/TooManyListenersException.cs +++ b/Runtime/Java/Util/TooManyListenersException.cs @@ -25,7 +25,7 @@ public TooManyListenersException() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -40,7 +40,7 @@ public TooManyListenersException(global::System.String s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } diff --git a/Runtime/Java/Util/TooManyListenersException.cs.meta b/Runtime/Java/Util/TooManyListenersException.cs.meta index 2cd8eb6..47c89c0 100644 --- a/Runtime/Java/Util/TooManyListenersException.cs.meta +++ b/Runtime/Java/Util/TooManyListenersException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 87b9df1b39c33cc89ce1021f10465b41 +guid: cdef969d3f4b35b3bd68c07df880f252 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/TreeMap.cs b/Runtime/Java/Util/TreeMap.cs index a746917..782c19d 100644 --- a/Runtime/Java/Util/TreeMap.cs +++ b/Runtime/Java/Util/TreeMap.cs @@ -87,7 +87,7 @@ public TreeMap() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -102,7 +102,7 @@ public TreeMap(global::Java.Util.Comparator comparator) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = comparator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = comparator.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -117,7 +117,7 @@ public TreeMap(global::Java.Util.Map m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -132,7 +132,7 @@ public TreeMap(global::Java.Util.SortedMap m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -169,8 +169,8 @@ public TreeMap(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -183,7 +183,7 @@ public K FirstKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId1, args_); @@ -205,7 +205,7 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId2, args_); @@ -227,7 +227,7 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally @@ -241,8 +241,8 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally { @@ -255,8 +255,8 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally { @@ -269,8 +269,8 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally { @@ -283,8 +283,8 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally { @@ -297,8 +297,8 @@ public K LastKey() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally { @@ -311,7 +311,7 @@ public K LowerKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -333,8 +333,8 @@ public K LowerKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId10, args_)); } finally { @@ -347,7 +347,7 @@ public K FloorKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); @@ -369,8 +369,8 @@ public K FloorKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId12, args_)); } finally { @@ -383,7 +383,7 @@ public K CeilingKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); @@ -405,8 +405,8 @@ public K CeilingKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; - return new global::Java.Util.Map.Entry.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; + return new global::Java.Util.Map.EntryAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId14, args_)); } finally { @@ -419,7 +419,7 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key)}; + jvalue[] args_ = new jvalue[] { ToJvalue(key) }; if (typeof(K) == typeof(global::System.String)) { return (K) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); @@ -441,8 +441,8 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally { @@ -455,8 +455,8 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally { @@ -469,8 +469,8 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally { @@ -483,8 +483,15 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), new jvalue { z = fromInclusive }, ToJvalue(toKey), new jvalue { z = toInclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + new jvalue { z = fromInclusive }, + ToJvalue(toKey), + new jvalue { z = toInclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId19, args_)); } finally { @@ -497,8 +504,13 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toKey), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(toKey), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId20, args_)); } finally { @@ -511,8 +523,13 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally { @@ -525,8 +542,13 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey), ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromKey), + ToJvalue(toKey) + }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId22, args_)); } finally { @@ -539,8 +561,8 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(toKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId23, args_)); } finally { @@ -553,8 +575,8 @@ public K HigherKey(K key) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromKey)}; - return new global::Java.Util.SortedMap.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(fromKey) }; + return new global::Java.Util.SortedMapAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId24, args_)); } finally { @@ -567,7 +589,13 @@ public bool Replace(K key, V oldValue, V newValue) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(oldValue), ToJvalue(newValue)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(oldValue), + ToJvalue(newValue) + }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId25, args_); } finally @@ -581,7 +609,12 @@ public V Replace(K key, V value) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(key), ToJvalue(value)}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(key), + ToJvalue(value) + }; if (typeof(V) == typeof(global::System.String)) { return (V) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId26, args_); @@ -603,7 +636,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer comparator) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = comparator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = comparator.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -97,7 +97,7 @@ public TreeSet(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -112,7 +112,7 @@ public TreeSet(global::Java.Util.SortedSet s) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = s.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = s.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -149,8 +149,8 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Iterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.IteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId0, args_)); } finally { @@ -163,8 +163,8 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId1, args_)); } finally { @@ -177,8 +177,15 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), new jvalue { z = fromInclusive }, ToJvalue(toElement), new jvalue { z = toInclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + new jvalue { z = fromInclusive }, + ToJvalue(toElement), + new jvalue { z = toInclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId2, args_)); } finally { @@ -191,8 +198,13 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toElement), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(toElement), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId3, args_)); } finally { @@ -205,8 +217,13 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), new jvalue { z = inclusive }}; - return new global::Java.Util.NavigableSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + new jvalue { z = inclusive } + }; + return new global::Java.Util.NavigableSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally { @@ -219,8 +236,13 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement), ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); + jvalue[] args_ = + new jvalue[] + { + ToJvalue(fromElement), + ToJvalue(toElement) + }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId5, args_)); } finally { @@ -233,8 +255,8 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(toElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(toElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId6, args_)); } finally { @@ -247,8 +269,8 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(fromElement)}; - return new global::Java.Util.SortedSet.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); + jvalue[] args_ = new jvalue[] { ToJvalue(fromElement) }; + return new global::Java.Util.SortedSetAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId7, args_)); } finally { @@ -261,8 +283,8 @@ public TreeSet(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Comparator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.ComparatorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId8, args_)); } finally { @@ -275,7 +297,7 @@ public E First() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -297,7 +319,7 @@ public E Last() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId10, args_); @@ -319,7 +341,7 @@ public E Lower(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId11, args_); @@ -341,7 +363,7 @@ public E Floor(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId12, args_); @@ -363,7 +385,7 @@ public E Ceiling(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId13, args_); @@ -385,7 +407,7 @@ public E Higher(E e) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(e)}; + jvalue[] args_ = new jvalue[] { ToJvalue(e) }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId14, args_); @@ -407,7 +429,7 @@ public E PollFirst() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId15, args_); @@ -429,7 +451,7 @@ public E PollLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId16, args_); @@ -451,7 +473,7 @@ public E PollLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId17, args_)); } finally @@ -465,8 +487,8 @@ public E PollLast() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId18, args_)); } finally { diff --git a/Runtime/Java/Util/TreeSet.cs.meta b/Runtime/Java/Util/TreeSet.cs.meta index 04f9888..a8037c7 100644 --- a/Runtime/Java/Util/TreeSet.cs.meta +++ b/Runtime/Java/Util/TreeSet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dc254737504038ffa19c1c8c08216661 +guid: eb15dd4c005434aa89c6889fa56f0907 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/UUID.cs b/Runtime/Java/Util/UUID.cs index 03ce2e6..de4115e 100644 --- a/Runtime/Java/Util/UUID.cs +++ b/Runtime/Java/Util/UUID.cs @@ -47,7 +47,12 @@ public UUID(long mostSigBits, long leastSigBits) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { j = mostSigBits }, new jvalue { j = leastSigBits }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { j = mostSigBits }, + new jvalue { j = leastSigBits } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -84,7 +89,7 @@ public UUID(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Java.Util.UUID(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId0, args_)); } finally @@ -98,7 +103,7 @@ public UUID(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(name) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(name) } }; return new global::Java.Util.UUID(AndroidJNI.CallStaticObjectMethod(_classObject, _cachedMethodId1, args_)); } finally @@ -112,7 +117,7 @@ public long GetLeastSignificantBits() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -126,7 +131,7 @@ public long GetMostSignificantBits() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -140,7 +145,7 @@ public int Version() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId4, args_); } finally @@ -154,7 +159,7 @@ public int Variant() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -168,7 +173,7 @@ public long Timestamp() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -182,7 +187,7 @@ public int ClockSequence() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId7, args_); } finally @@ -196,7 +201,7 @@ public long Node() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallLongMethod(_rawObject, _cachedMethodId8, args_); } finally @@ -210,7 +215,7 @@ public int HashCode() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId9, args_); } finally @@ -224,7 +229,7 @@ public bool Equals(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -238,7 +243,7 @@ public int CompareTo(global::Java.Util.UUID val) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = val.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = val.GetRawObject() } }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId11, args_); } finally diff --git a/Runtime/Java/Util/UUID.cs.meta b/Runtime/Java/Util/UUID.cs.meta index 5d90664..b413f3a 100644 --- a/Runtime/Java/Util/UUID.cs.meta +++ b/Runtime/Java/Util/UUID.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f54714c3ecf536b4930b6b6e220ff807 +guid: 8f2bf7edfc6039a8b264a50783f3d36e MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/UnknownFormatConversionException.cs b/Runtime/Java/Util/UnknownFormatConversionException.cs index 5b99247..0477b00 100644 --- a/Runtime/Java/Util/UnknownFormatConversionException.cs +++ b/Runtime/Java/Util/UnknownFormatConversionException.cs @@ -25,7 +25,7 @@ public UnknownFormatConversionException(global::System.String s) : base(IntPtr.Z try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(s) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(s) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public UnknownFormatConversionException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/UnknownFormatConversionException.cs.meta b/Runtime/Java/Util/UnknownFormatConversionException.cs.meta index cb25835..d99af2e 100644 --- a/Runtime/Java/Util/UnknownFormatConversionException.cs.meta +++ b/Runtime/Java/Util/UnknownFormatConversionException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9e7d778e6cd73e358dae7a39893a8037 +guid: 3957f2b5106936388f4d9fa91237e4f1 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/UnknownFormatFlagsException.cs b/Runtime/Java/Util/UnknownFormatFlagsException.cs index bccb5f2..d259fdb 100644 --- a/Runtime/Java/Util/UnknownFormatFlagsException.cs +++ b/Runtime/Java/Util/UnknownFormatFlagsException.cs @@ -25,7 +25,7 @@ public UnknownFormatFlagsException(global::System.String f) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = AndroidJNI.NewString(f) }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = global::Google.LibraryWrapper.Java.Utils.NewString(f) } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -62,7 +62,7 @@ public UnknownFormatFlagsException(IntPtr rawObject) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId0, args_); } finally diff --git a/Runtime/Java/Util/UnknownFormatFlagsException.cs.meta b/Runtime/Java/Util/UnknownFormatFlagsException.cs.meta index a944d67..3600a68 100644 --- a/Runtime/Java/Util/UnknownFormatFlagsException.cs.meta +++ b/Runtime/Java/Util/UnknownFormatFlagsException.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 775f2e227e103d75b238e7a3c12bbcc4 +guid: eebf32cd57153b70842b911f7bb5d2a0 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/Vector.cs b/Runtime/Java/Util/Vector.cs index 538c780..333c797 100644 --- a/Runtime/Java/Util/Vector.cs +++ b/Runtime/Java/Util/Vector.cs @@ -73,7 +73,12 @@ public Vector(int initialCapacity, int capacityIncrement) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { i = capacityIncrement }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { i = capacityIncrement } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -88,7 +93,7 @@ public Vector(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -103,7 +108,7 @@ public Vector() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -118,7 +123,7 @@ public Vector(global::Java.Util.Collection c) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -155,7 +160,7 @@ public void TrimToSize() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId0, args_); } finally @@ -169,7 +174,7 @@ public void EnsureCapacity(int minCapacity) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = minCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = minCapacity } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId1, args_); } finally @@ -183,7 +188,7 @@ public void SetSize(int newSize) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = newSize }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = newSize } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId2, args_); } finally @@ -197,7 +202,7 @@ public int Capacity() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId3, args_); } finally @@ -211,8 +216,8 @@ public int Capacity() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.Util.Enumeration.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.Util.EnumerationAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId4, args_)); } finally { @@ -225,7 +230,12 @@ public int IndexOf(global::Google.LibraryWrapper.Java.JavaObject o, int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }, new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = o.GetRawObject() }, + new jvalue { i = index } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId5, args_); } finally @@ -239,7 +249,12 @@ public int LastIndexOf(global::Google.LibraryWrapper.Java.JavaObject o, int inde try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = o.GetRawObject() }, new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { l = o.GetRawObject() }, + new jvalue { i = index } + }; return AndroidJNI.CallIntMethod(_rawObject, _cachedMethodId6, args_); } finally @@ -253,7 +268,7 @@ public E ElementAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId7, args_); @@ -275,7 +290,7 @@ public E FirstElement() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId8, args_); @@ -297,7 +312,7 @@ public E LastElement() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; if (typeof(E) == typeof(global::System.String)) { return (E) (global::System.Object) AndroidJNI.CallStringMethod(_rawObject, _cachedMethodId9, args_); @@ -319,7 +334,12 @@ public void SetElementAt(E obj, int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj), new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(obj), + new jvalue { i = index } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId10, args_); } finally @@ -333,7 +353,7 @@ public void RemoveElementAt(int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = index }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = index } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId11, args_); } finally @@ -347,7 +367,12 @@ public void InsertElementAt(E obj, int index) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj), new jvalue { i = index }}; + jvalue[] args_ = + new jvalue[] + { + ToJvalue(obj), + new jvalue { i = index } + }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId12, args_); } finally @@ -361,7 +386,7 @@ public void AddElement(E obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {ToJvalue(obj)}; + jvalue[] args_ = new jvalue[] { ToJvalue(obj) }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId13, args_); } finally @@ -375,7 +400,7 @@ public bool RemoveElement(global::Google.LibraryWrapper.Java.JavaObject obj) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = obj.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = obj.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId14, args_); } finally @@ -389,7 +414,7 @@ public void RemoveAllElements() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId15, args_); } finally @@ -403,7 +428,7 @@ public void RemoveAllElements() try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; return new global::Google.LibraryWrapper.Java.JavaObject(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId16, args_)); } finally @@ -417,7 +442,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.Consumer act try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = action.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = action.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId17, args_); } finally @@ -431,7 +456,7 @@ public bool RemoveIf(global::Java.ExternalType.Java.Util.Function.Predicate f try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = filter.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = filter.GetRawObject() } }; return AndroidJNI.CallBooleanMethod(_rawObject, _cachedMethodId18, args_); } finally @@ -445,7 +470,7 @@ public void ReplaceAll(global::Java.ExternalType.Java.Util.Function.UnaryOperato try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = @operator.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = @operator.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId19, args_); } finally @@ -459,7 +484,7 @@ public void Sort(global::Java.Util.Comparator c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = c.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = c.GetRawObject() } }; AndroidJNI.CallVoidMethod(_rawObject, _cachedMethodId20, args_); } finally @@ -473,8 +498,8 @@ public void Sort(global::Java.Util.Comparator c) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; - return new global::Java.ExternalType.Java.Util.Spliterator.AnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); + jvalue[] args_ = new jvalue[] { }; + return new global::Java.ExternalType.Java.Util.SpliteratorAnonymousImplementation(AndroidJNI.CallObjectMethod(_rawObject, _cachedMethodId21, args_)); } finally { diff --git a/Runtime/Java/Util/Vector.cs.meta b/Runtime/Java/Util/Vector.cs.meta index 88d48e4..fdf47cf 100644 --- a/Runtime/Java/Util/Vector.cs.meta +++ b/Runtime/Java/Util/Vector.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f35cc5c5377d36b3ba025cc3e126db6a +guid: 0af19e0c807c3aeca98d0bbdc8fbd544 MonoImporter: externalObjects: {} userData: diff --git a/Runtime/Java/Util/WeakHashMap.cs b/Runtime/Java/Util/WeakHashMap.cs index 8181f50..1edc340 100644 --- a/Runtime/Java/Util/WeakHashMap.cs +++ b/Runtime/Java/Util/WeakHashMap.cs @@ -33,7 +33,12 @@ public WeakHashMap(int initialCapacity, float loadFactor) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }, new jvalue { f = loadFactor }}; + jvalue[] args_ = + new jvalue[] + { + new jvalue { i = initialCapacity }, + new jvalue { f = loadFactor } + }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId0, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -48,7 +53,7 @@ public WeakHashMap(int initialCapacity) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { i = initialCapacity }}; + jvalue[] args_ = new jvalue[] { new jvalue { i = initialCapacity } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId1, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -63,7 +68,7 @@ public WeakHashMap() : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {}; + jvalue[] args_ = new jvalue[] { }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId2, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -78,7 +83,7 @@ public WeakHashMap(global::Java.Util.Map m) : base(IntPtr.Zero) try { AndroidJNI.PushLocalFrame(0); - jvalue[] args_ = new jvalue[] {new jvalue { l = m.GetRawObject() }}; + jvalue[] args_ = new jvalue[] { new jvalue { l = m.GetRawObject() } }; IntPtr rawObject_ = AndroidJNI.NewObject(_classObject, _cachedConstructorId3, args_); _rawObject = AndroidJNI.NewGlobalRef(rawObject_); } @@ -115,7 +120,7 @@ public void ForEach(global::Java.ExternalType.Java.Util.Function.BiConsumer