public class ExpireOr extends ExpirationPredicate
ExpirationPredicate instances.
The predicate is one of the operands is expired.| Constructor and Description |
|---|
ExpireOr(ExpirationPredicate op1,
ExpirationPredicate op2) |
| Modifier and Type | Method and Description |
|---|---|
ExpirationPredicate |
copy() |
ExpirationPredicate |
getOp1() |
ExpirationPredicate |
getOp2() |
String |
getType() |
long |
getValue() |
boolean |
isExpired()
true if this resource is no longer valid (has expired).
|
void |
serialize(IElement element)
Serialize the state in
element. |
void |
touch()
Mark the resource as just having been used.
|
public ExpireOr(ExpirationPredicate op1, ExpirationPredicate op2)
public ExpirationPredicate copy()
copy in class ExpirationPredicatepublic ExpirationPredicate getOp1()
public ExpirationPredicate getOp2()
public String getType()
getType in class ExpirationPredicatepublic long getValue()
getValue in class ExpirationPredicatepublic boolean isExpired()
IExpirationSupportpublic void serialize(IElement element) throws ElementSerializationException
IElementSerializableelement. element
represents the receiver immediately, it contains the state information
directly, not as a child element. This means most of the time you have to
change the element name itself and add child elements.serialize in interface IElementSerializableserialize in class ExpirationPredicateElementSerializationExceptionpublic void touch()
IExpirationSupportCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.