MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toComparable

Method toComparable

Ports/CLDC11/src/java/util/TreeMap.java:5458–5464  ·  view source on GitHub ↗
(T obj)

Source from the content-addressed store, hash-verified

5456 }
5457
5458 @SuppressWarnings("unchecked")
5459 private static <T> java.lang.Comparable<T> toComparable(T obj) {
5460 if (obj == null) {
5461 throw new NullPointerException();
5462 }
5463 return (java.lang.Comparable<T>) obj;
5464 }
5465
5466 int keyCompare(K left, K right) {
5467 return (null != comparator()) ? comparator().compare(left, right)

Callers 15

containsKeyMethod · 0.95
findMethod · 0.95
findCeilingEntryMethod · 0.95
findFloorEntryMethod · 0.95
findLowerEntryMethod · 0.95
findHigherEntryMethod · 0.95
findNodeMethod · 0.95
getMethod · 0.95
putImplMethod · 0.95
removeMethod · 0.95
keyCompareMethod · 0.95
subMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected