public class LocalDate extends Object implements Comparable<LocalDate>
LocalDate is only defined to handle years in the Common Era - it cannot handle dates that are BC.
Constructor and Description |
---|
LocalDate(int year,
int month,
int day) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocalDate localDate) |
boolean |
equals(Object o) |
int |
getDay() |
LocalDate |
getEarlierDate(LocalDate that) |
LocalDate |
getLaterDate(LocalDate that) |
int |
getMonth() |
int |
getYear() |
int |
hashCode() |
LocalDate |
minusDays(int days) |
LocalDate |
minusMonths(int months) |
LocalDate |
minusYears(int years) |
LocalDate |
plusDays(int days) |
LocalDate |
plusMonths(int months) |
LocalDate |
plusYears(int years) |
String |
toString() |
public int getYear()
public int getMonth()
public int getDay()
public LocalDate plusDays(int days)
public LocalDate minusDays(int days)
public LocalDate plusMonths(int months)
public LocalDate minusMonths(int months)
public LocalDate plusYears(int years)
public LocalDate minusYears(int years)
public int compareTo(LocalDate localDate)
compareTo
in interface Comparable<LocalDate>
Copyright © 2002-2020 Atlassian. All Rights Reserved.