de.intarsys.tools.math.BigIntegerTools Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
package de.intarsys.tools.math;
import java.math.BigInteger;
public class BigIntegerTools {
public static BigInteger getPositiveBigInt(final byte[] data) {
// byte[] temp = data;
// if (data[0] < 0) {
// temp = new byte[data.length + 1];
// System.arraycopy(data, 0, temp, 1, data.length);
// }
return new BigInteger(1, data);
}
private BigIntegerTools() {
// tool class
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy