1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [ConcurrentHashMap.KeySetView](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html) /// /// Required feature: java-util-concurrent-ConcurrentHashMap_KeySetView #[cfg(any(feature = "all", feature = "java-util-concurrent-ConcurrentHashMap_KeySetView"))] public class ConcurrentHashMap_KeySetView extends crate::java::lang::Object, implements crate::java::util::Collection, crate::java::io::Serializable, crate::java::util::Set { // // Not emitting: Non-public method // /// <init> // /// // /// Required features: "java-lang-Object", "java-util-concurrent-ConcurrentHashMap" // #[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "java-util-concurrent-ConcurrentHashMap")))] // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::ConcurrentHashMap>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::util::concurrent::ConcurrentHashMap_KeySetView>> { // // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == (empty), .name == "<init>", .descriptor == "(Ljava/util/concurrent/ConcurrentHashMap;Ljava/lang/Object;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "<init>\0", "(Ljava/util/concurrent/ConcurrentHashMap;Ljava/lang/Object;)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [getMappedValue](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#getMappedValue()) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn get_mapped_value<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "getMappedValue", .descriptor == "()Ljava/lang/Object;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "getMappedValue\0", "()Ljava/lang/Object;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [contains](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#contains(java,%2520lang,%2520Object)) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn contains<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "contains", .descriptor == "(Ljava/lang/Object;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "contains\0", "(Ljava/lang/Object;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [remove](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#remove(java,%2520lang,%2520Object)) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn remove<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "remove", .descriptor == "(Ljava/lang/Object;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "remove\0", "(Ljava/lang/Object;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [iterator](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#iterator()) /// /// Required features: "java-util-Iterator" #[cfg(any(feature = "all", all(feature = "java-util-Iterator")))] pub fn iterator<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Iterator>>> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "iterator", .descriptor == "()Ljava/util/Iterator;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "iterator\0", "()Ljava/util/Iterator;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [add](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#add(java,%2520lang,%2520Object)) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn add<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "add", .descriptor == "(Ljava/lang/Object;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "add\0", "(Ljava/lang/Object;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [addAll](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#addAll(java,%2520util,%2520Collection)) /// /// Required features: "java-util-Collection" #[cfg(any(feature = "all", all(feature = "java-util-Collection")))] pub fn add_all<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Collection>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "addAll", .descriptor == "(Ljava/util/Collection;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "addAll\0", "(Ljava/util/Collection;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [hashCode](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#hashCode()) pub fn hash_code<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "hashCode", .descriptor == "()I" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "hashCode\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [equals](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#equals(java,%2520lang,%2520Object)) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "equals\0", "(Ljava/lang/Object;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [spliterator](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#spliterator()) /// /// Required features: "java-util-Spliterator" #[cfg(any(feature = "all", all(feature = "java-util-Spliterator")))] pub fn spliterator<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Spliterator>>> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "spliterator", .descriptor == "()Ljava/util/Spliterator;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "spliterator\0", "()Ljava/util/Spliterator;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [forEach](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#forEach(java,%2520util,%2520function,%2520Consumer)) /// /// Required features: "java-util-function-Consumer" #[cfg(any(feature = "all", all(feature = "java-util-function-Consumer")))] pub fn for_each<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::function::Consumer>>) -> __jni_bindgen::Result<()> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "forEach", .descriptor == "(Ljava/util/function/Consumer;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "forEach\0", "(Ljava/util/function/Consumer;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [removeAll](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#removeAll(java,%2520util,%2520Collection)) /// /// Required features: "java-util-Collection" #[cfg(any(feature = "all", all(feature = "java-util-Collection")))] pub fn remove_all<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Collection>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "removeAll", .descriptor == "(Ljava/util/Collection;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "removeAll\0", "(Ljava/util/Collection;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [size](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#size()) pub fn size<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "size", .descriptor == "()I" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "size\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [containsAll](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#containsAll(java,%2520util,%2520Collection)) /// /// Required features: "java-util-Collection" #[cfg(any(feature = "all", all(feature = "java-util-Collection")))] pub fn contains_all<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Collection>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "containsAll", .descriptor == "(Ljava/util/Collection;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "containsAll\0", "(Ljava/util/Collection;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [clear](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#clear()) pub fn clear<'env>(&'env self) -> __jni_bindgen::Result<()> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "clear", .descriptor == "()V" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "clear\0", "()V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [isEmpty](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#isEmpty()) pub fn is_empty<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "isEmpty", .descriptor == "()Z" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "isEmpty\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Returning arrays of objects not yet supported // /// [toArray](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#toArray()) // /// // /// Required features: "java-lang-Object" // #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] // pub fn to_array<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/lang/Object")) }> { // // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "toArray", .descriptor == "()[Ljava/lang/Object;" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "toArray\0", "()[Ljava/lang/Object;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Passing in arrays of objects is not yet supported // // Not emitting: Returning arrays of objects not yet supported // /// toArray // /// // /// Required features: "java-lang-Object" // #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] // pub fn to_array_object_array<'env>(&'env self, arg0: Array { levels: 1, inner: Class(Id("java/lang/Object")) }) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/lang/Object")) }> { // // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "toArray", .descriptor == "([Ljava/lang/Object;)[Ljava/lang/Object;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "toArray\0", "([Ljava/lang/Object;)[Ljava/lang/Object;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [toString](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#toString()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn to_string<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "toString", .descriptor == "()Ljava/lang/String;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "toString\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getMap](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#getMap()) /// /// Required features: "java-util-concurrent-ConcurrentHashMap" #[cfg(any(feature = "all", all(feature = "java-util-concurrent-ConcurrentHashMap")))] pub fn get_map<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::concurrent::ConcurrentHashMap>>> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC, .name == "getMap", .descriptor == "()Ljava/util/concurrent/ConcurrentHashMap;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "getMap\0", "()Ljava/util/concurrent/ConcurrentHashMap;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [retainAll](https://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.KeySetView.html#retainAll(java,%2520util,%2520Collection)) /// /// Required features: "java-util-Collection" #[cfg(any(feature = "all", all(feature = "java-util-Collection")))] pub fn retain_all<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Collection>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/concurrent/ConcurrentHashMap$KeySetView", java.flags == PUBLIC | FINAL, .name == "retainAll", .descriptor == "(Ljava/util/Collection;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/concurrent/ConcurrentHashMap$KeySetView\0", "retainAll\0", "(Ljava/util/Collection;)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } } }