@@ -317,28 +317,24 @@ public static AppiumCommandInfo deleteC(String url) {
317
317
}
318
318
319
319
/**
320
- * This method forms a {@link java.util.Map} of parameters for the
321
- * keyboard hiding.
320
+ * This method forms a {@link Map} of parameters for the keyboard hiding.
322
321
*
323
322
* @param keyName The button pressed by the mobile driver to attempt hiding the
324
323
* keyboard.
325
- * @return a key-value pair. The key is the command name. The value is a
326
- * {@link java.util.Map} command arguments.
324
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
327
325
*/
328
326
public static Map .Entry <String , Map <String , ?>> hideKeyboardCommand (String keyName ) {
329
327
return new AbstractMap .SimpleEntry <>(
330
328
HIDE_KEYBOARD , prepareArguments ("keyName" , keyName ));
331
329
}
332
330
333
331
/**
334
- * This method forms a {@link java.util.Map} of parameters for the
335
- * keyboard hiding.
332
+ * This method forms a {@link Map} of parameters for the keyboard hiding.
336
333
*
337
334
* @param strategy HideKeyboardStrategy.
338
335
* @param keyName a String, representing the text displayed on the button of the
339
336
* keyboard you want to press. For example: "Done".
340
- * @return a key-value pair. The key is the command name. The value is a
341
- * {@link java.util.Map} command arguments.
337
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
342
338
*/
343
339
public static Map .Entry <String , Map <String , ?>> hideKeyboardCommand (String strategy ,
344
340
String keyName ) {
@@ -381,26 +377,22 @@ public static ImmutableMap<String, Object> prepareArguments(String[] params,
381
377
}
382
378
383
379
/**
384
- * This method forms a {@link java.util.Map} of parameters for the
385
- * key event invocation.
380
+ * This method forms a {@link Map} of parameters for the key event invocation.
386
381
*
387
382
* @param key code for the key pressed on the device.
388
- * @return a key-value pair. The key is the command name. The value is a
389
- * {@link java.util.Map} command arguments.
383
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
390
384
*/
391
385
public static Map .Entry <String , Map <String , ?>> pressKeyCodeCommand (int key ) {
392
386
return new AbstractMap .SimpleEntry <>(
393
387
PRESS_KEY_CODE , prepareArguments ("keycode" , key ));
394
388
}
395
389
396
390
/**
397
- * This method forms a {@link java.util.Map} of parameters for the
398
- * key event invocation.
391
+ * This method forms a {@link Map} of parameters for the key event invocation.
399
392
*
400
393
* @param key code for the key pressed on the Android device.
401
394
* @param metastate metastate for the keypress.
402
- * @return a key-value pair. The key is the command name. The value is a
403
- * {@link java.util.Map} command arguments.
395
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
404
396
*/
405
397
public static Map .Entry <String , Map <String , ?>> pressKeyCodeCommand (int key ,
406
398
Integer metastate ) {
@@ -411,26 +403,22 @@ public static ImmutableMap<String, Object> prepareArguments(String[] params,
411
403
}
412
404
413
405
/**
414
- * This method forms a {@link java.util.Map} of parameters for the
415
- * long key event invocation.
406
+ * This method forms a {@link Map} of parameters for the long key event invocation.
416
407
*
417
408
* @param key code for the long key pressed on the device.
418
- * @return a key-value pair. The key is the command name. The value is a
419
- * {@link java.util.Map} command arguments.
409
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
420
410
*/
421
411
public static Map .Entry <String , Map <String , ?>> longPressKeyCodeCommand (int key ) {
422
412
return new AbstractMap .SimpleEntry <>(
423
413
LONG_PRESS_KEY_CODE , prepareArguments ("keycode" , key ));
424
414
}
425
415
426
416
/**
427
- * This method forms a {@link java.util.Map} of parameters for the
428
- * long key event invocation.
417
+ * This method forms a {@link Map} of parameters for the long key event invocation.
429
418
*
430
419
* @param key code for the long key pressed on the Android device.
431
420
* @param metastate metastate for the long key press.
432
- * @return a key-value pair. The key is the command name. The value is a
433
- * {@link java.util.Map} command arguments.
421
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
434
422
*/
435
423
public static Map .Entry <String , Map <String , ?>> longPressKeyCodeCommand (int key ,
436
424
Integer metastate ) {
@@ -441,35 +429,29 @@ public static ImmutableMap<String, Object> prepareArguments(String[] params,
441
429
}
442
430
443
431
/**
444
- * This method forms a {@link java.util.Map} of parameters for the
445
- * device locking.
432
+ * This method forms a {@link Map} of parameters for the device locking.
446
433
*
447
434
* @param duration for how long to lock the screen for. Minimum time resolution is one second
448
- * @return a key-value pair. The key is the command name. The value is a
449
- * {@link java.util.Map} command arguments.
435
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
450
436
*/
451
437
public static Map .Entry <String , Map <String , ?>> lockDeviceCommand (Duration duration ) {
452
438
return new AbstractMap .SimpleEntry <>(
453
439
LOCK , prepareArguments ("seconds" , duration .getSeconds ()));
454
440
}
455
441
456
442
/**
457
- * This method forms a {@link java.util.Map} of parameters for the
458
- * device unlocking.
443
+ * This method forms a {@link Map} of parameters for the device unlocking.
459
444
*
460
- * @return a key-value pair. The key is the command name. The value is a
461
- * {@link java.util.Map} command arguments.
445
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
462
446
*/
463
447
public static Map .Entry <String , Map <String , ?>> unlockDeviceCommand () {
464
448
return new AbstractMap .SimpleEntry <>(UNLOCK , ImmutableMap .of ());
465
449
}
466
450
467
451
/**
468
- * This method forms a {@link java.util.Map} of parameters for the
469
- * device locked query.
452
+ * This method forms a {@link Map} of parameters for the device locked query.
470
453
*
471
- * @return a key-value pair. The key is the command name. The value is a
472
- * {@link java.util.Map} command arguments.
454
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
473
455
*/
474
456
public static Map .Entry <String , Map <String , ?>> getIsDeviceLockedCommand () {
475
457
return new AbstractMap .SimpleEntry <>(IS_LOCKED , ImmutableMap .of ());
@@ -488,13 +470,11 @@ public static ImmutableMap<String, Object> prepareArguments(String[] params,
488
470
}
489
471
490
472
/**
491
- * This method forms a {@link java.util.Map} of parameters for the
492
- * file pushing.
473
+ * This method forms a {@link Map} of parameters for the file pushing.
493
474
*
494
475
* @param remotePath Path to file to write data to on remote device
495
476
* @param base64Data Base64 encoded byte array of data to write to remote device
496
- * @return a key-value pair. The key is the command name. The value is a
497
- * {@link java.util.Map} command arguments.
477
+ * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
498
478
*/
499
479
public static Map .Entry <String , Map <String , ?>> pushFileCommand (String remotePath , byte [] base64Data ) {
500
480
String [] parameters = new String []{"path" , "data" };
@@ -513,7 +493,7 @@ public static ImmutableMap<String, Object> prepareArguments(String[] params,
513
493
}
514
494
515
495
/**
516
- * Forms a {@link java.util. Map} of parameters for images comparison.
496
+ * Forms a {@link Map} of parameters for images comparison.
517
497
*
518
498
* @param mode one of possible comparison modes
519
499
* @param img1Data base64-encoded data of the first image
0 commit comments