Top Constructors Methods
org.hibernate.internal.util

public final Class MathHelper

extends Object
Class Inheritance

Author
Vlad Mihalcea

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

smallest power of two number
ceilingPowerOfTwo
(int
reference number
value
)

Returns the smallest power of two number that is greater than or equal to value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MathHelperback to summary
private MathHelper()

Method Detail

ceilingPowerOfTwoback to summary
public static int ceilingPowerOfTwo(int value)

Returns the smallest power of two number that is greater than or equal to value.

Parameters
value:int

reference number

Returns:int

smallest power of two number