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

Method byteCast

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

Source from the content-addressed store, hash-verified

1140}
1141
1142static public byte byteCast(Object x){
1143 if(x instanceof Byte)
1144 return ((Byte) x).byteValue();
1145 long n = longCast(x);
1146 if(n < Byte.MIN_VALUE || n > Byte.MAX_VALUE)
1147 throw new IllegalArgumentException("Value out of range for byte: " + x);
1148
1149 return (byte) n;
1150}
1151
1152static public byte byteCast(byte x){
1153 return x;

Callers 15

coerceAdapterReturnMethod · 0.95
invokeBMethod · 0.95
invokeLBMethod · 0.95
invokeDBMethod · 0.95
invokeOBMethod · 0.95
invokeLLBMethod · 0.95
invokeLOBMethod · 0.95
invokeOLBMethod · 0.95
invokeDDBMethod · 0.95
invokeLDBMethod · 0.95
invokeDLBMethod · 0.95
invokeOOBMethod · 0.95

Calls 2

longCastMethod · 0.95
byteValueMethod · 0.80

Tested by

no test coverage detected