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