DeBukkIt/SimpleFileStorage

Add the ability to get the count of objects in your storage

Closed this issue · 3 comments

Here is what I have added to my FileStorage file:

public int getCountAsInt(){ return storageMap.size(); }

And:

public String getCountAsString(){ return String.valueOf(storageMap.size()); }

I like your suggestion. However, I would restrict it to getCount returning an int value. The corresponding string representation should be implemented by each user. I'll implement it soon.

Nice. :)

Thanks.

There it is (again): 5a20496 called getSize()