asSimpleMap<T> method

Map<String, T> asSimpleMap<T>()

Returns as map of string keys/T values (copies to convert).

Implementation

Map<String, T> asSimpleMap<T>()
{
  Map<String, T> map = new HashMap<String, T>();

  List<String> keys = getProperties();

  for (String key in keys)
  {
    map[key] = _castToMap()[key] as T;
  }

  return map;
}