Package net.solarnetwork.dao
Interface DateRangeCriteria
public interface DateRangeCriteria
Search criteria for a date range.
- Since:
- 1.67
- Version:
- 1.1
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionGet the ending (maximum) date.Get the starting (minimum) date.default booleanhasDate()Test if the filter has a start or end date specified.default booleanTest if the filter as a date range specified.default booleanTest if the filter as an end date specified.default booleanTest if the filter as a start date specified.
-
Method Details
-
getStartDate
Instant getStartDate()Get the starting (minimum) date.The in/exclusive nature of this value depends on the context in which the criteria is applied.
- Returns:
- the start date
-
getEndDate
Instant getEndDate()Get the ending (maximum) date.The in/exclusive nature of this value depends on the context in which the criteria is applied.
- Returns:
- the end date
-
hasDateRange
default boolean hasDateRange()Test if the filter as a date range specified.- Returns:
- true if both a start and end date are non-null
-
hasStartDate
default boolean hasStartDate()Test if the filter as a start date specified.- Returns:
- true if the start date is non-null
-
hasEndDate
default boolean hasEndDate()Test if the filter as an end date specified.- Returns:
- true if the end date is non-null
- Since:
- 1.1
-
hasDate
default boolean hasDate()Test if the filter has a start or end date specified.- Returns:
- true if either a start or end date is non-null
- Since:
- 1.1
-