org.apache.avalon.excalibur.source.validity
Class TimeStampValidity
java.lang.Object
|
+--org.apache.avalon.excalibur.source.validity.TimeStampValidity
- All Implemented Interfaces:
- java.io.Serializable, SourceValidity
- public final class TimeStampValidity
- extends java.lang.Object
- implements SourceValidity
A validation object for time-stamps.
- Version:
- CVS $Revision: 1.2 $ $Date: 2001/12/17 13:20:57 $
- Author:
- Carsten Ziegeler
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeStampValidity
public TimeStampValidity(long timeStamp)
isValid
public boolean isValid()
- Check if the component is still valid.
If
false
is returned the isValid(SourceValidity) must be
called afterwards!
- Specified by:
isValid
in interface SourceValidity
isValid
public boolean isValid(SourceValidity newValidity)
- Description copied from interface:
SourceValidity
- Check if the component is still valid.
This is only true, if the incoming Validity is of the same
type and has the same values.
The invocation order is that the isValid method of the
old Validity object is called with the new one as a parameter
- Specified by:
isValid
in interface SourceValidity
getTimeStamp
public long getTimeStamp()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.