|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JqlLocalDateSupport
Interface that helps with LocalDate
parsing and validation in JQL.
JqlDateSupport
Method Summary | |
---|---|
Date |
convertToDate(LocalDate date)
Converts a LocalDate to a Date using the systems time zone. |
LocalDate |
convertToLocalDate(Long dateLong)
Try to parse the passed date long. |
LocalDate |
convertToLocalDate(String dateString)
Try to parse the passed date string using the formats that JQL understands. |
String |
getIndexedValue(LocalDate date)
Converts a date into the index-friendly format. |
String |
getLocalDateString(LocalDate date)
Return a string representation of the passed date. |
boolean |
validate(String dateString)
Check to see if the passed string is a valid date according to JQL. |
Method Detail |
---|
LocalDate convertToLocalDate(String dateString)
dateString
- the string to parse. Cannot be empty or null.
IllegalArgumentException
- if the passed dateString is blank or null.LocalDate convertToLocalDate(Long dateLong)
dateLong
- the string to parse. Cannot be empty or null.
IllegalArgumentException
- if the passed dateString is blank or null.String getIndexedValue(LocalDate 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 getLocalDateString(LocalDate date)
date
- the date to convert. Cannot be null.
IllegalArgumentException
- if the passed date is null.Date convertToDate(LocalDate 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 |