Class Memory.Util

  • Enclosing interface:
    Memory

    public static class Memory.Util
    extends Object
    Memory utilities.
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • isPow2

        public static boolean isPow2​(int size)
        Returns a boolean indicating whether the given count is a power of 2.
      • toPow2

        public static long toPow2​(int size)
        Rounds the count to the nearest power of two.