Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
@SuppressWarnings("unchecked")
public static <T> T setEmptyIfNullObject(final Object value) {
return (T) (value == null ? "" : value.getClass().cast(value));
}
}