annotate modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/common/dtintrv.cpp @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents fee4ef5c87df
children
rev   line source
arajkumar@11038 1 // © 2016 and later: Unicode, Inc. and others.
arajkumar@11038 2 // License & terms of use: http://www.unicode.org/copyright.html
ghb@10550 3 /*******************************************************************************
ghb@10550 4 * Copyright (C) 2008, International Business Machines Corporation and
ghb@10550 5 * others. All Rights Reserved.
ghb@10550 6 *******************************************************************************
ghb@10550 7 *
ghb@10550 8 * File DTINTRV.CPP
ghb@10550 9 *
ghb@10550 10 *******************************************************************************
ghb@10550 11 */
ghb@10550 12
ghb@10550 13
ghb@10550 14
ghb@10550 15 #include "unicode/dtintrv.h"
ghb@10550 16
ghb@10550 17
ghb@10550 18 U_NAMESPACE_BEGIN
ghb@10550 19
ghb@10550 20 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval)
ghb@10550 21
ghb@10550 22 //DateInterval::DateInterval(){}
ghb@10550 23
ghb@10550 24
ghb@10550 25 DateInterval::DateInterval(UDate from, UDate to)
ghb@10550 26 : fromDate(from),
ghb@10550 27 toDate(to)
ghb@10550 28 {}
ghb@10550 29
ghb@10550 30
ghb@10550 31 DateInterval::~DateInterval(){}
ghb@10550 32
ghb@10550 33
ghb@10550 34 DateInterval::DateInterval(const DateInterval& other)
ghb@10550 35 : UObject(other) {
ghb@10550 36 *this = other;
ghb@10550 37 }
ghb@10550 38
ghb@10550 39
ghb@10550 40 DateInterval&
ghb@10550 41 DateInterval::operator=(const DateInterval& other) {
ghb@10550 42 if ( this != &other ) {
ghb@10550 43 fromDate = other.fromDate;
ghb@10550 44 toDate = other.toDate;
ghb@10550 45 }
ghb@10550 46 return *this;
ghb@10550 47 }
ghb@10550 48
ghb@10550 49
ghb@10550 50 DateInterval*
ghb@10550 51 DateInterval::clone() const {
ghb@10550 52 return new DateInterval(*this);
ghb@10550 53 }
ghb@10550 54
ghb@10550 55
ghb@10550 56 UBool
ghb@10550 57 DateInterval::operator==(const DateInterval& other) const {
ghb@10550 58 return ( fromDate == other.fromDate && toDate == other.toDate );
ghb@10550 59 }
ghb@10550 60
ghb@10550 61
ghb@10550 62 U_NAMESPACE_END
ghb@10550 63