Public cheaters map from monitor
Closed this issue · 2 comments
ChrisSSocha commented
Feature to be added if we have time. Monitor should add a getCheaters(...) which returns a copy of the map to participates that request it (Suggest to make a copy of the Map, and return an Iterator)
cmd08 commented
How about an ImmutableMap? http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common/collect/ImmutableMap.html
Then you can do getCheaters().containsKey("Country")
to see if a specific country is a cheat without having to iterate over the whole map explicitly.
ChrisSSocha commented
Perhaps Collections.unmodifiableMap(/*map of cheaters*/)
??