Package gov.cms.hh.logic.specification
Class IsValidThroughDate
java.lang.Object
gov.cms.hh.logic.specification.abstr.AbstractSpecification<String>
gov.cms.hh.logic.specification.IsValidThroughDate
- All Implemented Interfaces:
Specification<String>
- Author:
- CMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetPoc()protected booleanisDaysInRange(String date) booleanbooleanbooleanisSatisfiedBy(String throughDate) booleanMethods inherited from class gov.cms.hh.logic.specification.abstr.AbstractSpecification
and, not, or
-
Constructor Details
-
IsValidThroughDate
- Parameters:
fromDate-
-
-
Method Details
-
getThroughDate
- Returns:
- the throughDate
-
isExceeded
public boolean isExceeded()- Returns:
- the exceeded
-
isPreceded
public boolean isPreceded()- Returns:
- the preceded
-
isSatisfiedBy
- Specified by:
isSatisfiedByin interfaceSpecification<String>- Specified by:
isSatisfiedByin classAbstractSpecification<String>- Parameters:
throughDate-- Returns:
-
getFromDate
-
isDaysInRange
- Parameters:
date-- Returns:
-
isShorter
public boolean isShorter()- Returns:
- the shorter
-
getPoc
public long getPoc()- Returns:
- the period of care in days
-