|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JqlDateSupport
Interface that helps with date parsing and validation in JQL.
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. |
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. |
Method Detail |
---|
Date convertToDate(String dateString)
dateString
- the string to parse. Cannot be empty or null.
IllegalArgumentException
- if the passed dateString is blank or null.Date convertToDate(Long dateLong)
dateLong
- the string to parse. Cannot be empty or null.
IllegalArgumentException
- if the passed dateString is blank or null.String getIndexedValue(Date date)
date
- the date
boolean validate(String dateString)
dateString
- the string to check cannot be null.
IllegalArgumentException
- if the passed dateString is blank or nullString getDateString(Date date)
date
- the date to convert. Cannot be null.
IllegalArgumentException
- if the passed date is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |