Java Preference hasEnv(String key, String value)

Here you can find the source of hasEnv(String key, String value)

Description

has Env

License

Apache License

Declaration

public static boolean hasEnv(String key, String value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.prefs.Preferences;

public class Main {

    public static boolean hasEnv(String key, String value) {
        if (value == null || "".equals(value.trim())) {
            return false;
        }/* www. j  a v  a  2 s.com*/
        Preferences preferences = Preferences.systemRoot().node(
                "/ice_water");
        return value.equalsIgnoreCase(preferences.get(key, "_null_mode_"));
    }
}

Related

  1. cambiarIdioma(String lang, String country)
  2. classFor(Object obj)
  3. clearPreference(Object context)
  4. count(Preferences preferences, String preferenceName)
  5. createNode(String path)
  6. initEnv(String key, String value)
  7. keyExists(String className, String prefName)
  8. readAllReg(String path)
  9. savePreference(String key, Object value)