/** * Returns the column index for a given key. * * @param key the column key * @return the column index, or <code>-1</code> if the key is unrecognized */ public int getColumnIndex(Comparable key) { return columnKeys.indexOf(key); }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { return source.indexOf(object); }
/** * Returns the column index for the column of the data value to retrieve. */ public int getColumnIndex() { if (columnIndex == -1) columnIndex = columnKeys.indexOf(columnKey); return columnIndex; }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { return source.indexOf(object); }
/** * Returns the row index for a given key. * * @param key the row key * @return the row index, or <code>-1</code> if the key is unrecognized */ @Override public int getRowIndex(Comparable key) { return rowKeys.indexOf(key); }
/** * Returns the column index for the column of the data value to retrieve. */ public int getColumnIndex() { if (columnIndex == -1) columnIndex = columnKeys.indexOf(columnKey); return columnIndex; }
/** * Returns the column index for a given key. * * @param key the column key * @return the column index, or <code>-1</code> if the key is unrecognized */ public int getColumnIndex(Comparable key) { return columnKeys.indexOf(key); }
/** * Returns the row index for a given key. * * @param key the row key * @return the row index, or <code>-1</code> if the key is unrecognized */ public int getRowIndex(Comparable key) { return rowKeys.indexOf(key); }
/** * Returns the column index for a given key. * * @param key the column key * @return the column index, or <code>-1</code> if the key is unrecognized */ @Override public int getColumnIndex(Comparable key) { return columnKeys.indexOf(key); }
/** * Returns the column index for the column of the data value to retrieve. */ public int getColumnIndex() { if (columnIndex == -1) columnIndex = columnKeys.indexOf(columnKey); return columnIndex; }
/** {@inheritDoc} */ public Object indexOf(Object collection, Object obj) { final int index = ((EventList) collection).indexOf(obj); return (index < 0) ? null : new Integer(index); }
/** * Select the specified element, if it exists. * * @return the index of the newly selected element, or -1 if no * element was found. */ public int select(E value) { int index = source.indexOf(value); if(index != -1) select(index); return index; }
/** * Select the specified element, if it exists. * * @return the index of the newly selected element, or -1 if no * element was found. */ public int select(E value) { int index = source.indexOf(value); if(index != -1) select(index); return index; }
/** * {@inheritDoc} */ @Override public int indexOf(Object o) { return supplyInsideLock(() -> delegate.indexOf(o)); }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { // Fast fail if the object isn't within the thresholds // Note: this technically breaks the contract for indexOf. // evaluator.evaluate(object) may throw a ClassCastException if(!withinRange((E)object)) return -1; return source.indexOf(object); }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { beforeReadOperation(); try { return delegate.indexOf(object); } finally { afterReadOperation(); } }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { beforeReadOperation(); try { return delegate.indexOf(object); } finally { afterReadOperation(); } }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { getReadWriteLock().readLock().lock(); try { return source.indexOf(object); } finally { getReadWriteLock().readLock().unlock(); } }
/** {@inheritDoc} */ @Override public int indexOf(Object object) { getReadWriteLock().readLock().lock(); try { return source.indexOf(object); } finally { getReadWriteLock().readLock().unlock(); } }
/** * {@inheritDoc} */ @Override public int indexOf(Object o) { source.getReadWriteLock().readLock().lock(); try { return source.indexOf(o); } finally { source.getReadWriteLock().readLock().unlock(); } }