Code example for Map

Methods: keySet

0
    public Object get(String key) {
        return _prefs.get(key);
    } 
     
    public Set<String> getKeys() {
        return _prefs.keySet();
    } 
     
    @Override 
    public void write(JSONWriter writer, Properties options) throws JSONException {
        writer.object();
         
        writer.key("entries");
            writer.object();
            for (String k : _prefs.keySet()) {
                writer.key(k);
                 
                Object o = _prefs.get(k);
                if (o instanceof Jsonizable) {
                    ((Jsonizable) o).write(writer, options);
                } else {