web/play-java-forms/src/main/java/play/data/format/Formatters.java
public <T> String print(T t) {
    if (t == null) {
      return "";
    }
    if (conversion.canConvert(t.getClass(), String.class)) {
      return conversion.convert(t, String.class);
    } else {
      return t.toString();
    }
  }
public <T> String print(T t) {
    if (t == null) {
      return "";
    }
    if (conversion.canConvert(t.getClass(), String.class)) {
      return conversion.convert(t, String.class);
    } else {
      return t.toString();
    }
  }
Computes the display string for any value.

@param t the value to print
@param <T> the type to print
@return the formatted string