@Override
	public int size() {
		expungeStaleEntries();
		return map.size();
	}
A simple cache (map) that uses soft references for the values.

@author Karl Tauber
@since 2
flatlaf-core/src/main/java/com/formdev/flatlaf/util/SoftCache.java