code: public boolean clear() {
          if (!isMutable()) { throw new IllegalStateException("Cannot clear a non-mutable MDict"); }
  
          if (valCount == 0) { return true; }
  
          mutate();
          valueMap.clear();
  
          if (flDict != null) {
              final FLDictIterator itr = new FLDictIterator();
              try {
                  itr.begin(flDict);
                  String key;
                  while ((key = itr.getKeyString()) != null) {
                      valueMap.put(key, MValue.EMPTY);
                      if (!itr.next()) { break; }
                  }
              }
              finally {
                  itr.free();
              }
          }
  
          valCount = 0;
          return true;
      }
docs: /* Public methods