// Path: storebox-lib/src/main/java/net/orange_box/storebox/adapters/StoreType.java
// public enum StoreType {
//     
//     BOOLEAN,
//     FLOAT,
//     INTEGER,
//     LONG,
//     STRING,
//     STRING_SET
// }
// 
// Path: storebox-lib/src/main/java/net/orange_box/storebox/enums/SaveMode.java
// public enum SaveMode {
// 
//     /**
//      * Default.
//      *
//      * @see android.content.SharedPreferences.Editor#apply()
//      */
//     APPLY,
// 
//     /**
//      * @see android.content.SharedPreferences.Editor#commit()
//      */
//     COMMIT,
// 
//     /**
//      * {@link android.content.SharedPreferences.Editor#apply()} or
//      * {@link android.content.SharedPreferences.Editor#commit()} will have
//      * to be called explicitly.
//      */
//     NOME
// }


import android.annotation.TargetApi;
import android.content.SharedPreferences;
import android.os.Build;
import net.orange_box.storebox.adapters.StoreType;
import net.orange_box.storebox.enums.SaveMode;
import java.util.Locale;
import java.util.Set;
                }
            
            default:
                throw new UnsupportedOperationException(String.format(
                        Locale.ENGLISH,
                        "Saving type %1$s into the preferences is not supported",
                        type.name()));
        }
    }
    
    public static void saveChanges(
            SharedPreferences.Editor editor,
            SaveMode mode) {
        
        switch (mode) {
            case APPLY:
                editor.apply();
                break;

            case COMMIT:
                editor.commit();
                break;

            case NOME:
            default:
                // NOP
        }
    }
    
    @TargetApi(Build.VERSION_CODES.HONEYCOMB)
// Path: storebox-lib/src/main/java/net/orange_box/storebox/adapters/StoreType.java
// public enum StoreType {
//     
//     BOOLEAN,
//     FLOAT,
//     INTEGER,
//     LONG,
//     STRING,
//     STRING_SET
// }
// 
// Path: storebox-lib/src/main/java/net/orange_box/storebox/enums/SaveMode.java
// public enum SaveMode {
// 
//     /**
//      * Default.
//      *
//      * @see android.content.SharedPreferences.Editor#apply()
//      */
//     APPLY,
// 
//     /**
//      * @see android.content.SharedPreferences.Editor#commit()
//      */
//     COMMIT,
// 
//     /**
//      * {@link android.content.SharedPreferences.Editor#apply()} or
//      * {@link android.content.SharedPreferences.Editor#commit()} will have
//      * to be called explicitly.
//      */
//     NOME
// }


// Path: storebox-lib/src/main/java/net/orange_box/storebox/utils/PreferenceUtils.java
import android.annotation.TargetApi;
import android.content.SharedPreferences;
import android.os.Build;
import net.orange_box.storebox.adapters.StoreType;
import net.orange_box.storebox.enums.SaveMode;
import java.util.Locale;
import java.util.Set;

                }
            
            default:
                throw new UnsupportedOperationException(String.format(
                        Locale.ENGLISH,
                        "Saving type %1$s into the preferences is not supported",
                        type.name()));
        }
    }
    
    public static void saveChanges(
            SharedPreferences.Editor editor,
            SaveMode mode) {
        
        switch (mode) {
            case APPLY:
                editor.apply();
                break;

            case COMMIT:
                editor.commit();
                break;

            case NOME:
            default:
                // NOP
        }
    }
    
    @TargetApi(Build.VERSION_CODES.HONEYCOMB)
    private static Set<String> getStringSetApi11(