 
  | JGL - The Generic Collection Library for Java | 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.objectspace.jgl.predicates.LessEqualNumber
java.lang.Object
   |
   +----com.objectspace.jgl.predicates.LessEqualNumber
  -  public class LessEqualNumber
  
-  extends Object
  
-  implements BinaryPredicate
		
   
LessEqualNumber is a binary predicate that assumes that both of its operands are
 instances of Number and returns true if the first operand is less than or equal to the second operand.
 
    -  See Also:
    
 -  Number, BigInteger, BigDecimal
 
  
  -  
	LessEqualNumber()
   -   Construct myself to use intValue() for comparisons.
  
 -  
	LessEqualNumber(Class)
   -   Construct myself to compare objects of the given class.
 
  
  -  
	execute(Object, Object)
   -   Return true if the first operand is less than or equal to the second operand.
 
  
LessEqualNumber
 public LessEqualNumber()
  -  Construct myself to use intValue() for comparisons.
 
LessEqualNumber
 public LessEqualNumber(Class discriminator)
  -  Construct myself to compare objects of the given class.  The class must
 be derived from java.lang.Number.
  
    -  Parameters:
    
 -  discriminator - The class of objects that I will be comparing.
    
 -  Throws: IllegalArgumentException
    
 -  Throw if discriminator is not an instance of java.lang.Number.
  
 
 
 
  
execute
 public boolean execute(Object first,
                        Object second)
  -  Return true if the first operand is less than or equal to the second operand.
 Be aware that some floating point conversions are not exact, and may
 cause unexpected results due to rounding.
  
    -  Parameters:
    
 -  first - The first operand, which must be an instance of Number.
    
-  second - The second operand, which must be an instance of Number.
    
  -  Returns:
    
 -  first <= second
    
 -  Throws: InvalidOperationException
    
 -  Throw if I don't know how to interpret the values.
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index