public CostRateTableEntry getEntryByDate(Date date)
   {
      CostRateTableEntry result = null;

      for (CostRateTableEntry entry : this)
      {
         if (DateHelper.compare(date, entry.getEndDate()) < 0)
         {
            result = entry;
            break;
         }
      }

      return result;
   }
public CostRateTableEntry getEntryByDate ( Date date ) { CostRateTableEntry result = null ; for ( CostRateTableEntry entry : this ) { if ( DateHelper . compare ( date , entry . getEndDate ( ) ) < 0 ) { result = entry ; break ; } } return result ; }
Retrieve the table entry valid for the supplied date.

@param date required date
@return cost rate table entry