Package | Description |
---|---|
net.objectlab.kit.datecalc.common |
This package provides functionalities that are used by both JDK and Joda implementation,
it is not released alone but included in the datecalc-jdk, datecalc-jdk8 or datecalc-joda JARs.
|
net.objectlab.kit.datecalc.jdk |
This package provides a pure JDK implementation of the DateCalculator for both Calendar and Date, it is
released as a standalone datecalc-jdk JAR.
|
net.objectlab.kit.datecalc.jdk8 |
This package implements the DateCalculator interfaces using JDK8
|
net.objectlab.kit.datecalc.joda |
This package implements the DateCalculator interfaces using Joda-time See Joda-time
|
Modifier and Type | Method and Description |
---|---|
static PeriodCountBasis |
PeriodCountBasis.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeriodCountBasis[] |
PeriodCountBasis.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
PeriodCountCalculator.dayDiff(E start,
E end,
PeriodCountBasis basis)
This calculates the number of days between 2 dates, it follows the given
basis which means that the result could vary between the same 2 dates if
the basis is different.
|
double |
PeriodCountCalculator.monthDiff(E start,
E end,
PeriodCountBasis basis)
This calculates the number of months (or fraction) between 2 dates, it
follows the given basis which means that the result could vary between
the same 2 dates if the basis is different.
|
double |
PeriodCountCalculator.yearDiff(E start,
E end,
PeriodCountBasis basis)
This calculates the number of years (or fraction) between 2 dates, it
follows the given basis which means that the result could vary between
the same 2 dates if the basis is different.
|
Modifier and Type | Method and Description |
---|---|
int |
CalendarPeriodCountCalculator.dayDiff(Calendar start,
Calendar end,
PeriodCountBasis basis) |
int |
DatePeriodCountCalculator.dayDiff(Date start,
Date end,
PeriodCountBasis basis) |
double |
CalendarPeriodCountCalculator.monthDiff(Calendar start,
Calendar end,
PeriodCountBasis basis) |
double |
DatePeriodCountCalculator.monthDiff(Date start,
Date end,
PeriodCountBasis basis) |
double |
CalendarPeriodCountCalculator.yearDiff(Calendar start,
Calendar end,
PeriodCountBasis basis) |
double |
DatePeriodCountCalculator.yearDiff(Date start,
Date end,
PeriodCountBasis basis) |
Modifier and Type | Method and Description |
---|---|
int |
LocalDatePeriodCountCalculator.dayDiff(LocalDate start,
LocalDate end,
PeriodCountBasis basis) |
double |
LocalDatePeriodCountCalculator.monthDiff(LocalDate start,
LocalDate end,
PeriodCountBasis basis) |
double |
LocalDatePeriodCountCalculator.yearDiff(LocalDate start,
LocalDate end,
PeriodCountBasis basis) |
Modifier and Type | Method and Description |
---|---|
int |
LocalDatePeriodCountCalculator.dayDiff(org.joda.time.LocalDate start,
org.joda.time.LocalDate end,
PeriodCountBasis basis) |
double |
LocalDatePeriodCountCalculator.monthDiff(org.joda.time.LocalDate start,
org.joda.time.LocalDate end,
PeriodCountBasis basis) |
double |
LocalDatePeriodCountCalculator.yearDiff(org.joda.time.LocalDate start,
org.joda.time.LocalDate end,
PeriodCountBasis basis) |
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.