Class MobileDevices
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.mobile.MobileDevices
-
public final class MobileDevices extends Object
Mobile devices utility methods.- Restriction:
- This class is not intended to be sub-classed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends IMobileDevice>
Optional<T>findByName(String name, Collection<T> devices)
Finds the mobile device in the provided collection with the provided name.static <T extends IMobileDevice>
Optional<T>getDeviceToLaunch(Collection<T> devices)
Returns the mobile device to launch from the collection of mobile devices.
-
-
-
Method Detail
-
getDeviceToLaunch
public static <T extends IMobileDevice> Optional<T> getDeviceToLaunch(Collection<T> devices)
Returns the mobile device to launch from the collection of mobile devices.- Parameters:
devices
- the collection of devices, cannot benull
- Returns:
- the optional mobile device to launch
-
findByName
public static <T extends IMobileDevice> Optional<T> findByName(String name, Collection<T> devices)
Finds the mobile device in the provided collection with the provided name.- Parameters:
name
- the name to find device with, cannot benull
devices
- a collection of devices, cannot benull
- Returns:
- the optional mobile device from the provided collection with the provided name
-
-