Gets the prefixed key and parse it to an short[]<br>
Each comma-separated list can be used. If the key couldn't get found, the
default will be used.

@param key
the key
@param def
default value

@return short[]
358042
public short[] getShortArray(final String key, final short[] def) {
		try {
			final short[] result = getShortArray(key);
			return result != null ? result : def;
		} catch (final NumberFormatException nfe) {
			return def;
		}
	}
1092772
public JsonArray getPropAsJsonArray(String key) {
    JsonElement jsonElement = this.jsonParser.parse(getProp(key));
    Preconditions.checkArgument(jsonElement.isJsonArray(),
        "Value for key " + key + " is malformed, it must be a JsonArray: " + jsonElement);
    return jsonElement.getAsJsonArray();
  }
1031355
public String[] getArray(@NotNull final String key) {
        final String string = getString(key);
        if (string != null) {
            if (string.charAt(0) == '{' || string.charAt(0) == '[') {
                return new Gson().fromJson(string, String[].class);
            } else {
                return string.split(ARRAY_SEP);
            }
        }
        return null;
    }
1137064
public short getPropAsShort(String key, short def) {
    return Short.parseShort(getProp(key, String.valueOf(def)));
  }
226422
protected static String fetchList(String key) {
        List valuesArray = (List) fetchObject(key);

        //TODO: Make this dynamic - assumes 3 lists
        List<String> stringList1 = (List<String>) valuesArray.get(0);
        List<String> stringList2 = (List<String>) valuesArray.get(1);
        List<String> stringList3 = (List<String>) valuesArray.get(2);

        return stringList1.get(RandomUtils.nextInt(stringList1.size())) + " " + stringList2.get(RandomUtils.nextInt(stringList2.size())) + " " + stringList3.get(RandomUtils.nextInt(stringList3.size()));

    }
554333
public int[] getIntArray(final String key) {
		final String[] value = getArray(key);
		if (value != null) {
			final int[] result = new int[value.length];
			for (int i = 0; i < value.length; i++) {
				result[i] = Integer.parseInt(value[i]);
			}
			return result;
		}
		return null;
	}
342449
public List<Integer> getOrderList(String key) {
        List<Integer> result = new ArrayList<Integer>();
        String processedKey = processKey(key);
        String orderKey = null;

        for (int i = 0; i < this.order.size(); i++) {
            orderKey = this.order.get(i);

            if (orderKey != null && orderKey.equals(processedKey) == true) {
                result.add(i);
            }
        }

        return result;
    }
121354
public String[] getStringArrayConfigAttribute(Map<String, Object> props, String key) {
        return trim((String[]) props.get(key));
    }
1094727
public long[] getLongArray(final String key, final long[] def) {
		try {
			final long[] result = getLongArray(key);
			return result != null ? result : def;
		} catch (final NumberFormatException nfe) {
			return def;
		}
	}
1154428
public String[] getAttributes(String key) {
        if (token != null)
            return token.getAttributes(key);
        else
            return null;
    }
1193520
def [](key)
      if ! @fields.has_key?(key) && ! @fseq.empty?
        while true
          @fseq = @fseq.skip_whitespace
          if @fseq.first == 125 # '}'.ord
            @fseq = @fseq.skip_byte(125).skip_whitespace # '}'.ord
            break
          end
          new_key, new_value = read_field_and_consume
          @fields[new_key] = new_value
          break if new_key == key
        end
      end
      @fields[key]
    end
125547
public String[] getStrings(String key, String group) {
		return getStrings(key, group, DEFAULT_DELIMITER);
	}
548906
public double[] getDoubleArray(final String key, final double[] def) {
		try {
			final double[] result = getDoubleArray(key);
			return result != null ? result : def;
		} catch (final NumberFormatException nfe) {
			return def;
		}
	}
184890
public static List<String> getList(PropertyKey key, String delimiter) {
    return sConf.getList(key, delimiter);
  }
674080
public List<String> get(String key)
    {
        if(key == null)
            throw new IllegalArgumentException("Null keys not allowed.");

        return map.get(key);
    }
733560
public String[] getStringArray(String key) {
        try {
            return getValue(String[].class, key);
        } catch (ClassCastException e) {
            return new String[] { getString(key) };
        }

    }
201696
@Override
    public List<String> getList(final String key) {
        return retrieve(new Callable<List<String>>() {
            @Override
            public List<String> call() throws Exception {
                try {
                    return configuration.getStringList(key);
                } catch (ConfigException.WrongType e) {
                    // Not a list.
                    String s = get(key);
                    if (s != null) {
                        return ImmutableList.of(s);
                    } else {
                        throw new IllegalArgumentException("Cannot create a list for the key '" + key + "'", e);
                    }
                }
            }
        }, Collections.<String>emptyList());
    }