@ThreadSafe public final class JqlLocalDateSupportImpl extends Object implements JqlLocalDateSupport
JqlLocalDateSupport| Modifier and Type | Field and Description |
|---|---|
static String |
PATTERN_WITH_HYPHEN |
static String |
PATTERN_WITH_SLASH |
| Constructor and Description |
|---|
JqlLocalDateSupportImpl(com.atlassian.core.util.Clock clock,
TimeZoneManager timeZoneManager) |
JqlLocalDateSupportImpl(TimeZoneManager timeZoneManager) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
LocalDate |
getLocalDateFromQueryLiteral(QueryLiteral rawValue)
Try to parse the passed date in query literal.
|
List<LocalDate> |
getLocalDatesFromQueryLiterals(List<QueryLiteral> rawValues)
Try to parse the passed dates in query literals.
|
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.
|
public static final String PATTERN_WITH_SLASH
public static final String PATTERN_WITH_HYPHEN
public JqlLocalDateSupportImpl(com.atlassian.core.util.Clock clock,
TimeZoneManager timeZoneManager)
public JqlLocalDateSupportImpl(TimeZoneManager timeZoneManager)
public LocalDate convertToLocalDate(String dateString)
JqlLocalDateSupportconvertToLocalDate in interface JqlLocalDateSupportdateString - the string to parse. Cannot be empty or null.public LocalDate convertToLocalDate(Long dateLong)
JqlLocalDateSupportconvertToLocalDate in interface JqlLocalDateSupportdateLong - the string to parse. Cannot be empty or null.public boolean validate(String dateString)
JqlLocalDateSupportvalidate in interface JqlLocalDateSupportdateString - the string to check cannot be null.public String getLocalDateString(LocalDate localDate)
JqlLocalDateSupportgetLocalDateString in interface JqlLocalDateSupportlocalDate - the date to convert. Cannot be null.public Date convertToDate(LocalDate date)
JqlLocalDateSupportconvertToDate in interface JqlLocalDateSupportdate - the date to convert. Cannot be null.public LocalDate getLocalDateFromQueryLiteral(QueryLiteral rawValue)
JqlLocalDateSupportgetLocalDateFromQueryLiteral in interface JqlLocalDateSupportrawValue - the query literal representing the datepublic List<LocalDate> getLocalDatesFromQueryLiterals(List<QueryLiteral> rawValues)
JqlLocalDateSupportgetLocalDatesFromQueryLiterals in interface JqlLocalDateSupportrawValues - the query literals representing the datesCopyright © 2002-2019 Atlassian. All Rights Reserved.