@Test public void convertsReturnedNilToNull() { Number nativeValue = new Long(0); assertNull(converter.fromNative(nativeValue, null)); }
public String fromNative(Object nativeValue, FromNativeContext context) { Number nativeValueAsNumber = (Number) nativeValue; if (nativeValueAsNumber == null) { return null; } ID id = ID.fromLong(nativeValueAsNumber.longValue()); if (id.isNull()) { return null; } return Foundation.toString(id); }
StringTypeConverter implements TypeConverter { public String fromNative(Object nativeValue, FromNativeContext context) { Number nativeValueAsNumber = (Number) nativeValue; if (nativeValueAsNumber == null) { return null; } ID id = ID.fromLong(nativeValueAsNumber.longValue()); if (id.isNull()) { return null; } return Foundation.toString(id); } }
StringTypeConverter implements TypeConverter { public String fromNative(Object nativeValue, FromNativeContext context) { Number nativeValueAsNumber = (Number) nativeValue; if (nativeValueAsNumber == null) { return null; } ID id = ID.fromLong(nativeValueAsNumber.longValue()); if (id.isNull()) { return null; } return Foundation.toString(id); }  }
StringTypeConverter implements TypeConverter { public String fromNative(Object nativeValue, FromNativeContext context) { Number nativeValueAsNumber = (Number) nativeValue; if (nativeValueAsNumber == null) { return null; } ID id = ID.fromLong(nativeValueAsNumber.longValue()); if (id.isNull()) { return null; } return Foundation.toString(id); }  Class<?> nativeType(); String fromNative(Object nativeValue, FromNativeContext context); Object toNative(Object value, ToNativeContext context); }
StringTypeConverter implements TypeConverter { public String fromNative(Object nativeValue, FromNativeContext context) { Number nativeValueAsNumber = (Number) nativeValue; if (nativeValueAsNumber == null) { return null; } ID id = ID.fromLong(nativeValueAsNumber.longValue()); if (id.isNull()) { return null; } return Foundation.toString(id); }  Class<?> nativeType(); String fromNative(Object nativeValue, FromNativeContext context); Object toNative(Object value, ToNativeContext context);  }