/** * Construct a new formatter with the specified default value. * * @param enumType The enum type. * @param defaultValue The default value, which will never be output. */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<>(defaultValue); }
public static Converter<List<String>, String> create() { return new SimpleListConverter<>(new NoopConverter<>()); }
@Override public String toString() { String m = msg; if (m != null) { return m; } return msg = rf.convert(this); } }
public MapFormatter(String listSeparator, Converter<String, ? super Entry<String, String>> entryFormatter, String emptyOutput) { entrySetFormatter = new CollectionFormatter<>(listSeparator, entryFormatter, emptyOutput); }
public static <E extends Enum<E>> EnumConverter<E> create(Class<E> enumType) { return new EnumConverter<>(enumType, null); }
public static Converter<List<String>, String> create() { return new SimpleListConverter<>(new NoopConverter<>()); }
/** * Construct a new formatter with no default value, i.e. any non-null value * of the enum will print that value. * * @param enumType The enum type. */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType) { return new EnumFormatter<>(null); }
public MapFormatter(String listSeparator, Converter<String, ? super Entry<String,String>> entryFormatter, String emptyOutput) { entrySetFormatter = new CollectionFormatter<Entry<String,String>>(listSeparator, entryFormatter, emptyOutput); }
@Override public String toString() { String m = msg; if (m != null) { return m; } return msg = rf.convert(this); } }
public static Converter<List<String>,String> create() { return new SimpleListConverter<String>(new NoopConverter<String>()); }
/** * Construct a new formatter with no default value, i.e. any non-null value * of the enum will print that value. * * @param enumType * The enum type. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType) { return new EnumFormatter<E>(null); }
public static Converter<List<String>,String> create() { return new SimpleListConverter<String>(new NoopConverter<String>()); }
/** * Construct a new formatter with no default value, i.e. any non-null value * of the enum will print that value. * * @param enumType The enum type. */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType) { return new EnumFormatter<>(null); }
public static Converter<List<String>,String> create() { return new SimpleListConverter<String>(new NoopConverter<String>()); }
/** * Construct a new formatter with the specified default value. * * @param enumType * The enum type. * @param defaultValue * The default value, which will never be output. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<E>(defaultValue); }
/** * Construct a new formatter with no default value, i.e. any non-null value * of the enum will print that value. * * @param enumType * The enum type. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType) { return new EnumFormatter<E>(null); }
/** * Construct a new formatter with the specified default value. * * @param enumType * The enum type. * @param defaultValue * The default value, which will never be output. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<E>(defaultValue); }
/** * Construct a new formatter with the specified default value. * * @param enumType * The enum type. * @param defaultValue * The default value, which will never be output. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<E>(defaultValue); }
/** * Construct a new formatter with the specified default value. * * @param enumType The enum type. * @param defaultValue The default value, which will never be output. */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<>(defaultValue); }
/** * Construct a new formatter with no default value, i.e. any non-null value * of the enum will print that value. * * @param enumType * The enum type. * @return */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType) { return new EnumFormatter<E>(null); }