本文整理汇总了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();
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}