@Test public void testContainsDate() { assertTrue(period_2001_03.contains(DATE_2001_03_10)); assertFalse(period_2001_03.contains(DATE_2001_01_10)); }
private boolean contains(long timeInMillis) { return CalendarUtil.getInstance().calcTsPeriodId(m_freq, timeInMillis) == m_id; }
TsPeriod implements Serializable, Cloneable, IPeriod,
        Comparable<TsPeriod> { private boolean contains(long timeInMillis) { return CalendarUtil.getInstance().calcTsPeriodId(m_freq, timeInMillis) == m_id; } }
TsPeriod implements Serializable, Cloneable, IPeriod,
        Comparable<TsPeriod> { private boolean contains(long timeInMillis) { return CalendarUtil.getInstance().calcTsPeriodId(m_freq, timeInMillis) == m_id; } TsPeriod(final TsFrequency frequency);  TsPeriod(final TsFrequency frequency, final Date date);  TsPeriod(final TsFrequency frequency, final Day day);   TsPeriod(final TsFrequency frequency, final int id);  TsPeriod(final TsFrequency frequency, final int year,
            final int position);  TsPeriod(final TsFrequency frequency, final TsPeriod p); }
TsPeriod implements Serializable, Cloneable, IPeriod,
        Comparable<TsPeriod> { private boolean contains(long timeInMillis) { return CalendarUtil.getInstance().calcTsPeriodId(m_freq, timeInMillis) == m_id; } TsPeriod(final TsFrequency frequency);  TsPeriod(final TsFrequency frequency, final Date date);  TsPeriod(final TsFrequency frequency, final Day day);   TsPeriod(final TsFrequency frequency, final int id);  TsPeriod(final TsFrequency frequency, final int year,
            final int position);  TsPeriod(final TsFrequency frequency, final TsPeriod p); static String formatPeriod(TsFrequency freq, int pos); static String formatShortPeriod(TsFrequency freq, int pos); static TsPeriod year(int y); @Override TsPeriod clone(); @Override int compareTo(final TsPeriod other); @Override boolean contains(final Date dt); boolean contains(final Day day); @Override boolean equals(Object obj); boolean equals(TsPeriod other); @Override Day firstday(); TsFrequency getFrequency(); TsPeriod lastPeriod(TsFrequency freq); TsPeriod firstPeriod(TsFrequency freq); String getPeriodString(); int getPosition(); int getYear(); @Override int hashCode(); int id(); boolean isAfter(final Date date); boolean isAfter(final Day day); boolean isAfter(final TsPeriod rp); boolean isBefore(final Date date); boolean isBefore(final Day day); boolean isBefore(final TsPeriod rp); boolean isInside(final TsPeriod p); boolean isNotAfter(final TsPeriod rp); boolean isNotBefore(final TsPeriod rp); @Override Day lastday(); Date middle(); TsPeriod minus(int nperiods); int minus(final TsPeriod p); void move(final int nperiods); TsPeriod plus(int nperiods); final void set(final Date date); final void set(final Day day); final void set(int year, final int position); @Override String toString(); }
TsPeriod implements Serializable, Cloneable, IPeriod,
        Comparable<TsPeriod> { private boolean contains(long timeInMillis) { return CalendarUtil.getInstance().calcTsPeriodId(m_freq, timeInMillis) == m_id; } TsPeriod(final TsFrequency frequency);  TsPeriod(final TsFrequency frequency, final Date date);  TsPeriod(final TsFrequency frequency, final Day day);   TsPeriod(final TsFrequency frequency, final int id);  TsPeriod(final TsFrequency frequency, final int year,
            final int position);  TsPeriod(final TsFrequency frequency, final TsPeriod p); static String formatPeriod(TsFrequency freq, int pos); static String formatShortPeriod(TsFrequency freq, int pos); static TsPeriod year(int y); @Override TsPeriod clone(); @Override int compareTo(final TsPeriod other); @Override boolean contains(final Date dt); boolean contains(final Day day); @Override boolean equals(Object obj); boolean equals(TsPeriod other); @Override Day firstday(); TsFrequency getFrequency(); TsPeriod lastPeriod(TsFrequency freq); TsPeriod firstPeriod(TsFrequency freq); String getPeriodString(); int getPosition(); int getYear(); @Override int hashCode(); int id(); boolean isAfter(final Date date); boolean isAfter(final Day day); boolean isAfter(final TsPeriod rp); boolean isBefore(final Date date); boolean isBefore(final Day day); boolean isBefore(final TsPeriod rp); boolean isInside(final TsPeriod p); boolean isNotAfter(final TsPeriod rp); boolean isNotBefore(final TsPeriod rp); @Override Day lastday(); Date middle(); TsPeriod minus(int nperiods); int minus(final TsPeriod p); void move(final int nperiods); TsPeriod plus(int nperiods); final void set(final Date date); final void set(final Day day); final void set(int year, final int position); @Override String toString();  }