Java Properties Get getValue(Properties properties, String key)

Here you can find the source of getValue(Properties properties, String key)

Description

get Value

License

Open Source License

Declaration

public static String getValue(Properties properties, String key) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static String getValue(Properties properties, String key) {
        if (properties == null || key == null || key.isEmpty()) {
            return "";
        }//w  ww.  jav  a 2s.  c om

        return properties.getProperty(key, "");

    }
}

Related

  1. getString(Properties props, String name)
  2. getString(Properties props, String name, String defaultValue)
  3. getStringConfigValue( final String configKey, final Properties config)
  4. getStringConfigVaule(Properties properties, String key, String defaultValue)
  5. getSubProperties(Properties src, String prefix)