public enum PredefinedRange extends Enum<PredefinedRange>
| Modifier and Type | Class and Description |
|---|---|
static class |
PredefinedRange.Range |
static interface |
PredefinedRange.RangeSupplier |
| Enum Constant and Description |
|---|
ALL |
CURRENT_MONTH |
CURRENT_YEAR |
LAST_3_MONTHS |
LAST_6_MONTHS |
LAST_MONTH |
LAST_YEAR |
| Modifier and Type | Method and Description |
|---|---|
static Date |
firstDayOfCurrentMonth() |
static Date |
firstDayOfCurrentYear() |
static Date |
firstDayOfLastYear() |
static Date |
firstDayOfPreviousMonth() |
static Date |
firstDayOfPreviousSixMonths() |
static Date |
firstDayOfPreviousThreeMonths() |
PredefinedRange.RangeSupplier |
getRangeSupplier() |
static Date |
lastDayOfCurrentMonth() |
static Date |
lastDayOfCurrentYear() |
static Date |
lastDayOfLastYear() |
static Date |
lastDayOfPreviousMonth() |
static PredefinedRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PredefinedRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredefinedRange CURRENT_MONTH
public static final PredefinedRange LAST_MONTH
public static final PredefinedRange LAST_3_MONTHS
public static final PredefinedRange LAST_6_MONTHS
public static final PredefinedRange CURRENT_YEAR
public static final PredefinedRange LAST_YEAR
public static final PredefinedRange ALL
public static PredefinedRange[] values()
for (PredefinedRange c : PredefinedRange.values()) System.out.println(c);
public static PredefinedRange valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic PredefinedRange.RangeSupplier getRangeSupplier()
public static Date firstDayOfCurrentMonth()
public static Date firstDayOfPreviousMonth()
public static Date firstDayOfPreviousThreeMonths()
public static Date firstDayOfPreviousSixMonths()
public static Date lastDayOfCurrentMonth()
public static Date lastDayOfPreviousMonth()
public static Date firstDayOfCurrentYear()
public static Date lastDayOfCurrentYear()
public static Date firstDayOfLastYear()
public static Date lastDayOfLastYear()
Copyright © 2023. All rights reserved.