@Override public long getCost() { return key.totalSize() + (value == null ? 0 : value.totalSize()); }