📄 concurrenthashmap.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#ConcurrentHashMap()">ConcurrentHashMap</A></B>()</CODE>
<BR>
Constructs a new, empty map with a default initial capacity and default load factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#ConcurrentHashMap(int)">ConcurrentHashMap</A></B>(int initialCapacity)</CODE>
<BR>
Constructs a new, empty map with the specified initial capacity and default load factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#ConcurrentHashMap(int, float)">ConcurrentHashMap</A></B>(int initialCapacity, float loadFactor)</CODE>
<BR>
Constructs a new, empty map with the specified initial capacity and the specified load factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#ConcurrentHashMap(java.util.Map)">ConcurrentHashMap</A></B>(java.util.Map t)</CODE>
<BR>
Constructs a new map with the same mappings as the given map. </TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#bitcount(int)">bitcount</A></B>(int w)</CODE>
<BR>
Return the number of set bits in w. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#clear()">clear</A></B>()</CODE>
<BR>
Removes all mappings from this map.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#clone()">clone</A></B>()</CODE>
<BR>
Returns a shallow copy of this <tt>ConcurrentHashMap</tt> instance: the keys and values themselves are not cloned.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#contains(java.lang.Object)">contains</A></B>(java.lang.Object value)</CODE>
<BR>
Tests if some key maps into the specified value in this table. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#containsKey(java.lang.Object)">containsKey</A></B>(java.lang.Object key)</CODE>
<BR>
Tests if the specified object is a key in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#containsValue(java.lang.Object)">containsValue</A></B>(java.lang.Object value)</CODE>
<BR>
Returns <tt>true</tt> if this map maps one or more keys to the specified value. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#elements()">elements</A></B>()</CODE>
<BR>
Returns an enumeration of the values in this table. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Set</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#entrySet()">entrySet</A></B>()</CODE>
<BR>
Returns a collection view of the mappings contained in this map. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#eq(java.lang.Object, java.lang.Object)">eq</A></B>(java.lang.Object x, java.lang.Object y)</CODE>
<BR>
Check for equality of non-null references x and y.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#get(java.lang.Object)">get</A></B>(java.lang.Object key)</CODE>
<BR>
Returns the value to which the specified key is mapped in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#hash(java.lang.Object)">hash</A></B>(java.lang.Object x)</CODE>
<BR>
Return hash code for Object x. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#isEmpty()">isEmpty</A></B>()</CODE>
<BR>
Returns <tt>true</tt> if this map contains no key-value mappings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#keys()">keys</A></B>()</CODE>
<BR>
Returns an enumeration of the keys in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Set</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#keySet()">keySet</A></B>()</CODE>
<BR>
Returns a set view of the keys contained in this map. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.Entry.html">ConcurrentHashMap.Entry</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#newTable(int)">newTable</A></B>(int capacity)</CODE>
<BR>
Create table array and set the per-segment threshold</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#put(java.lang.Object, java.lang.Object)">put</A></B>(java.lang.Object key, java.lang.Object value)</CODE>
<BR>
Maps the specified <code>key</code> to the specified <code>value</code> in this table. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#putAll(java.util.Map)">putAll</A></B>(java.util.Map t)</CODE>
<BR>
Copies all of the mappings from the specified map to this one. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#rehash()">rehash</A></B>()</CODE>
<BR>
Rehashes the contents of this map into a new table with a larger capacity.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#remove(java.lang.Object)">remove</A></B>(java.lang.Object key)</CODE>
<BR>
Removes the key (and its corresponding value) from this table. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#remove(java.lang.Object, java.lang.Object)">remove</A></B>(java.lang.Object key, java.lang.Object value)</CODE>
<BR>
Removes the (key, value) pair from this table. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#resize(int, com.cmcc.mm7.vasp.common.ConcurrentHashMap.Entry[])">resize</A></B>(int index, <A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.Entry.html">ConcurrentHashMap.Entry</A>[] assumedTab)</CODE>
<BR>
Gather all locks in order to call rehash, by recursing within synch blocks for each segment index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#size()">size</A></B>()</CODE>
<BR>
Returns the number of key-value mappings in this map.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Collection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.html#values()">values</A></B>()</CODE>
<BR>
Returns a collection view of the values contained in this map. </TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.util.AbstractMap"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.util.AbstractMap</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, hashCode, toString</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.util.Map"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface java.util.Map</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, hashCode</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="table"><!-- --></A><H3>
table</H3>
<PRE>
protected transient <A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.Entry.html">ConcurrentHashMap.Entry</A>[] <B>table</B></PRE>
<DL>
<DD>The hash table data.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="CONCURRENCY_LEVEL"><!-- --></A><H3>
CONCURRENCY_LEVEL</H3>
<PRE>
protected static final int <B>CONCURRENCY_LEVEL</B></PRE>
<DL>
<DD>The number of concurrency control segments. The value can be at most 32 since ints are used as bitsets over segments. Emprically, it doesn't seem to pay to decrease it either, so the value should be at least 32. In other words, do not redefine this :-)
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.cmcc.mm7.vasp.common.ConcurrentHashMap.CONCURRENCY_LEVEL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SEGMENT_MASK"><!-- --></A><H3>
SEGMENT_MASK</H3>
<PRE>
protected static final int <B>SEGMENT_MASK</B></PRE>
<DL>
<DD>Mask value for indexing into segments
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.cmcc.mm7.vasp.common.ConcurrentHashMap.SEGMENT_MASK">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="segments"><!-- --></A><H3>
segments</H3>
<PRE>
protected final <A HREF="../../../../../com/cmcc/mm7/vasp/common/ConcurrentHashMap.Segment.html">ConcurrentHashMap.Segment</A>[] <B>segments</B></PRE>
<DL>
<DD>The array of concurrency control segments.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="DEFAULT_INITIAL_CAPACITY"><!-- --></A><H3>
DEFAULT_INITIAL_CAPACITY</H3>
<PRE>
public static int <B>DEFAULT_INITIAL_CAPACITY</B></PRE>
<DL>
<DD>The default initial number of table slots for this table (32). Used when not otherwise specified in constructor.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="DEFAULT_LOAD_FACTOR"><!-- --></A><H3>
DEFAULT_LOAD_FACTOR</H3>
<PRE>
public static final float <B>DEFAULT_LOAD_FACTOR</B></PRE>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -