本文整理匯總了Java中it.unimi.dsi.fastutil.longs.LongRBTreeSet類的典型用法代碼示例。如果您正苦於以下問題:Java LongRBTreeSet類的具體用法?Java LongRBTreeSet怎麽用?Java LongRBTreeSet使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LongRBTreeSet類屬於it.unimi.dsi.fastutil.longs包,在下文中一共展示了LongRBTreeSet類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: exportTransitions130
import it.unimi.dsi.fastutil.longs.LongRBTreeSet; //導入依賴的package包/類
/**
* Export transitions into NUPN (since 1.3.0)
*
* @param ap
* @param vn
* @param bpnQueue
* @param tsQueue
* @throws XPathParseExceptionHuge
* @throws NavExceptionHuge
* @throws InterruptedException
* @throws XPathEvalExceptionHuge
*/
private void exportTransitions130(AutoPilotHuge ap, VTDNavHuge vn, BlockingQueue<String> bpnQueue)
throws XPathParseExceptionHuge, NavExceptionHuge, InterruptedException, XPathEvalExceptionHuge {
long nb = trId2bpnMap.size();
StringBuilder bpnsb = new StringBuilder();
bpnsb.append(TRANSITIONS).append(WS).append(HK).append(nb).append(WS).append(ZERO).append(DOTS).append(nb - 1L)
.append(NL);
bpnQueue.put(bpnsb.toString());
bpnsb.delete(0, bpnsb.length());
LongCollection allTr = new LongRBTreeSet(trId2bpnMap.values());
for (long trId : allTr) {
bpnsb.append(T).append(trId);
buildConnectedPlaces2Transition(bpnsb, trId, tr2InPlacesMap);
buildConnectedPlaces2Transition(bpnsb, trId, tr2OutPlacesMap);
bpnsb.append(NL);
bpnQueue.put(bpnsb.toString());
bpnsb.delete(0, bpnsb.length());
}
bpnsb.delete(0, bpnsb.length());
bpnsb = null;
}