class Preconditions {

    public static long requirePowerOfTwo( long value )
    {
        if ( !isPowerOfTwo( value ) )
        {
            throw new IllegalArgumentException( "Expected long value to be a non zero power of 2, got " + value );
        }
        return value;
    }

    private  Preconditions();

}