Class ValueUtils

    • Constructor Detail

      • ValueUtils

        public ValueUtils()
    • Method Detail

      • valueOrMin

        public static int valueOrMin​(Integer checkValue,
                                     int min)
      • valueOrMin

        public static long valueOrMin​(Long checkValue,
                                      long min)
      • valueOrMax

        public static int valueOrMax​(Integer checkValue,
                                     int max)
      • valueOrMax

        public static long valueOrMax​(Long checkValue,
                                      long max)
      • inRange

        public static int inRange​(Integer checkValue,
                                  int min,
                                  int max)
      • inRange

        public static long inRange​(Long checkValue,
                                   long min,
                                   long max)
      • inRange

        public static double inRange​(Double checkValue,
                                     double min,
                                     double max)
      • validOrNull

        public static <T> T validOrNull​(T checkValue,
                                        T[] validValues)
      • valueOrAlt

        public static <T> T valueOrAlt​(T checkValue,
                                       T altValue)
      • valueOrAlt

        public static int valueOrAlt​(int checkValue,
                                     int altValue)
      • valueOrAlt

        public static long valueOrAlt​(long checkValue,
                                      long altValue)
      • isFloatRange

        public static boolean isFloatRange​(double value)
      • isIntRange

        public static boolean isIntRange​(long value)
      • isShortRange

        public static boolean isShortRange​(long value)
      • isByteRange

        public static boolean isByteRange​(long value)