MCPcopy Create free account
hub / github.com/apache/groovy / clear

Method clear

src/main/java/groovy/util/ObservableMap.java:182–192  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

180
181 /** {@inheritDoc} */
182 @Override
183 public void clear() {
184 int oldSize = size();
185 Map values = new HashMap();
186 if (!delegate.isEmpty()) {
187 values.putAll(delegate);
188 }
189 delegate.clear();
190 firePropertyClearedEvent(values);
191 fireSizeChangedEvent(oldSize, size());
192 }
193
194 /** {@inheritDoc} */
195 @Override

Callers

nothing calls this directly

Calls 6

sizeMethod · 0.95
fireSizeChangedEventMethod · 0.95
clearMethod · 0.65
isEmptyMethod · 0.45
putAllMethod · 0.45

Tested by

no test coverage detected