home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / OSpace / jgl.exe / jgl_2_0 / src / COM / objectspace / jgl / GreaterEqualInteger.java < prev    next >
Encoding:
Java Source  |  1997-03-14  |  986 b   |  30 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
  3.  
  4. package COM.objectspace.jgl;
  5.  
  6. /**
  7.  * GreaterEqualInteger is a binary predicate that assumes that both of its operands are
  8.  * instances of Integer and returns true if the first operand is greater than or equal to the
  9.  * second operand.
  10.  * <p>
  11.  * @version 2.0.2
  12.  * @author ObjectSpace, Inc.
  13.  * @deprecated
  14.  * @see COM.objectspace.jgl.GreaterEqualNumber
  15.  */
  16.  
  17. public final class GreaterEqualInteger implements BinaryPredicate
  18.   {
  19.   /**
  20.    * Return true if the first operand is greater than or equal to the second operand.
  21.    * @param first The first operand, which must be an instance of Integer.
  22.    * @param second The second operand, which must be an instance of Integer.
  23.    * @return first >= second
  24.    */
  25.   public boolean execute( Object first, Object second )
  26.     {
  27.     return ((Integer) first).intValue() >= ((Integer) second).intValue();
  28.     }
  29.   }
  30.