com.atlassian.jira.datetime
Class LocalDate
java.lang.Object
com.atlassian.jira.datetime.LocalDate
- All Implemented Interfaces:
- Comparable<LocalDate>
public class LocalDate
- extends Object
- implements Comparable<LocalDate>
Represents a "Local Date" or "Calendar Date" - that is a date (no time) without any associated timezone.
LocalDate is only defined to handle years in the Common Era - it cannot handle dates that are BC.
- Since:
- v4.4
Constructor Summary |
LocalDate(int year,
int month,
int day)
|
LocalDate
public LocalDate(int year,
int month,
int day)
getYear
public int getYear()
getMonth
public int getMonth()
getDay
public int getDay()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(LocalDate localDate)
- Specified by:
compareTo
in interface Comparable<LocalDate>
Copyright © 2002-2012 Atlassian. All Rights Reserved.