com.atlassian.jira.datetime
Class LocalDate

java.lang.Object
  extended by 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)
           
 
Method Summary
 int compareTo(LocalDate localDate)
           
 boolean equals(Object o)
           
 int getDay()
           
 int getMonth()
           
 int getYear()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalDate

public LocalDate(int year,
                 int month,
                 int day)
Method Detail

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.