Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.creepinson.util;
- /**
- * @author Creepinson.
- */
- public class CreepinsonUtilities {
- public static boolean hasIncreased(int value, int lastValue){
- boolean bool = false;
- if(value > lastValue){
- bool = true;
- } else {
- bool = false;
- }
- return bool;
- }
- public static boolean hasIncreased(double value, double lastValue){
- boolean bool = false;
- if(value > lastValue){
- bool = true;
- } else {
- bool = false;
- }
- return bool;
- }
- public static boolean hasDecreased(int value, int lastValue){
- boolean bool = false;
- if(value < lastValue){
- bool = true;
- } else {
- bool = false;
- }
- return bool;
- }
- public static boolean hasDecreased(double value, double lastValue){
- boolean bool = false;
- if(value < lastValue){
- bool = true;
- } else {
- bool = false;
- }
- return bool;
- }
- }
Add Comment
Please, Sign In to add comment