KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > validator > rules > MinLong


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>Long</code>
6  *
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 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 MinLong extends AbstractMinMax{
15   private int _val;
16   
17   /**
18    * Constructor for MinLong.
19    */

20   public MinLong() {
21     super(true);
22   }
23   
24   /**
25    * Sets the value against which the comparison should be peformed.
26    *
27    * @param val a <code>long</code>.
28    */

29   public void setValue(long val){
30         super.setComparable(new Long JavaDoc(val));
31   }
32
33 }
34
Popular Tags