Logo Search packages:      
Sourcecode: icu version File versions

UBool AnnualTimeZoneRule::operator== ( const TimeZoneRule that  )  const [virtual]

Return true if the given TimeZoneRule objects are semantically equal. Objects of different subclasses are considered unequal.

Parameters:
that The object to be compared with.
Returns:
true if the given TimeZoneRule objects are semantically equal. ICU 3.8

Reimplemented from TimeZoneRule.

Definition at line 227 of file tzrule.cpp.

References FALSE, fDateTimeRule, fEndYear, fStartYear, UObject::getDynamicClassID(), getDynamicClassID(), and TRUE.

Referenced by operator!=().

                                                             {
    if (this == &that) {
        return TRUE;
    }
    if (getDynamicClassID() != that.getDynamicClassID()) {
        return FALSE;
    }
    AnnualTimeZoneRule *atzr = (AnnualTimeZoneRule*)&that;
    return (*fDateTimeRule == *(atzr->fDateTimeRule) &&
            fStartYear == atzr->fStartYear &&
            fEndYear == atzr->fEndYear);
}


Generated by  Doxygen 1.6.0   Back to index