/** * 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 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 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 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); }
/** * 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); }
/** * 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. */ public static <E extends Enum<E>> EnumFormatter<E> create(Class<E> enumType, E defaultValue) { return new EnumFormatter<>(defaultValue); }