return find((K) key);
}
else if (mode == SearchMode.CLOSEST_ABOVE || mode == SearchMode.CLOSEST_BELOW || mode == SearchMode.CLOSEST_MATCH)
{
// assume type of search key is K
FindClosestMatchCallback<K, P> fcmc = new FindClosestMatchCallback<K, P>((K) key, mode, (Comparator<? super K>) new ComparableComparator());
forEachKey(fcmc);
return fcmc.m_posOfClosestMatch;
}
else
{