Class Capacity
java.lang.Object
com.conversantmedia.util.concurrent.Capacity
Created by jcairns on 7/12/2018
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCapacity
(int capacity) return the next power of two after @param capacity or capacity if it is alreadyprivate static final boolean
isPowerOf2
(int p)
-
Field Details
-
MAX_POWER2
public static final int MAX_POWER2- See Also:
-
-
Constructor Details
-
Capacity
Capacity()
-
-
Method Details
-
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)
-