docs: public void clear() {
          int oldSize = size();
          Map values = new HashMap();
          if (!delegate.isEmpty()) {
              values.putAll(delegate);
          }
          delegate.clear();
          firePropertyClearedEvent(values);
          fireSizeChangedEvent(oldSize, size());
      }