EPLHelpers: add str()
This commit is contained in:
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user