com.thinkaurelius.titan.util.stats

## Class NumberUtil

- java.lang.Object
- - com.thinkaurelius.titan.util.stats.NumberUtil

-     public class NumberUtil
      extends Object

  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NumberUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `getPowerOf2(long value)` Returns an integer X such that 2^X=value.
    `static boolean` | `isPowerOf2(long value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NumberUtil

          public NumberUtil()

  - ### Method Detail

    - #### isPowerOf2

          public static boolean isPowerOf2(long value)

    - #### getPowerOf2

          public static int getPowerOf2(long value)

      Returns an integer X such that 2^X=value. Throws an exception if value is not a power of 2.
      Parameters:
        `value` -
      Returns:

Copyright © 2012–2014. All rights reserved.