Code example for SimpleTypeConverter

Methods: convertIfNecessary

0
			this.type = type;
		} 
 
		@Override 
		public Object apply(final Object input) {
			return DEFAULT.convertIfNecessary(input, this.type);
		} 
	} 
 
	private static class PeriodConverter implements Function<Object, Period> {
		@Override 
		public Period apply(final Object input) {
			return JodaUtils.timeStringToPeriodOrNull((String) input);
		} 
	} 
 
	private static class LocalDateTimeConverter implements Function<Object, LocalDateTime> {
		@Override 
		public LocalDateTime apply(final Object input) {
			return JodaUtils.timestampStringToLocalDateTimeOrNull((String) input);