org.rr0.im.business.event.circumstance
Interface Moment

All Known Subinterfaces:
PreciseMoment
All Known Implementing Classes:
IntervalMomentImpl

public interface Moment
extends Endable

A moment in the time.
This class is different from java.util.Date or java.util.Calendar as it is the root
of a moment-in-the-time taxonomy that allows to define precise date, fuzzy dates, etc.

Author:
Jérôme Beau
Version: 21 avr. 2003 16:35:50

Method Summary
 booleanisAfter(Moment otherMoment)
          If this moment is chronologically after an other moment
 booleanisBefore(Moment otherMoment)
          If this moment is chronologically before an other moment

Methods inherited from interface org.rr0.im.business.event.Endable
getEnd

Methods inherited from interface org.rr0.im.business.event.Timeable
getBegining, getHistory

Methods inherited from interface org.rr0.im.business.event.Durable
getDuration

Method Detail

isAfter

public boolean isAfter(Moment otherMoment)
If this moment is chronologically after an other moment
Parameters:
otherMoment The other moment
Returns: If this moment is after the other one.

isBefore

public boolean isBefore(Moment otherMoment)
If this moment is chronologically before an other moment
Parameters:
otherMoment The other moment
Returns: If this moment is before the other one.