Compares two keys using the correct comparison method for this RBTreeMap.
(Object k1, Object k2)
| 1066 | * Compares two keys using the correct comparison method for this RBTreeMap. |
| 1067 | */ |
| 1068 | @SuppressWarnings({"unchecked", "rawtypes"}) |
| 1069 | private int compare(Object k1, Object k2) { |
| 1070 | return (comparator==null ? ((Comparable)k1).compareTo(k2) |
| 1071 | : comparator.compare((K)k1, (K)k2)); |
| 1072 | } |
| 1073 | |
| 1074 | /** |
| 1075 | * Test two values for equality. Differs from o1.equals(o2) only in |
no test coverage detected