1 package org.sapia.validator.rules; 2 3 /** 4 * Asserts that the object to evaluate is greater or equal than a specified value. 5 * The evaluated object is expected to be an instance of <code>Integer</code> 6 * 7 * @author Yanick Duchesne 8 * <dl> 9 * <dt><b>Copyright:</b><dd>Copyright © 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt> 10 * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the 11 * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt> 12 * </dl> 13 */ 14 public class MinInt extends AbstractMinMax{ 15 private int _val; 16 17 /** 18 * Constructor for MinInt. 19 */ 20 public MinInt() { 21 super(true); 22 } 23 24 /** 25 * Sets the value against which the comparison should be peformed. 26 * 27 * @param val a <code>int</code>. 28 */ 29 public void setValue(int val){ 30 super.setComparable(new Integer(val)); 31 } 32 33 } 34