class TimeOfDayFilter extends DurationFilter {

   @Override
   protected Date getDeactivationTime(ConditionContext context) {
      TimeOfDay deactivationTime = endTime;
      if(deactivationTime == null) {
         deactivationTime = MIDNIGHT;
      }
      return deactivationTime.next(context.getLocalTime()).getTime();
   }

   public  TimeOfDayFilter(Condition delegate, TimeRange timeRange);
   public  TimeOfDayFilter(Condition delegate, @Nullable TimeOfDay startTime, @Nullable TimeOfDay endTime);

}