Gets the flag value for the given key as a comma-separated {@link List} of Strings, wrapped in
an {@link Optional}, which is empty if the flag is unset.

<p>(note: empty strings included, e.g. {@code "-XepOpt:List=,1,,2," => ["","1","","2",""]})
17258
public Optional<List<String>> getList(String key) {
    return this.get(key).map(v -> ImmutableList.copyOf(Splitter.on(',').split(v)));
  }
395107
public boolean getBoolean(String key) {
    String value = getString(key);
    return StringUtils.isNotEmpty(value) && Boolean.parseBoolean(value);
  }
1039802
static String[] getListFromProperty(Map<String, String> properties, String key) {
    String propValue = properties.get(key);
    if (propValue != null) {
      return parseAsCsv(key, propValue);
    }
    return new String[0];
  }
1171790
public static <K,V> Optional<V> getOpt(Map<K,V> map, K key) {
        return Optional.ofNullable(map.get(key));
    }
802644
@SuppressWarnings("rawtypes")
	public List hvals(Object key) {
		Jedis jedis = getJedis();
		try {
			List<byte[]> data = jedis.hvals(keyToBytes(key));
			return valueListFromBytesList(data);
		}
		finally {close(jedis);}
	}
210686
public String getString(String key) {
    Object value = get(key);
    if (value instanceof String) {
      return (String) value;
    } else if (value != null) {
      return String.valueOf(value);
    }
    return null;
  }
565129
public ArrayList<String> get(String key) {
    Iterator<Pair<String, ArrayList<String>>> it = store.iterator();
    while (it.hasNext()) {
      Pair<String, ArrayList<String>> pair = it.next();
      if (key.equals(pair.first)) {
        return pair.second;
      }
    }
    return null;
  }
485755
public String get(String key) {
        int i = indexOfKey(key);
        return i == NotFound ? EmptyString : checkNotNull(vals[i]);
    }
1066509
public String getString(String key, String defaultValue) {
		Object o = getObject(key);
		if (o == null) {
			return defaultValue;
		}
		if (!(o instanceof String)) {
			throw new IllegalArgumentException("Object ["+o+"] associated with key ["+key+"] is not of type String.");
		}
		return (String)o;
	}
599722
public List<String> getValueList(String key) {
        Objects.requireNonNull(key, Required.KEY.toString());
        
        return this.valueMap.get(key);
    }
948371
static String getExpressValue(final String key) {
    if (isExpression(key)) {
      String keyValue = getSystemProperty(key.substring(2, key.length() - 1));
      return keyValue == null ? key : keyValue;
    } else {
      return key;
    }
  }
174191
public static Map<String, String> splitKeyValue(List<String> lst) {
        if (lst == null || lst.isEmpty()) return null;
        Map<String, String> rslt = null;
        for (String s : lst) {
            s = s.trim();
            if (s.isEmpty() || s.equals("=")) continue;
            int j = s.indexOf('=');
            if (j >= 0) {
                String k = s.substring(0, j).trim();
                String v = s.substring(j + 1).trim();
                if (k.isEmpty() && v.isEmpty()) continue;
                if (rslt == null) rslt = new LinkedHashMap<>();
                rslt.put(k, v);
            } else {
                if (rslt == null) rslt = new LinkedHashMap<>();
                rslt.put(s, null);
            }
        }
        return rslt;
    }
461518
public String getValue(String key) {
        if (key.indexOf(DOLLAR) == -1) {
            String value = getVariable(key);

            if (value == null)
                return null;

            if (value.indexOf(DOLLAR) == -1)
                return value;
            else
                return parseValue(value);
        }
        return parseValue(key);
    }
218062
@Override
    public List<String> getStringList( final String             key,
                                       final List<String>       defaultValue )
    {
        return getStringList( key, DEFAULT_LIST_DELIMITER, defaultValue );
    }
911183
@Override
	public List<CPDefinitionOptionValueRel> findByKey(String key) {
		return findByKey(key, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
201288
public String getFirst(String key)
    {
        if(key == null)
            throw new IllegalArgumentException("Null keys not allowed.");

        List<String> vals = map.get(key);
        if(vals == null || vals.size() == 0)
            return null;

        return vals.get(0);
    }
283577
public static String getStringValue(String key, String defaultValue) {
        return getStringValue(null, key, defaultValue);
    }