|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.jql.util.JqlLocalDateSupportImpl
@ThreadSafe public final class JqlLocalDateSupportImpl
Default implementation for JqlLocalDateSupport
| Field Summary | |
|---|---|
static String |
PATTERN_WITH_HYPHEN
|
static String |
PATTERN_WITH_SLASH
|
| Constructor Summary | |
|---|---|
JqlLocalDateSupportImpl(com.atlassian.core.util.Clock clock,
TimeZoneManager timeZoneManager)
|
|
JqlLocalDateSupportImpl(TimeZoneManager timeZoneManager)
|
|
| 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 localDate)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PATTERN_WITH_SLASH
public static final String PATTERN_WITH_HYPHEN
| Constructor Detail |
|---|
public JqlLocalDateSupportImpl(com.atlassian.core.util.Clock clock,
TimeZoneManager timeZoneManager)
public JqlLocalDateSupportImpl(TimeZoneManager timeZoneManager)
| Method Detail |
|---|
public LocalDate convertToLocalDate(String dateString)
JqlLocalDateSupport
convertToLocalDate in interface JqlLocalDateSupportdateString - the string to parse. Cannot be empty or null.
public LocalDate convertToLocalDate(Long dateLong)
JqlLocalDateSupport
convertToLocalDate in interface JqlLocalDateSupportdateLong - the string to parse. Cannot be empty or null.
public String getIndexedValue(LocalDate date)
JqlLocalDateSupport
getIndexedValue in interface JqlLocalDateSupportdate - the date
public boolean validate(String dateString)
JqlLocalDateSupport
validate in interface JqlLocalDateSupportdateString - the string to check cannot be null.
public String getLocalDateString(LocalDate localDate)
JqlLocalDateSupport
getLocalDateString in interface JqlLocalDateSupportlocalDate - the date to convert. Cannot be null.
public Date convertToDate(LocalDate date)
JqlLocalDateSupport
convertToDate in interface JqlLocalDateSupportdate - the date to convert. Cannot be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||