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

Method toComparable

vm/JavaAPI/src/java/util/TreeMap.java:5391–5397  ·  view source on GitHub ↗
(T obj)

Source from the content-addressed store, hash-verified

5389 }
5390
5391 @SuppressWarnings("unchecked")
5392 private static <T> java.lang.Comparable<T> toComparable(T obj) {
5393 if (obj == null) {
5394 throw new NullPointerException();
5395 }
5396 return (java.lang.Comparable<T>) obj;
5397 }
5398
5399 int keyCompare(K left, K right) {
5400 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