
Package ca.uhn.fhir.util
Class DateRangeUtil
java.lang.Object
ca.uhn.fhir.util.DateRangeUtil
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic DateRangeParamnarrowDateRange(DateRangeParam theDateRangeParam, Date theStartInclusive, Date theEndExclusive) Narrow the DateRange to be within theStartInclusive, and theEndExclusive, if provided. 
- 
Constructor Details
- 
DateRangeUtil
public DateRangeUtil() 
 - 
 - 
Method Details
- 
narrowDateRange
@Nonnull public static DateRangeParam narrowDateRange(@Nullable DateRangeParam theDateRangeParam, @Nullable Date theStartInclusive, @Nullable Date theEndExclusive) Narrow the DateRange to be within theStartInclusive, and theEndExclusive, if provided.- Parameters:
 theDateRangeParam- the initial range, null for unconstrainedtheStartInclusive- a lower bound to apply, or null for unchanged.theEndExclusive- an upper bound to apply, or null for unchanged.- Returns:
 - a DateRange within the original range, and between theStartInclusive and theEnd
 
 
 -