OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 2009-2010, Google, International Business Machines Corporation
and * | 3 * Copyright (C) 2009-2014, Google, International Business Machines Corporation
and * |
4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 */ | 6 */ |
7 | 7 |
8 #ifndef __TMUNIT_H__ | 8 #ifndef __TMUNIT_H__ |
9 #define __TMUNIT_H__ | 9 #define __TMUNIT_H__ |
10 | 10 |
11 | 11 |
12 /** | 12 /** |
13 * \file | 13 * \file |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 */ | 70 */ |
71 TimeUnit(const TimeUnit& other); | 71 TimeUnit(const TimeUnit& other); |
72 | 72 |
73 /** | 73 /** |
74 * Assignment operator. | 74 * Assignment operator. |
75 * @stable ICU 4.2 | 75 * @stable ICU 4.2 |
76 */ | 76 */ |
77 TimeUnit& operator=(const TimeUnit& other); | 77 TimeUnit& operator=(const TimeUnit& other); |
78 | 78 |
79 /** | 79 /** |
80 * Equality operator. | |
81 * @return true if 2 objects are the same. | |
82 * @stable ICU 4.2 | |
83 */ | |
84 virtual UBool operator==(const UObject& other) const; | |
85 | |
86 /** | |
87 * Non-Equality operator. | |
88 * @return true if 2 objects are not the same. | |
89 * @stable ICU 4.2 | |
90 */ | |
91 UBool operator!=(const UObject& other) const; | |
92 | |
93 /** | |
94 * Returns a unique class ID for this object POLYMORPHICALLY. | 80 * Returns a unique class ID for this object POLYMORPHICALLY. |
95 * This method implements a simple form of RTTI used by ICU. | 81 * This method implements a simple form of RTTI used by ICU. |
96 * @return The class ID for this object. All objects of a given | 82 * @return The class ID for this object. All objects of a given |
97 * class have the same class ID. Objects of other classes have | 83 * class have the same class ID. Objects of other classes have |
98 * different class IDs. | 84 * different class IDs. |
99 * @stable ICU 4.2 | 85 * @stable ICU 4.2 |
100 */ | 86 */ |
101 virtual UClassID getDynamicClassID() const; | 87 virtual UClassID getDynamicClassID() const; |
102 | 88 |
103 /** | 89 /** |
(...skipping 23 matching lines...) Expand all Loading... |
127 | 113 |
128 /** | 114 /** |
129 * Constructor | 115 * Constructor |
130 * @internal ICU 4.2 | 116 * @internal ICU 4.2 |
131 */ | 117 */ |
132 TimeUnit(UTimeUnitFields timeUnitField); | 118 TimeUnit(UTimeUnitFields timeUnitField); |
133 | 119 |
134 }; | 120 }; |
135 | 121 |
136 | 122 |
137 inline UBool | |
138 TimeUnit::operator!=(const UObject& other) const { | |
139 return !operator==(other); | |
140 } | |
141 | |
142 | |
143 U_NAMESPACE_END | 123 U_NAMESPACE_END |
144 | 124 |
145 #endif /* #if !UCONFIG_NO_FORMATTING */ | 125 #endif /* #if !UCONFIG_NO_FORMATTING */ |
146 | 126 |
147 #endif // __TMUNIT_H__ | 127 #endif // __TMUNIT_H__ |
148 //eof | 128 //eof |
149 // | 129 // |
OLD | NEW |