currentSize is ambiguous; it could refer to either the number of pairs or their in-memory size in bytes. Instead maybe it should be something like numPairsInMemory (or something that sounds nicer)