當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.values方法代碼示例

本文整理匯總了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());
}
 
開發者ID:hyounesy,項目名稱:ALEA,代碼行數:30,代碼來源:SpliceJunctionHelper.java

示例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();

}
 
開發者ID:Hacker-Peers,項目名稱:SQLIDetectionDriver,代碼行數:16,代碼來源:SQLInjectionRepositoryImpl.java


注:本文中的com.google.common.collect.Table.values方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。