00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_RAW_YEAR_MONTH_INTERVAL_HPP
00017 #define COH_RAW_YEAR_MONTH_INTERVAL_HPP
00018
00019 #include "coherence/lang.ns"
00020
00021 #include <ostream>
00022
00023 COH_OPEN_NAMESPACE3(coherence,io,pof)
00024
00025
00026
00027
00028
00029
00030
00031 class COH_EXPORT RawYearMonthInterval
00032 : public cloneable_spec<RawYearMonthInterval>
00033 {
00034 friend class factory<RawYearMonthInterval>;
00035
00036
00037
00038 protected:
00039
00040
00041
00042
00043
00044
00045
00046
00047 RawYearMonthInterval(int32_t cYears, int32_t cMonths);
00048
00049
00050
00051
00052 RawYearMonthInterval(const RawYearMonthInterval& that);
00053
00054
00055
00056
00057 public:
00058
00059
00060
00061 virtual bool equals(Object::View v) const;
00062
00063
00064
00065
00066 virtual size32_t hashCode() const;
00067
00068
00069
00070
00071 virtual bool isImmutable() const;
00072
00073
00074
00075
00076 virtual void toStream(std::ostream &out) const;
00077
00078
00079
00080
00081 public:
00082
00083
00084
00085
00086
00087 virtual int32_t getYears() const;
00088
00089
00090
00091
00092
00093
00094 virtual int32_t getMonths() const;
00095
00096
00097
00098
00099 protected:
00100
00101
00102
00103 int32_t m_cYears;
00104
00105
00106
00107
00108 int32_t m_cMonths;
00109 };
00110
00111 COH_CLOSE_NAMESPACE3
00112
00113 #endif // COH_RAW_YEAR_MONTH_INTERVAL_HPP
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.