Returns multiple attributes for a key. If only one value exists, it will be returned in an
array of size one.

@param key the attribute name
@return the array of attribute values identified by the key
353797
@Override
    public Object[] getAttributeValues(String key) {
        if (userAttributes == null) {
            return null;
        }

        final List<Object> values = userAttributes.get(key);
        if (values != null) {
            return values.toArray();
        }

        return null;
    }
1215308
public V get(final int key) {
		final int index = (key & 0x7FFFFFFF) % elementData.length;

		IntEntry<V> m = elementData[index];
		while (m != null) {
			if (key == m.key) {
				return m.value;
			}
			m = m.nextInSlot;
		}
		return null;
	}
121354
public String[] getStringArrayConfigAttribute(Map<String, Object> props, String key) {
        return trim((String[]) props.get(key));
    }
831332
public String getValue(String key) throws Exception{

    Object val = null;

    for (ObjectName oname: hadoopObjectNames) {
      try {
        val = mbsc.getAttribute(oname, key);
      } catch (AttributeNotFoundException anfe) {
        /*just go to the next */
        continue;
      } catch(ReflectionException re) {
        if (re.getCause() instanceof NoSuchMethodException) {
          continue;
        }
      }
      err("Info: key = " + key + "; val = " + val);
      break;
    }

    return (val == null) ? null : val.toString();
  }
1073021
public String[] getStringArray(String key) {
    String effectiveKey = definitions.validKey(key);
    Optional<PropertyDefinition> def = getDefinition(effectiveKey);
    if ((def.isPresent()) && (def.get().multiValues())) {
      String value = getString(key);
      if (value == null) {
        return ArrayUtils.EMPTY_STRING_ARRAY;
      }

      List<String> values = new ArrayList<>();
      for (String v : Splitter.on(",").trimResults().split(value)) {
        values.add(v.replace("%2C", ","));
      }
      return values.toArray(new String[values.size()]);
    }

    return getStringArrayBySeparator(key, ",");
  }
388187
public String[] getArray(final String key, final String[] def) {
		final String[] value = getArray(key);
		if (value != null) {
			return value;
		}
		return def;
	}
320035
public Object get (int key)
    {
        int size = _keys.length, start = key % size;
        for (int ii = 0; ii < size; ii++) {
            int idx = (ii + start) % size;
            if (_keys[idx] == key) {
                return _values[idx];
            }
        }
        return null;
    }
817731
static String getDDBKey(Map<String, AttributeValue> key) {
        return key.get(ROW_KEY_ATTR_NAME).getS();
    }
755738
protected function getAttributeValue($key)
    {
        if (array_key_exists($key, $this->attributes)) {
            return $this->attributes[$key];
        }

        return null;
    }
18732
@SuppressWarnings("unchecked")
	@Override
	public List<String> getStringList(String key) {
		return getData(key, List.class);
	}
364620
public List<String> getList(String key) {
    if (!containsKey(key)) {
      throw new IllegalArgumentException("Missing key " + key + ".");
    }
    return getList(key, null);
  }
822297
public JSONArray getJSONArray( String key ) {
      verifyIsNull();
      Object o = get( key );
      if( o != null && o instanceof JSONArray ){
         return (JSONArray) o;
      }
      throw new JSONException( "JSONObject[" + JSONUtils.quote( key ) + "] is not a JSONArray." );
   }
858820
public List getAll(Object key) {
        Object value = mMap.get(key);
        if (value instanceof List) {
            return ((List)value);
        }
        else {
            List list = new ArrayList();
            if (value != null || mMap.containsKey(key)) {
                list.add(value);
            }
            mMap.put(key, list);
            return list;
        }
    }
1299355
public String getAttr(String key) {
        String val = (String) dynamicAttrs.get(key);
        return val == null ? staticAttrs.get(key) : val;
    }
1255509
public boolean[] getBooleanArray(final String key) {
		final String[] value = getArray(key);
		if (value != null) {
			final boolean[] result = new boolean[value.length];
			for (int i = 0; i < value.length; i++) {
				result[i] = Boolean.valueOf(value[i]).booleanValue();
			}
			return result;
		}
		return null;
	}
1134836
public String[] getArray(final String key) {
		final String value = getProperty(key);
		if (value != null) {
			final String[] strings = value.split(",[\\s]*|[\\s]*$");
			return strings;
		}
		return null;
	}
1349208
public List<V> get(K key){
		return (List<V>)map.get(key);
	}