aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/Ic2ExpReactorPlanner/BigintStorage.java
diff options
context:
space:
mode:
authorJakub <53441451+kuba6000@users.noreply.github.com>2022-08-29 16:04:28 +0200
committerGitHub <noreply@github.com>2022-08-29 16:04:28 +0200
commit7d1f51a8937e0a86486267437d444696e81e8aa0 (patch)
treea5b145e7271998f7b4b968a2212ed487e54a92b5 /src/main/java/Ic2ExpReactorPlanner/BigintStorage.java
parent5267969156d30b4bb5f4cb2279ebb49db6bd40e2 (diff)
downloadGT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.tar.gz
GT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.tar.bz2
GT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.zip
Buildscript + Spotless (#318)
* Convert AES.java to readable class * Buildscript * Spotless
Diffstat (limited to 'src/main/java/Ic2ExpReactorPlanner/BigintStorage.java')
-rw-r--r--src/main/java/Ic2ExpReactorPlanner/BigintStorage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/Ic2ExpReactorPlanner/BigintStorage.java b/src/main/java/Ic2ExpReactorPlanner/BigintStorage.java
index 03960cd7b1..b9ca1760c6 100644
--- a/src/main/java/Ic2ExpReactorPlanner/BigintStorage.java
+++ b/src/main/java/Ic2ExpReactorPlanner/BigintStorage.java
@@ -13,7 +13,7 @@ import java.util.Base64;
*/
public class BigintStorage {
private BigInteger storedValue = BigInteger.ZERO;
-
+
/**
* Stores the specified value. Requires that 0 &lt;= value &lt;= max.
* @param value the value to store.
@@ -25,7 +25,7 @@ public class BigintStorage {
}
storedValue = storedValue.multiply(BigInteger.valueOf(max + 1)).add(BigInteger.valueOf(value));
}
-
+
/**
* Extracts a value based on the specified maximum.
* @param max the expected maximum for the value.
@@ -36,7 +36,7 @@ public class BigintStorage {
storedValue = values[0];
return values[1].intValue();
}
-
+
/**
* Takes input of a Base64 string, and converts it to a BigintStorage.
* @param code the Base64-encoded string (presumed to be from @outputBase64)
@@ -48,7 +48,7 @@ public class BigintStorage {
result.storedValue = new BigInteger(temp);
return result;
}
-
+
/**
* Outputs the current value of this BigintStorage as a Base64-encoded string.
* @return the Base64-encoded string.