Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

final Date net::sf::linuxorg::pcal::engine::Engine::getLastMenstruationDate (  ) [inline]
Returns:
Last menstruation date or null if none

Definition at line 1336 of file Engine.java.

References dateTypes.

Referenced by net::sf::linuxorg::pcal::engine::EngineTest::testGetLastMenstruationDate().

      {
            if(startDates.size()>0) {
                  Date last_date = startDates.last();
                  if(dateTypes.get(last_date) == PCAL_TYPE_MENS) {
                        return last_date;
                  }        
                  return null;
            } else {
                  return null;
            }
      }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index