1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_concurrent_ConcurrentHashMap__
|
5 |
|
|
#define __java_util_concurrent_ConcurrentHashMap__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/util/AbstractMap.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class java::util::concurrent::ConcurrentHashMap : public ::java::util::AbstractMap
|
14 |
|
|
{
|
15 |
|
|
|
16 |
|
|
static jint hash(jint);
|
17 |
|
|
public: // actually package-private
|
18 |
|
|
virtual ::java::util::concurrent::ConcurrentHashMap$Segment * segmentFor(jint);
|
19 |
|
|
public:
|
20 |
|
|
ConcurrentHashMap(jint, jfloat, jint);
|
21 |
|
|
ConcurrentHashMap(jint, jfloat);
|
22 |
|
|
ConcurrentHashMap(jint);
|
23 |
|
|
ConcurrentHashMap();
|
24 |
|
|
ConcurrentHashMap(::java::util::Map *);
|
25 |
|
|
virtual jboolean isEmpty();
|
26 |
|
|
virtual jint size();
|
27 |
|
|
virtual ::java::lang::Object * get(::java::lang::Object *);
|
28 |
|
|
virtual jboolean containsKey(::java::lang::Object *);
|
29 |
|
|
virtual jboolean containsValue(::java::lang::Object *);
|
30 |
|
|
virtual jboolean contains(::java::lang::Object *);
|
31 |
|
|
virtual ::java::lang::Object * put(::java::lang::Object *, ::java::lang::Object *);
|
32 |
|
|
virtual ::java::lang::Object * putIfAbsent(::java::lang::Object *, ::java::lang::Object *);
|
33 |
|
|
virtual void putAll(::java::util::Map *);
|
34 |
|
|
virtual ::java::lang::Object * remove(::java::lang::Object *);
|
35 |
|
|
virtual jboolean remove(::java::lang::Object *, ::java::lang::Object *);
|
36 |
|
|
virtual jboolean replace(::java::lang::Object *, ::java::lang::Object *, ::java::lang::Object *);
|
37 |
|
|
virtual ::java::lang::Object * replace(::java::lang::Object *, ::java::lang::Object *);
|
38 |
|
|
virtual void clear();
|
39 |
|
|
virtual ::java::util::Set * keySet();
|
40 |
|
|
virtual ::java::util::Collection * values();
|
41 |
|
|
virtual ::java::util::Set * entrySet();
|
42 |
|
|
virtual ::java::util::Enumeration * keys();
|
43 |
|
|
virtual ::java::util::Enumeration * elements();
|
44 |
|
|
private:
|
45 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
46 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
47 |
|
|
static const jlong serialVersionUID = 7249069246763182397LL;
|
48 |
|
|
public: // actually package-private
|
49 |
|
|
static const jint DEFAULT_INITIAL_CAPACITY = 16;
|
50 |
|
|
static jfloat DEFAULT_LOAD_FACTOR;
|
51 |
|
|
static const jint DEFAULT_CONCURRENCY_LEVEL = 16;
|
52 |
|
|
static const jint MAXIMUM_CAPACITY = 1073741824;
|
53 |
|
|
static const jint MAX_SEGMENTS = 65536;
|
54 |
|
|
static const jint RETRIES_BEFORE_LOCK = 2;
|
55 |
|
|
jint __attribute__((aligned(__alignof__( ::java::util::AbstractMap)))) segmentMask;
|
56 |
|
|
jint segmentShift;
|
57 |
|
|
JArray< ::java::util::concurrent::ConcurrentHashMap$Segment * > * segments;
|
58 |
|
|
::java::util::Set * keySet__;
|
59 |
|
|
::java::util::Set * entrySet__;
|
60 |
|
|
::java::util::Collection * values__;
|
61 |
|
|
public:
|
62 |
|
|
static ::java::lang::Class class$;
|
63 |
|
|
};
|
64 |
|
|
|
65 |
|
|
#endif // __java_util_concurrent_ConcurrentHashMap__
|