MCPcopy Create free account
hub / github.com/beanshell/beanshell / unboxType

Method unboxType

src/bsh/Primitive.java:957–964  ·  view source on GitHub ↗

Get the corresponding primitive TYPE class for the java.lang wrapper class type. e.g. Integer.class -> Integer.TYPE

( Class wrapperType )

Source from the content-addressed store, hash-verified

955 e.g. Integer.class -> Integer.TYPE
956 */
957 public static Class unboxType( Class wrapperType )
958 {
959 Class c = wrapperMap.get( wrapperType );
960 if ( c != null )
961 return c;
962 throw new InterpreterError(
963 "Not a primitive wrapper type: "+wrapperType );
964 }
965
966 /**
967 Cast this bsh.Primitive value to a new bsh.Primitive value

Callers 2

getTypeMethod · 0.95
castObjectMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected