+
+ private InventoryUtils() {
+ throw new UnsupportedOperationException("Utility class cannot be instantiated");
+ }
+
+ /**
+ * Converts date in string format yyyy-MM-dd to java.util.Date.
+ *
+ * @return java.util.Date conformant to string formatted date yyyy-MM-dd.
+ */
+ private static Date dateFromString(final String date) {
+ // We do not reuse the formatter because it's not thread-safe