Closed jodastephen closed 11 years ago
Agreed we should have one in ZoneId. Developer should not touch the provider stuff, if possible.
Looks fine though I'm not sure what 'returns a consistent set of ids' means. What aspect of the set is consistent?
I was thinking of the multi-threaded aspect. You won't see any kind of inconsistent or incomplete view of the IDs.
I expect the general statement about the class being thread safe covers it. Besides there is no relationship between any of the entries in the set that could be possibly be detectable (by looking at the set).
Fixed in http://hg.openjdk.java.net/threeten/threeten/jdk/rev/71b654aec2d0 with "consistent" removed.
getAvailableZoneIds()
is currently onZoneRulesProvider
rather thanZoneId
. We should consider whether a convenience method with the same name should be added toZoneId
to aid discovery of the functionality.