EPLHelpers: add str()

This commit is contained in:
2018-07-13 17:19:48 -07:00
parent 73d380fb76
commit f170c4e434

View File

@ -8,10 +8,14 @@ public class EPLHelpers {
final static Logger log = LoggerFactory.getLogger(EPLHelpers.class); final static Logger log = LoggerFactory.getLogger(EPLHelpers.class);
/** Return the hour of the day for the given date. */
public static int getHour(DateTime date) { public static int getHour(DateTime date) {
return date.getHourOfDay(); return date.getHourOfDay();
} }
/** A simple toString() wrapper for use in epl. */
public static String str(Object o) { return o.toString(); }
/** /**
* Compare two times and return true if the first is earlier than * Compare two times and return true if the first is earlier than
* the second. * the second.