package Ġcom . air bnb . mv rx Ċ Ċ internal Ġval Ġprimitive Wrapper Map Ġ= Ġmap Of ( ĊĠĠĠ ĠBoolean :: class . java Primitive Type Ġto ĠBoolean :: class . java , ĊĠĠĠ ĠByte :: class . java Primitive Type Ġto ĠByte :: class . java ObjectType , ĊĠĠĠ ĠChar :: class . java Primitive Type Ġto ĠChar :: class . java ObjectType , ĊĠĠĠ ĠDouble :: class . java Primitive Type Ġto ĠDouble :: class . java ObjectType , ĊĠĠĠ ĠFloat :: class . java Primitive Type Ġto ĠFloat :: class . java ObjectType , ĊĠĠĠ ĠInt :: class . java Primitive Type Ġto ĠInt :: class . java ObjectType , ĊĠĠĠ ĠLong :: class . java Primitive Type Ġto ĠLong :: class . java ObjectType , ĊĠĠĠ ĠShort :: class . java Primitive Type Ġto ĠShort :: class . java ObjectType Ċ ) Ċ Ċ internal Ġfun Ġis Primitive Wrapper Of ( target Class : ĠClass <* >, Ġprimitive : ĠClass < *> ): ĠBoolean Ġ{ ĊĠĠĠ Ġrequire ( primitive . is Primitive ) Ġ{ Ġ" First Ġargument Ġhas Ġto Ġbe Ġprimitive Ġtype " Ġ} ĊĠĠĠ Ġreturn Ġprimitive Wrapper Map [ primitive ] Ġ== Ġtarget Class Ċ } Ċ Ċ internal Ġfun Ġis Assignable To ( from : ĠClass <* >, Ġto : ĠClass < *> ): ĠBoolean Ġ{ ĊĠĠĠ Ġif Ġ( to . isAssignableFrom ( from )) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġif Ġ( from . is Primitive ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġis Primitive Wrapper Of ( to , Ġfrom ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn Ġif Ġ( to . is Primitive ) Ġ{ ĊĠĠĠĠĠĠĠ Ġis Primitive Wrapper Of ( from , Ġto ) ĊĠĠĠ Ġ} Ġelse Ġfalse Ċ } Ċ