Class DateRangeUtil

java.lang.Object
ca.uhn.fhir.util.DateRangeUtil

public class DateRangeUtil extends Object
  • Constructor Details

  • 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 unconstrained
      theStartInclusive - 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