summaryrefslogtreecommitdiffstats
path: root/src/net/gcdc/asn1/datatypes/Asn1BigInteger.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
commit425bd35c736b7e1c0dbe5b3f9162e195b3be6018 (patch)
treebc4668aa125fb0a15518d464a1738c6b05e56d07 /src/net/gcdc/asn1/datatypes/Asn1BigInteger.java
parentissuerOnLine changed from int to Integer as it is optional (diff)
downloadUIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.gz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.bz2
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.lz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.xz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.zst
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.zip
Diffstat (limited to 'src/net/gcdc/asn1/datatypes/Asn1BigInteger.java')
-rw-r--r--src/net/gcdc/asn1/datatypes/Asn1BigInteger.java72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/net/gcdc/asn1/datatypes/Asn1BigInteger.java b/src/net/gcdc/asn1/datatypes/Asn1BigInteger.java
deleted file mode 100644
index 23fd584..0000000
--- a/src/net/gcdc/asn1/datatypes/Asn1BigInteger.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package net.gcdc.asn1.datatypes;
-
-import java.math.BigInteger;
-
-//outdated: use BigInteger
-public class Asn1BigInteger {
-
- private final BigInteger value;
-
- public Asn1BigInteger(final BigInteger value) {
- this.value = value;
- }
-
- @Override public String toString() {
- return "" + value;
- }
-
- public BigInteger value() { return value; }
-
- public Long longValue() {
- return value.longValue();
- }
-
- public Integer intValue() {
- return value.intValue();
- }
-
- public Asn1BigInteger(Long num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(long num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(Integer num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(int num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public static Long toLong(Asn1BigInteger object) {
- if (object == null) return null;
- return object.longValue();
- }
-
- public static Asn1BigInteger toAsn1(Long object) {
- if (object == null) return null;
- return new Asn1BigInteger(object);
- }
-
- public static Asn1BigInteger toAsn1(Integer object) {
- if (object == null) return null;
- return new Asn1BigInteger(object);
- }
-
- public Long toLong(){
- if (this.value != null) {
- return this.value.longValue();
- }
- return null;
- }
-
- public BigInteger toBigInteger(){
- return value;
- }
-
-
-
-}