Logo Search packages:      
Sourcecode: icu version File versions

UBool TimeZoneRule::isEquivalentTo ( const TimeZoneRule other  )  const [virtual]

Returns if this rule represents the same rule and offsets as another. When two TimeZoneRule objects differ only its names, this method returns true.

Parameters:
other The TimeZoneRule object to be compared with.
Returns:
true if the other TimeZoneRule is the same as this one. ICU 3.8

Reimplemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule.

Definition at line 83 of file tzrule.cpp.

References fDSTSavings, fRawOffset, and UObject::getDynamicClassID().

Referenced by TimeArrayTimeZoneRule::isEquivalentTo(), AnnualTimeZoneRule::isEquivalentTo(), and InitialTimeZoneRule::isEquivalentTo().

                                                            {
    return ((this == &other) ||
            (getDynamicClassID() == other.getDynamicClassID() &&
            fRawOffset == other.fRawOffset &&
            fDSTSavings == other.fDSTSavings));
}


Generated by  Doxygen 1.6.0   Back to index