00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_ABSTRACT_MAP_HPP
00017 #define COH_ABSTRACT_MAP_HPP
00018
00019 #include "coherence/lang.ns"
00020
00021 #include "coherence/util/Collection.hpp"
00022 #include "coherence/util/Describable.hpp"
00023 #include "coherence/util/Iterator.hpp"
00024 #include "coherence/util/Map.hpp"
00025 #include "coherence/util/Set.hpp"
00026
00027 #include <ostream>
00028
00029 COH_OPEN_NAMESPACE2(coherence,util)
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 class COH_EXPORT AbstractMap
00058 : public abstract_spec<AbstractMap,
00059 extends<Describable>,
00060 implements<Map> >
00061 {
00062
00063
00064 public:
00065
00066
00067
00068 virtual size32_t size() const;
00069
00070
00071
00072
00073 virtual bool isEmpty() const;
00074
00075
00076
00077
00078 virtual bool containsKey(Object::View vKey) const;
00079
00080
00081
00082
00083 virtual bool containsValue(Object::View vValue) const;
00084
00085
00086
00087
00088 virtual Object::Holder get(Object::View vKey) const;
00089
00090
00091
00092
00093 virtual Object::Holder get(Object::View vKey);
00094
00095
00096
00097
00098 virtual void putAll(Map::View vMap);
00099
00100
00101
00102
00103 virtual Set::View keySet() const;
00104
00105
00106
00107
00108 virtual Set::Handle keySet();
00109
00110
00111
00112
00113 virtual Collection::View values() const;
00114
00115
00116
00117
00118 virtual Collection::Handle values();
00119
00120
00121
00122
00123 public:
00124
00125
00126
00127 virtual bool equals(Object::View v) const;
00128
00129
00130
00131
00132 virtual size32_t hashCode() const;
00133
00134
00135
00136
00137 virtual void toStream(std::ostream &out) const;
00138 };
00139
00140 COH_CLOSE_NAMESPACE2
00141
00142 #endif // COH_ABSTRACT_MAP_HPP
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.