本文整理汇总了Java中org.pcollections.MapPSet类的典型用法代码示例。如果您正苦于以下问题:Java MapPSet类的具体用法?Java MapPSet怎么用?Java MapPSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MapPSet类属于org.pcollections包,在下文中一共展示了MapPSet类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAndSetSackTSNList
import org.pcollections.MapPSet; //导入依赖的package包/类
/**
*
* @return list of received messages for batch sacking
*/
private SackData getAndSetSackTSNList() {
List<Long> duplicates;
MapPSet<Long> tsnTmp;
synchronized (sackMutex) {
tsnTmp = receivedTSNS;
duplicates = duplicatesSinceLast;
duplicatesSinceLast = new ArrayList<>();
}
return new SackData(tsnTmp,duplicates);
}
示例2: SackData
import org.pcollections.MapPSet; //导入依赖的package包/类
public SackData(MapPSet<Long> tsns, List<Long> duplicates) {
this.tsns = tsns;
this.duplicates = duplicates;
}
示例3: PcollectionsSetBuilder
import org.pcollections.MapPSet; //导入依赖的package包/类
PcollectionsSetBuilder() {
super(MapPSet.from(HashTreePMap.empty()), set -> set::plus, PcollectionsSet::new);
}
示例4: PcollectionsSet
import org.pcollections.MapPSet; //导入依赖的package包/类
public PcollectionsSet(MapPSet<JmhValue> content) {
this.content = content;
}