Class MathUtils

    • Constructor Detail

      • MathUtils

        public MathUtils()
    • Method Detail

      • isPow2

        public static boolean isPow2​(long n)
      • ceil

        public static int ceil​(int n,
                               int base)
      • toByteArray

        public static byte[] toByteArray​(int value)
      • toInt

        public static int toInt​(byte[] bytes)
      • toByteArray

        public static byte[] toByteArray​(long value)
      • toLong

        public static long toLong​(byte[] bytes)
      • toByteArray

        public static byte[] toByteArray​(int begin,
                                         int end)
      • min

        public static <T> T min​(T a,
                                T b,
                                Comparator<T> comparator)
      • max

        public static <T> T max​(T a,
                                T b,
                                Comparator<T> comparator)