|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.arrays.NegateConditional
Used in a decorator chain to Negate any other conditional. This reduces the ammount of code that must
be written as != and others are simply wrapped in the NegateConditional() object and so other classes
need not be created.
View Code
| Constructor Summary | |
NegateConditional(Conditional nextConditional)
Creates a new instance of NegateConditional, negating the Conditional that is passed in. |
|
| Method Summary | |
java.lang.String |
getType()
Returns '!' to help in creating a String representation of the Conditional |
boolean |
isTrue(java.lang.Object[] row)
This method returns the opposite of the next Conditional in the chain thus negating it. |
java.lang.String |
toString()
Return a String representation of this Conditional |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NegateConditional(Conditional nextConditional)
| Method Detail |
public boolean isTrue(java.lang.Object[] row)
isTrue in interface Conditionalpublic java.lang.String getType()
getType in interface Conditionalpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||