当前位置: 首页>>代码示例>>Java>>正文


Java Bags类代码示例

本文整理汇总了Java中org.eclipse.collections.impl.factory.Bags的典型用法代码示例。如果您正苦于以下问题:Java Bags类的具体用法?Java Bags怎么用?Java Bags使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Bags类属于org.eclipse.collections.impl.factory包,在下文中一共展示了Bags类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: LocationExaminationResults

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
public LocationExaminationResults(Parameters param) {
	if (param.computeRawMismatches) {
		rawMismatchesQ2 = Bags.mutable.empty();
		rawDeletionsQ2 = Bags.mutable.empty();
		rawInsertionsQ2 = Bags.mutable.empty();
	} else {
		rawMismatchesQ2 = EMPTY_BAG;
		rawDeletionsQ2 = EMPTY_BAG;
		rawInsertionsQ2 = EMPTY_BAG;
	}

	if (param.computeIntraStrandMismatches) {
		intraStrandSubstitutions = new ArrayList<>();
		intraStrandDeletions = new ArrayList<>();
		intraStrandInsertions = new ArrayList<>();
	} else {
		intraStrandSubstitutions = Collections.emptyList();
		intraStrandDeletions = Collections.emptyList();
		intraStrandInsertions = Collections.emptyList();
	}
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:22,代码来源:LocationExaminationResults.java

示例2: getMutableRawMismatchesQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull MutableBag<ComparablePair<String, String>> getMutableRawMismatchesQ2() {
	if (rawMismatchesQ2 == null) {
		rawMismatchesQ2 = Bags.mutable.empty();
	}
	return rawMismatchesQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java

示例3: getRawMismatchesQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull Bag<ComparablePair<String, String>> getRawMismatchesQ2() {
	if (rawMismatchesQ2 == null) {
		return Bags.immutable.empty();
	}
	return rawMismatchesQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java

示例4: getMutableRawDeletionsQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull MutableBag<ComparablePair<String, String>> getMutableRawDeletionsQ2() {
	if (rawDeletionsQ2 == null) {
		rawDeletionsQ2 = Bags.mutable.empty();
	}
	return rawDeletionsQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java

示例5: getRawDeletionsQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull Bag<ComparablePair<String, String>> getRawDeletionsQ2() {
	if (rawDeletionsQ2 == null) {
		return Bags.immutable.empty();
	}
	return rawDeletionsQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java

示例6: getMutableRawInsertionsQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull MutableBag<ComparablePair<String, String>> getMutableRawInsertionsQ2() {
	if (rawInsertionsQ2 == null) {
		rawInsertionsQ2 = Bags.mutable.empty();
	}
	return rawInsertionsQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java

示例7: getRawInsertionsQ2

import org.eclipse.collections.impl.factory.Bags; //导入依赖的package包/类
@Override
@SuppressWarnings("null")
public @NonNull Bag<ComparablePair<String, String>> getRawInsertionsQ2() {
	if (rawInsertionsQ2 == null) {
		return Bags.immutable.empty();
	}
	return rawInsertionsQ2;
}
 
开发者ID:cinquin,项目名称:mutinack,代码行数:9,代码来源:CandidateSequence.java


注:本文中的org.eclipse.collections.impl.factory.Bags类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。