Class Capacity


  • final class Capacity
    extends java.lang.Object
    Created by jcairns on 7/12/2018
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_POWER2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Capacity()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getCapacity​(int capacity)
      return the next power of two after @param capacity or capacity if it is already
      private static boolean isPowerOf2​(int p)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Capacity

        Capacity()
    • Method Detail

      • getCapacity

        public static int getCapacity​(int capacity)
        return the next power of two after @param capacity or capacity if it is already
      • isPowerOf2

        private static final boolean isPowerOf2​(int p)