public boolean hasSameRules ( TimeZone other ) { return other != null && getRawOffset ( ) == other . getRawOffset ( ) && useDaylightTime ( ) == other . useDaylightTime ( ) ; }
Returns true if this zone has the same rule and offset as another zone . That is if this zone differs only in ID if at all . Returns false if the other zone is null .