Code example for Pair

0
        String cookie = loadString(COOKIES);
        if(TextUtils.isEmpty(cookie))
            return null; 
         
        final String[] cookies = cookie.split(";");
        return new Pair<String, String>(cookies[0], cookies[1]);
    } 
     
    private Integer loadInt(String name)
    { 
        SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(LepraDroidApplication.getInstance());
        return sp.getInt(name, 0);
    } 
     
         
    private void saveInt(String name, Integer value)
    { 
        SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(LepraDroidApplication.getInstance());
        Editor e = sp.edit();
        e.putInt(name, value);
        e.commit();