MCPcopy Index your code
hub / github.com/clojure/clojure / intCast

Method intCast

src/jvm/clojure/lang/RT.java:1233–1242  ·  view source on GitHub ↗
(Object x)

Source from the content-addressed store, hash-verified

1231}
1232
1233static public int intCast(Object x){
1234 if(x instanceof Integer)
1235 return ((Integer)x).intValue();
1236 if(x instanceof Number)
1237 {
1238 long n = longCast(x);
1239 return intCast(n);
1240 }
1241 return ((Character) x).charValue();
1242}
1243
1244static public int intCast(char x){
1245 return x;

Callers 15

coerceAdapterReturnMethod · 0.95
invokeIMethod · 0.95
invokeLIMethod · 0.95
invokeDIMethod · 0.95
invokeOIMethod · 0.95
invokeLLIMethod · 0.95
invokeLOIMethod · 0.95
invokeOLIMethod · 0.95
invokeDDIMethod · 0.95
invokeLDIMethod · 0.95
invokeDLIMethod · 0.95
invokeOOIMethod · 0.95

Calls 2

longCastMethod · 0.95
intValueMethod · 0.45

Tested by

no test coverage detected