@Test public void testString() { assertTrue(typeMapper.getToNativeConverter(String.class) instanceof StringTypeConverter); assertTrue(typeMapper.getFromNativeConverter(String.class) instanceof StringTypeConverter); }
@SuppressWarnings("unchecked") @Override public FromNativeConverter getFromNativeConverter(Class javaType) { if (ObjCObject.class.isAssignableFrom(javaType)) { return new ObjCObjectTypeConverter((Class<ObjCObject>)javaType); } return super.getFromNativeConverter(javaType); }
RococoaTypeMapper extends DefaultTypeMapper { @SuppressWarnings("unchecked") @Override public FromNativeConverter getFromNativeConverter(Class javaType) { if (ObjCObject.class.isAssignableFrom(javaType)) { return new ObjCObjectTypeConverter((Class<ObjCObject>)javaType); } return super.getFromNativeConverter(javaType); } }
RococoaTypeMapper extends DefaultTypeMapper { @SuppressWarnings("unchecked") @Override public FromNativeConverter getFromNativeConverter(Class javaType) { if (ObjCObject.class.isAssignableFrom(javaType)) { return new ObjCObjectTypeConverter((Class<ObjCObject>)javaType); } return super.getFromNativeConverter(javaType); } RococoaTypeMapper(); }
RococoaTypeMapper extends DefaultTypeMapper { @SuppressWarnings("unchecked") @Override public FromNativeConverter getFromNativeConverter(Class javaType) { if (ObjCObject.class.isAssignableFrom(javaType)) { return new ObjCObjectTypeConverter((Class<ObjCObject>)javaType); } return super.getFromNativeConverter(javaType); } RococoaTypeMapper(); @SuppressWarnings("unchecked") @Override FromNativeConverter getFromNativeConverter(Class javaType); }
RococoaTypeMapper extends DefaultTypeMapper { @SuppressWarnings("unchecked") @Override public FromNativeConverter getFromNativeConverter(Class javaType) { if (ObjCObject.class.isAssignableFrom(javaType)) { return new ObjCObjectTypeConverter((Class<ObjCObject>)javaType); } return super.getFromNativeConverter(javaType); } RococoaTypeMapper(); @SuppressWarnings("unchecked") @Override FromNativeConverter getFromNativeConverter(Class javaType);  }