Code example for Pair

0
        return true; 
    } 
 
    @Implementation 
    public boolean enableNetwork(int netId, boolean disableOthers) {
        lastEnabledNetwork = new Pair<Integer, Boolean>(netId, disableOthers);
        return true; 
    } 
 
    @Implementation 
    public WifiManager.WifiLock createWifiLock(int lockType, java.lang.String tag) {
        return Robolectric.newInstanceOf(WifiManager.WifiLock.class);
    } 
 
    @Implementation 
    public WifiManager.WifiLock createWifiLock(java.lang.String tag) {
        return createWifiLock(WifiManager.WIFI_MODE_FULL, tag);
    } 
     
    @Implementation 
    public static int calculateSignalLevel (int rssi, int numLevels)