public class ConversionTools extends Object
| Constructor and Description |
|---|
ConversionTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bigInteger2BinaryString(BigInteger value)
Provides a string representation of the bits in the given BigInteger.
|
static BitSet |
bigInteger2BitSet(BigInteger value)
Creates a bit set from the given BigInteger.
|
static BitSet |
binaryString2BitSet(String s)
Creates a bit set from the given string of zeros and
ones.
|
static String |
bitSet2BinaryString(BitSet s)
Provides a string representation of the bits in the given BitSet.
|
public static String bigInteger2BinaryString(BigInteger value)
value - some BigIntegerpublic static BitSet bigInteger2BitSet(BigInteger value)
value - value some BigIntegerpublic static String bitSet2BinaryString(BitSet s)
value - some BitSetpublic static BitSet binaryString2BitSet(String s)
s - some string of zeros and onesCopyright © 2018. All rights reserved.