Code example for LinkedHashMap

0
    private static float sSignalLevelInPercent=1f;
    private boolean accessWifiStatePermission = true;
    private boolean wifiEnabled = true;
    private WifiInfo wifiInfo;
    private List<ScanResult> scanResults;
    private Map<Integer, WifiConfiguration> networkIdToConfiguredNetworks = new LinkedHashMap<Integer, WifiConfiguration>();
    public boolean wasSaved;
    private Pair<Integer, Boolean> lastEnabledNetwork;
 
    @Implementation 
    public boolean setWifiEnabled(boolean wifiEnabled) {
        checkAccessWifiStatePermission(); 
        this.wifiEnabled = wifiEnabled;
        return true; 
    } 
 
    @Implementation 
    public boolean isWifiEnabled() { 
        checkAccessWifiStatePermission(); 
        return wifiEnabled;
    }