|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.jql.util.JqlDateSupportImpl
@ThreadSafe public final class JqlDateSupportImpl
Default implementation for JqlDateSupport
| Constructor Summary | |
|---|---|
JqlDateSupportImpl()
|
|
JqlDateSupportImpl(com.atlassian.core.util.Clock clock)
|
|
| Method Summary | |
|---|---|
Date |
convertToDate(Long dateLong)
Try to parse the passed date long. |
Date |
convertToDate(String dateString)
Try to parse the passed date string using the formats that JQL understands. |
String |
getDateString(Date date)
Return a string representation of the passed date. |
static String |
getDurationString(long duration)
|
String |
getIndexedValue(Date date)
Converts a date into the index-friendly format. |
boolean |
validate(String dateString)
Check to see if the passed string is a valid date according to JQL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JqlDateSupportImpl(com.atlassian.core.util.Clock clock)
public JqlDateSupportImpl()
| Method Detail |
|---|
public Date convertToDate(String dateString)
JqlDateSupport
convertToDate in interface JqlDateSupportdateString - the string to parse. Cannot be empty or null.
public Date convertToDate(Long dateLong)
JqlDateSupport
convertToDate in interface JqlDateSupportdateLong - the string to parse. Cannot be empty or null.
public String getIndexedValue(Date date)
JqlDateSupport
getIndexedValue in interface JqlDateSupportdate - the date
public boolean validate(String dateString)
JqlDateSupport
validate in interface JqlDateSupportdateString - the string to check cannot be null.
public String getDateString(Date date)
JqlDateSupport
getDateString in interface JqlDateSupportdate - the date to convert. Cannot be null.
public static String getDurationString(long duration)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||