@Override
    public synchronized int size() {
        return map.size();
    }
Synchronized access to set size
Copy of the HashSet code if size()

@see HashSet
main/src/main/java/cgeo/geocaching/utils/LeastRecentlyUsedSet.java