public method O2GSummaryTable.findRow
Brief
Finds a row in the O2GSummaryTable by an OfferID.
| Declaration | ||||
|
||||
| Parameters | |
id |
The unique identifier of a traded instrument. |
Details
If the row is not found, the method returns null.
Note: The returned row contains the current values of fields. The values are not automatically updated. To monitor changes, use IO2GTableListener.onChanged.
The row interface is thread-safe. One can use the returned row in different threads without synchronization.
Example
Find summary by OfferID [hide]
O2GSummarTable summarysTable = (O2GSummaryTable)tableManager.getTable(O2GTableType.SUMMARY);
O2GSummaryTableRow summary = summaryTable.findRow(mOfferID);
System.out.println("OfferID: " + summary.getOfferID() +
" NetPL = " + summary.getNetPL() +
" Amount = " + summary.getAmount());
Declared in O2GSummaryTable