/** * Inserts a new value at the specified position in the dataset or, if * there is an existing item with the specified key, updates the value * for that item and moves it to the specified position. After the change * is made, this methods sends a {@link DatasetChangeEvent} to all * registered listeners. * * @param position the position (in the range 0 to getItemCount()). * @param key the key ({@code null} not permitted). * @param value the value ({@code null} permitted). * * @since 1.0.6 */ public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); }
/** * Inserts a new value at the specified position in the dataset or, if * there is an existing item with the specified key, updates the value * for that item and moves it to the specified position. After the change * is made, this methods sends a {@link DatasetChangeEvent} to all * registered listeners. * * @param position the position (in the range 0 to getItemCount()). * @param key the key (<code>null</code> not permitted). * @param value the value (<code>null</code> permitted). * * @since 1.0.6 */ public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); }
if ((mlist[i].getSuccessfulInvocations() + mlist[i].getFailingInvocations()) > 0) { if (!Utility.stringIsNullOrEmpty(mlist[i].getDisplayName())) { dataset.insertValue(count, mlist[i].getDisplayName() + " " + mlist[i].getAverageResponseTime() + "ms", mlist[i].getAverageResponseTime()); } else { dataset.insertValue(count, mlist[i].getURL() + " " + mlist[i].getAverageResponseTime() + "ms", mlist[i].getAverageResponseTime());
if ((mlist[i].getSuccessfulInvocations() + mlist[i].getFailingInvocations()) > 0) { if (!Utility.stringIsNullOrEmpty(mlist[i].getDisplayName())) { dataset.insertValue(count, mlist[i].getDisplayName() + " Success: " + mlist[i].getSuccessfulInvocations() + " Fault: " + mlist[i].getFailingInvocations(), mlist[i].getSuccessfulInvocations() + mlist[i].getFailingInvocations()); } else { dataset.insertValue(count, mlist[i].getURL() + " Success: " + mlist[i].getSuccessfulInvocations() + " Fault: " + mlist[i].getFailingInvocations(), mlist[i].getSuccessfulInvocations() + mlist[i].getFailingInvocations());