Class 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 Detail

      • getDeviceToLaunch

        public static <T extends IMobileDeviceOptional<T> getDeviceToLaunch​(Collection<T> devices)
        Returns the mobile device to launch from the collection of mobile devices.
        Parameters:
        devices - the collection of devices, cannot be null
        Returns:
        the optional mobile device to launch
      • findByName

        public static <T extends IMobileDeviceOptional<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 be null
        devices - a collection of devices, cannot be null
        Returns:
        the optional mobile device from the provided collection with the provided name