nl.hippo.client.api.caching
Interface SourceValidity

All Superinterfaces:
Serializable
All Known Subinterfaces:
EventValidity
All Known Implementing Classes:
EventValidityImpl

public interface SourceValidity
extends Serializable


Field Summary
static int INVALID
           
static int UNKNOWN
           
static int VALID
           
 
Method Summary
 int isValid()
          Check if the component is still valid.
 int isValid(SourceValidity newValidity)
          Check if the component is still valid.
 

Field Detail

VALID

static final int VALID
See Also:
Constant Field Values

INVALID

static final int INVALID
See Also:
Constant Field Values

UNKNOWN

static final int UNKNOWN
See Also:
Constant Field Values
Method Detail

isValid

int isValid()
Check if the component is still valid. The possible results are :


isValid

int isValid(SourceValidity newValidity)
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.

Returns:
-1 is returned, if the validity object is not valid anymore +1 is returned, if the validity object is still valid 0 is returned, if the validity check could not be performed. In this case, the new validity object is not usable. Examples for this are: when the validity objects have different types, or when one validity object for any reason is not able to get the required information.


Copyright © 2006-2009 Hippo. All Rights Reserved.