public class BitUtil extends Object
Constructor and Description |
---|
BitUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
leastSignificantBit(long value)
Computes the least-significant bit of the specified
long
that is set to 1 . |
public static int leastSignificantBit(long value)
long
that is set to 1
. Zero-indexed.value
- the long
whose least-significant bit is desired.long
.
-1
is returned if there are no bits set.Copyright © 2019. All rights reserved.