本文整理匯總了Java中com.google.common.collect.Table.values方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.values方法的具體用法?Java Table.values怎麽用?Java Table.values使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.common.collect.Table
的用法示例。
在下文中一共展示了Table.values方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: combineStrandJunctionsMaps
import com.google.common.collect.Table; //導入方法依賴的package包/類
/**
* Combine junctions from both strands. Used for Sashimi plot.
* Note: Flanking depth arrays are not combined.
*/
private List<SpliceJunctionFeature> combineStrandJunctionsMaps() {
// Start with all + junctions
Table<Integer, Integer, SpliceJunctionFeature> combinedStartEndJunctionsMap = HashBasedTable.create(posStartEndJunctionsMap);
// Merge in - junctions
for (Table.Cell<Integer, Integer, SpliceJunctionFeature> negJunctionCell : negStartEndJunctionsMap.cellSet()) {
int junctionStart = negJunctionCell.getRowKey();
int junctionEnd = negJunctionCell.getColumnKey();
SpliceJunctionFeature negFeat = negJunctionCell.getValue();
SpliceJunctionFeature junction = combinedStartEndJunctionsMap.get(junctionStart, junctionEnd);
if (junction == null) {
// No existing (+) junction here, just add the (-) one\
combinedStartEndJunctionsMap.put(junctionStart, junctionEnd, negFeat);
} else {
int newJunctionDepth = junction.getJunctionDepth() + negFeat.getJunctionDepth();
junction.setJunctionDepth(newJunctionDepth);
}
}
return new ArrayList<SpliceJunctionFeature>(combinedStartEndJunctionsMap.values());
}
示例2: getEntries
import com.google.common.collect.Table; //導入方法依賴的package包/類
@Override
public Collection<SQLInjectionAnalyzerEntry> getEntries() throws IOException {
Table<String, SQLInjectionAnalyzerEntry, SQLInjectionAnalyzerEntry> result;
if (cfg.isAnalyzerUseDiskStorage()) {
storeEntriesToDisk();
File location = new File(cfg.getAnalyzerStoragePath(), "SQLIAnalyzerDiskStorage.xml");
FileInputStream is = new FileInputStream(location);
result = (Table<String, SQLInjectionAnalyzerEntry, SQLInjectionAnalyzerEntry>) getXStream().fromXML(is);
is.close();
} else {
result = entries;
}
return result.values();
}