本文整理了Java中java.util.concurrent.ConcurrentSkipListSet.addAll()
方法的一些代码示例,展示了ConcurrentSkipListSet.addAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentSkipListSet.addAll()
方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentSkipListSet
类名称:ConcurrentSkipListSet
方法名:addAll
暂无
代码示例来源:origin: robovm/robovm
/**
* Constructs a new set containing the elements in the specified
* collection, that orders its elements according to their
* {@linkplain Comparable natural ordering}.
*
* @param c The elements that will comprise the new set
* @throws ClassCastException if the elements in {@code c} are
* not {@link Comparable}, or are not mutually comparable
* @throws NullPointerException if the specified collection or any
* of its elements are null
*/
public ConcurrentSkipListSet(Collection<? extends E> c) {
m = new ConcurrentSkipListMap<E,Object>();
addAll(c);
}
代码示例来源:origin: robovm/robovm
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: alibaba/jstorm
public void updateWorkerToResource(Set<ResourceWorkerSlot> workers) {
workerToResource.removeAll(workers);
workerToResource.addAll(workers);
}
代码示例来源:origin: apache/ignite
/** Merge current */
CentroidStat merge(CentroidStat other) {
this.counts = MapUtil.mergeMaps(counts, other.counts, (i1, i2) -> i1 + i2, ConcurrentHashMap::new);
this.centroidStat = MapUtil.mergeMaps(centroidStat, other.centroidStat, (m1, m2) ->
MapUtil.mergeMaps(m1, m2, (i1, i2) -> i1 + i2, ConcurrentHashMap::new), ConcurrentHashMap::new);
this.clsLblsSet.addAll(other.clsLblsSet);
return this;
}
代码示例来源:origin: alibaba/jstorm
throw new RuntimeException(errMsg);
workerToResource.addAll(assignment.getWorkers());
代码示例来源:origin: apache/incubator-druid
.addAll(pullResult.getMsgFoundList());
break;
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager
@Override
public void addAllSchedulableEntities(Collection<S> sc) {
schedulableEntities.addAll(sc);
}
代码示例来源:origin: de.vandermeer/skb-interfaces
@Override
default ConcurrentSkipListSet<T> get(Collection<T> collection, Comparator<T> comparator) {
ConcurrentSkipListSet<T> ret;
ret = new ConcurrentSkipListSet<T>(comparator);
ret.addAll(collection);
return ret;
}
代码示例来源:origin: ibinti/bugvm
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: MobiVM/robovm
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.n3twork.druid/druid-server
public DruidDataSource addSegments(Map<String, DataSegment> partitionMap)
{
synchronized (lock) {
partitionNames.putAll(partitionMap);
segmentsHolder.addAll(partitionMap.values());
}
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: org.apidesign.bck2brwsr/emul
/**
* Constructs a new set containing the same elements and using the
* same ordering as the specified sorted set.
*
* @param s sorted set whose elements will comprise the new set
* @throws NullPointerException if the specified sorted set or any
* of its elements are null
*/
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.jtransc/jtransc-rt
public ConcurrentSkipListSet(SortedSet<E> s) {
m = new ConcurrentSkipListMap<E,Object>(s.comparator());
addAll(s);
}
代码示例来源:origin: com.alibaba.jstorm/jstorm-core
public void updateWorkerToResource(Set<ResourceWorkerSlot> workers) {
workerToResource.removeAll(workers);
workerToResource.addAll(workers);
}
代码示例来源:origin: org.ihtsdo/tk-query
@Override
public void processUnfetchedConceptData(int conceptNid, ConceptFetcherBI conceptFetcher) throws Exception {
if (newMembers.isMember(conceptNid)) {
Set<Integer> parents = Ts.get().getAncestors(conceptNid, vc);
resultNids.addAll(parents);
}
}
内容来源于网络,如有侵权,请联系作者删除!