123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
-
-
- /**
- * Created by dan on 6/14/17.
- */
- public class PredicateUtilities {
- /**
- * @param x
- * @param y
- * @return true if `x` is greater than `y`
- */
- public Boolean isGreaterThan(int x, int y) {
-
- if(x>y)
- {
- return true;
- }
- else
- {
- return false;
- }
-
- }
-
- /**
- * @param x
- * @param y
- * @return true if `x` is less than `y`
- */
- public Boolean isLessThan(int x, int y) {
- Boolean k;
- if(x<y)
- {
- k=true;
- }
- else
- {
- k=false;
-
- }
- return k;
- }
-
- /**
- * @param x
- * @param y
- * @return true if `x` is greater than or equal to `y`
- */
- public Boolean isGreaterThanOrEqualTo(int x, int y) {
- if(x>=y)
- {
- return true;
- }
- else
- {
- return false;
- }
-
- }
-
- /**
- * @param x
- * @param y
- * @return true if `x` is less than or equal to `y`
- */
- public Boolean isLessThanOrEqualTo(int x, int y) {
-
- if(x<=y)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
|