public static synchronized String getEquivalentID ( String id , int index ) { String result = "" ; if ( index >= 0 ) { UResourceBundle res = openOlsonResource ( null , id ) ; if ( res != null ) { int zoneIdx = - 1 ; try { UResourceBundle links = res . get ( "links" ) ; int [ ] zones = links . getIntVector ( ) ; if ( index < zones . length ) { zoneIdx = zones [ index ] ; } } catch ( MissingResourceException ex ) { // throw away } if ( zoneIdx >= 0 ) { String tmp = getZoneID ( zoneIdx ) ; if ( tmp != null ) { result = tmp ; } } } } return result ; }
Returns an ID in the equivalency group that includes the given ID . An equivalency group contains zones that behave identically to the given zone .