Class IsValidThroughDate

java.lang.Object
gov.cms.hh.logic.specification.abstr.AbstractSpecification<String>
gov.cms.hh.logic.specification.IsValidThroughDate
All Implemented Interfaces:
Specification<String>

public class IsValidThroughDate extends AbstractSpecification<String>
Author:
CMS
  • Constructor Details

    • IsValidThroughDate

      public IsValidThroughDate(String fromDate)
      Parameters:
      fromDate -
  • Method Details

    • getThroughDate

      public Date getThroughDate()
      Returns:
      the throughDate
    • isExceeded

      public boolean isExceeded()
      Returns:
      the exceeded
    • isPreceded

      public boolean isPreceded()
      Returns:
      the preceded
    • isSatisfiedBy

      public boolean isSatisfiedBy(String throughDate)
      Specified by:
      isSatisfiedBy in interface Specification<String>
      Specified by:
      isSatisfiedBy in class AbstractSpecification<String>
      Parameters:
      throughDate -
      Returns:
    • getFromDate

      public Date getFromDate()
    • isDaysInRange

      protected boolean isDaysInRange(String date)
      Parameters:
      date -
      Returns:
    • isShorter

      public boolean isShorter()
      Returns:
      the shorter
    • getPoc

      public long getPoc()
      Returns:
      the period of care in days