org.nakedobjects.object.value
Class ValueInRange

java.lang.Object
  extended byorg.nakedobjects.object.value.ValueInRange
All Implemented Interfaces:
Validity

public class ValueInRange
extends java.lang.Object
implements Validity


Constructor Summary
ValueInRange(int lowerBound, int upperBound)
           
 
Method Summary
 boolean isValid(NakedValue object)
          Returns true is the specified object is valid; false if invalid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueInRange

public ValueInRange(int lowerBound,
                    int upperBound)
Method Detail

isValid

public boolean isValid(NakedValue object)
Description copied from interface: Validity
Returns true is the specified object is valid; false if invalid.

Specified by:
isValid in interface Validity