michael@0: /******************************************************************************* michael@0: * Copyright (C) 2008, International Business Machines Corporation and michael@0: * others. All Rights Reserved. michael@0: ******************************************************************************* michael@0: * michael@0: * File DTINTRV.CPP michael@0: * michael@0: ******************************************************************************* michael@0: */ michael@0: michael@0: michael@0: michael@0: #include "unicode/dtintrv.h" michael@0: michael@0: michael@0: U_NAMESPACE_BEGIN michael@0: michael@0: UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval) michael@0: michael@0: //DateInterval::DateInterval(){} michael@0: michael@0: michael@0: DateInterval::DateInterval(UDate from, UDate to) michael@0: : fromDate(from), michael@0: toDate(to) michael@0: {} michael@0: michael@0: michael@0: DateInterval::~DateInterval(){} michael@0: michael@0: michael@0: DateInterval::DateInterval(const DateInterval& other) michael@0: : UObject(other) { michael@0: *this = other; michael@0: } michael@0: michael@0: michael@0: DateInterval& michael@0: DateInterval::operator=(const DateInterval& other) { michael@0: if ( this != &other ) { michael@0: fromDate = other.fromDate; michael@0: toDate = other.toDate; michael@0: } michael@0: return *this; michael@0: } michael@0: michael@0: michael@0: DateInterval* michael@0: DateInterval::clone() const { michael@0: return new DateInterval(*this); michael@0: } michael@0: michael@0: michael@0: UBool michael@0: DateInterval::operator==(const DateInterval& other) const { michael@0: return ( fromDate == other.fromDate && toDate == other.toDate ); michael@0: } michael@0: michael@0: michael@0: U_NAMESPACE_END michael@0: