java.util.concurrent.ConcurrentSkipListMap.clone()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(908)

本文整理了Java中java.util.concurrent.ConcurrentSkipListMap.clone()方法的一些代码示例,展示了ConcurrentSkipListMap.clone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentSkipListMap.clone()方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentSkipListMap
类名称:ConcurrentSkipListMap
方法名:clone

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;
}

相关文章

ConcurrentSkipListMap类方法