public final class NOPValidity extends java.lang.Object implements SourceValidity
| Modifier and Type | Field and Description |
|---|---|
static SourceValidity |
SHARED_INSTANCE |
INVALID, UNKNOWN, UNKNWON, VALID| Constructor and Description |
|---|
NOPValidity() |
| Modifier and Type | Method and Description |
|---|---|
int |
isValid()
Check if the component is still valid.
|
int |
isValid(SourceValidity newValidity)
Check if the component is still valid.
|
java.lang.String |
toString() |
public static final SourceValidity SHARED_INSTANCE
public int isValid()
0 is returned the isValid(SourceValidity) must be
called afterwards!
If -1 is returned, the component is not valid anymore and if +1
is returnd, the component is valid.isValid in interface SourceValiditypublic int isValid(SourceValidity newValidity)
SourceValidityThe invocation order is that the isValid method of the old Validity object is called with the new one as a parameter.
isValid in interface SourceValiditypublic java.lang.String toString()
toString in class java.lang.Object