本文整理了Java中java.util.concurrent.ConcurrentSkipListMap.clone()
方法的一些代码示例,展示了ConcurrentSkipListMap.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentSkipListMap.clone()
方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentSkipListMap
类名称:ConcurrentSkipListMap
方法名:clone
[英]Returns a shallow copy of this ConcurrentSkipListMapinstance. (The keys and values themselves are not cloned.)
[中]
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public GridBoundedConcurrentOrderedMap<K, V> clone() {
GridBoundedConcurrentOrderedMap<K, V> map = (GridBoundedConcurrentOrderedMap<K, V>)super.clone();
map.max = max;
return map;
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
@Override public GridBoundedConcurrentOrderedMap<K, V> clone() {
GridBoundedConcurrentOrderedMap<K, V> map = (GridBoundedConcurrentOrderedMap<K, V>)super.clone();
map.max = max;
return map;
}
代码示例来源:origin: org.gridgain/gridgain-core
/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
@Override public GridBoundedConcurrentOrderedMap<K, V> clone() {
GridBoundedConcurrentOrderedMap<K, V> map = (GridBoundedConcurrentOrderedMap<K, V>)super.clone();
map.max = max;
return map;
}
代码示例来源:origin: Non-Dairy-Soy-Plugin/Non-Dairy-Soy-Plugin
@Override
public AbstractCache<K,V> clone() {
AbstractCache<K,V> clone = (AbstractCache<K,V>)super.clone();
clone.clear();
clone.putAll(this);
return clone;
}
内容来源于网络,如有侵权,请联系作者删除!