org.apache.commons.ognl.test.objects
Class EvenOdd

java.lang.Object
  extended by org.apache.commons.ognl.test.objects.EvenOdd

public class EvenOdd
extends Object


Constructor Summary
EvenOdd()
           
 
Method Summary
 String getNext()
          Returns "even" or "odd".
 boolean isEven()
           
 void setEven(boolean value)
          Overrides the even flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvenOdd

public EvenOdd()
Method Detail

getNext

public String getNext()
Returns "even" or "odd". Whatever it returns on one invocation, it will return the opposite on the next. By default, the first value returned is "even".


isEven

public boolean isEven()

setEven

public void setEven(boolean value)
Overrides the even flag.



Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.