@Override
    public synchronized boolean isEmpty() {
        return map.isEmpty();
    }
Synchronized check of set emptiness
Copy of the HashSet code if isEmpty()

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