1 package uk.co.jezuk.mango.binarypredicates; 2 3 9 public class GreaterThanEquals implements uk.co.jezuk.mango.BinaryPredicate 10 { 11 14 public boolean test(Object x, Object y) 15 { 16 if((x == null) && (y == null)) 17 return true; 18 if(x == null) 19 return false; 20 if(y == null) 21 return true; 22 23 return ((Comparable )x).compareTo(y) >= 0; 24 } } 27 | Popular Tags |