implicit final class LocalDateType extends AnyVal
Provides extension methods to java.time.LocalDate
- Alphabetic
- By Inheritance
- LocalDateType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LocalDateType(date: LocalDate)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(amount: TemporalAmount): LocalDate
Gets date with specified amount added.
Gets date with specified amount added.
- amount
temporal amount
-
def
+(days: Long): LocalDate
Gets date with specified number of days added.
Gets date with specified number of days added.
- days
number of days
-
def
-(amount: TemporalAmount): LocalDate
Gets date with specified amount subtracted.
Gets date with specified amount subtracted.
- amount
temporal amount
-
def
-(days: Long): LocalDate
Gets date with specified number of days subtracted.
Gets date with specified number of days subtracted.
- days
number of days
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atEndOfMonth: LocalDate
Gets date adjusted to last day of month.
-
def
atEndOfWeek(lastDay: DayOfWeek): LocalDate
Gets date adjusted to last day of week.
Gets date adjusted to last day of week.
- lastDay
last day of week
-
def
atEndOfWeek: LocalDate
Gets date adjusted to last day of week.
Gets date adjusted to last day of week.
- Note
Saturday is last day of week.
-
def
atEndOfYear: LocalDate
Gets date adjusted to last day of year.
-
def
atStartOfMonth: LocalDate
Gets date adjusted to first day of month.
-
def
atStartOfWeek(firstDay: DayOfWeek): LocalDate
Gets date adjusted to specified first day of week.
Gets date adjusted to specified first day of week.
- firstDay
first day of week
-
def
atStartOfWeek: LocalDate
Gets date adjusted to first day of week.
Gets date adjusted to first day of week.
- Note
Sunday is first day of week.
-
def
atStartOfYear: LocalDate
Gets date adjusted to first day of year.
- val date: LocalDate
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterateTo(end: LocalDate, step: Period = Period.ofDays(1)): Iterator[LocalDate]
Creates iterator to end date (inclusive).
Creates iterator to end date (inclusive).
- end
end date
- step
period by which to step
- Exceptions thrown
IllegalArgumentExceptionifstepis zero.
-
def
iterateUntil(end: LocalDate, step: Period = Period.ofDays(1)): Iterator[LocalDate]
Creates iterator to end date (exclusive).
Creates iterator to end date (exclusive).
- end
end date
- step
period by which to step
-
def
max(other: LocalDate): LocalDate
Compares to other date and returns the greater value.
Compares to other date and returns the greater value.
- other
other date
-
def
min(other: LocalDate): LocalDate
Compares to other date and returns the lesser value.
Compares to other date and returns the lesser value.
- other
other date
-
def
toString(): String
- Definition Classes
- Any
-
def
toYearMonth: YearMonth
Gets
YearMonthpart of date.