Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4766f23e
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4766f23e
编写于
1月 03, 2014
作者:
C
coffeys
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
6bfa7ade
b96ef1f8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
13 deletion
+26
-13
src/share/classes/java/util/AbstractMap.java
src/share/classes/java/util/AbstractMap.java
+26
-13
未找到文件。
src/share/classes/java/util/AbstractMap.java
浏览文件 @
4766f23e
...
...
@@ -78,7 +78,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation returns <tt>entrySet().size()</tt>.
* @implSpec
* This implementation returns <tt>entrySet().size()</tt>.
*/
public
int
size
()
{
return
entrySet
().
size
();
...
...
@@ -87,7 +88,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation returns <tt>size() == 0</tt>.
* @implSpec
* This implementation returns <tt>size() == 0</tt>.
*/
public
boolean
isEmpty
()
{
return
size
()
==
0
;
...
...
@@ -96,7 +98,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation iterates over <tt>entrySet()</tt> searching
* @implSpec
* This implementation iterates over <tt>entrySet()</tt> searching
* for an entry with the specified value. If such an entry is found,
* <tt>true</tt> is returned. If the iteration terminates without
* finding such an entry, <tt>false</tt> is returned. Note that this
...
...
@@ -126,7 +129,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation iterates over <tt>entrySet()</tt> searching
* @implSpec
* This implementation iterates over <tt>entrySet()</tt> searching
* for an entry with the specified key. If such an entry is found,
* <tt>true</tt> is returned. If the iteration terminates without
* finding such an entry, <tt>false</tt> is returned. Note that this
...
...
@@ -157,7 +161,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation iterates over <tt>entrySet()</tt> searching
* @implSpec
* This implementation iterates over <tt>entrySet()</tt> searching
* for an entry with the specified key. If such an entry is found,
* the entry's value is returned. If the iteration terminates without
* finding such an entry, <tt>null</tt> is returned. Note that this
...
...
@@ -191,7 +196,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation always throws an
* @implSpec
* This implementation always throws an
* <tt>UnsupportedOperationException</tt>.
*
* @throws UnsupportedOperationException {@inheritDoc}
...
...
@@ -206,7 +212,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation iterates over <tt>entrySet()</tt> searching for an
* @implSpec
* This implementation iterates over <tt>entrySet()</tt> searching for an
* entry with the specified key. If such an entry is found, its value is
* obtained with its <tt>getValue</tt> operation, the entry is removed
* from the collection (and the backing map) with the iterator's
...
...
@@ -255,7 +262,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation iterates over the specified map's
* @implSpec
* This implementation iterates over the specified map's
* <tt>entrySet()</tt> collection, and calls this map's <tt>put</tt>
* operation once for each entry returned by the iteration.
*
...
...
@@ -276,7 +284,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation calls <tt>entrySet().clear()</tt>.
* @implSpec
* This implementation calls <tt>entrySet().clear()</tt>.
*
* <p>Note that this implementation throws an
* <tt>UnsupportedOperationException</tt> if the <tt>entrySet</tt>
...
...
@@ -302,7 +311,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation returns a set that subclasses {@link AbstractSet}.
* @implSpec
* This implementation returns a set that subclasses {@link AbstractSet}.
* The subclass's iterator method returns a "wrapper object" over this
* map's <tt>entrySet()</tt> iterator. The <tt>size</tt> method
* delegates to this map's <tt>size</tt> method and the
...
...
@@ -358,7 +368,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
/**
* {@inheritDoc}
*
* <p>This implementation returns a collection that subclasses {@link
* @implSpec
* This implementation returns a collection that subclasses {@link
* AbstractCollection}. The subclass's iterator method returns a
* "wrapper object" over this map's <tt>entrySet()</tt> iterator.
* The <tt>size</tt> method delegates to this map's <tt>size</tt>
...
...
@@ -425,7 +436,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
* <tt>equals</tt> method works properly across different implementations
* of the <tt>Map</tt> interface.
*
* <p>This implementation first checks if the specified object is this map;
* @implSpec
* This implementation first checks if the specified object is this map;
* if so it returns <tt>true</tt>. Then, it checks if the specified
* object is a map whose size is identical to the size of this map; if
* not, it returns <tt>false</tt>. If so, it iterates over this map's
...
...
@@ -478,7 +490,8 @@ public abstract class AbstractMap<K,V> implements Map<K,V> {
* <tt>m1</tt> and <tt>m2</tt>, as required by the general contract of
* {@link Object#hashCode}.
*
* <p>This implementation iterates over <tt>entrySet()</tt>, calling
* @implSpec
* This implementation iterates over <tt>entrySet()</tt>, calling
* {@link Map.Entry#hashCode hashCode()} on each element (entry) in the
* set, and adding up the results.
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录