12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Created by dan on 6/14/17.
  3. */
  4. public class PredicateUtilities {
  5. /**
  6. * @param x
  7. * @param y
  8. * @return true if `x` is greater than `y`
  9. */
  10. public Boolean isGreaterThan(int x, int y) {
  11. Boolean z = x > y ? true : false;
  12. return z;
  13. }
  14. /**
  15. * @param x
  16. * @param y
  17. * @return true if `x` is less than `y`
  18. */
  19. public Boolean isLessThan(int x, int y) {
  20. Boolean z = x < y ? true : false;
  21. return z;
  22. }
  23. /**
  24. * @param x
  25. * @param y
  26. * @return true if `x` is greater than or equal to `y`
  27. */
  28. public Boolean isGreaterThanOrEqualTo(int x, int y) {
  29. Boolean z = x >= y ? true : false;
  30. return z;
  31. }
  32. /**
  33. * @param x
  34. * @param y
  35. * @return true if `x` is less than or equal to `y`
  36. */
  37. public Boolean isLessThanOrEqualTo(int x, int y) {
  38. Boolean z = x <= y ? true : false;
  39. return z;
  40. }
  41. }