summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-04-14 15:09:45 +0200
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-04-14 15:09:45 +0200
commit8770b99fdb6f47dea7b1f598633407e67b22572f (patch)
tree5d1fc48cf597cb12cfb125192fe8c4ff9765c95b /src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
parentunit test for fcb version 1 including all elements (diff)
downloadUIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar.gz
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar.bz2
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar.lz
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar.xz
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.tar.zst
UIC-barcode-8770b99fdb6f47dea7b1f598633407e67b22572f.zip
Diffstat (limited to 'src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java')
-rw-r--r--src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java36
1 files changed, 4 insertions, 32 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java b/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
index f5eb15c..261b7ac 100644
--- a/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
+++ b/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
@@ -217,7 +217,7 @@ public class UicEncoderUtils {
}
/**
- * Gets the num list.
+ * Gets the list of all numeric strings.
*
* @param list the list
* @return the num list
@@ -244,9 +244,10 @@ public class UicEncoderUtils {
return numList;
}
+
/**
- * Gets the i a5 non num list.
+ * Gets the IA5 string list of all elements that are not nmeric.
*
* @param list the list
* @return the i a5 non num list
@@ -274,8 +275,7 @@ public class UicEncoderUtils {
return ia5List;
}
-
-
+
/**
* Gets the i a5.
@@ -443,34 +443,6 @@ public class UicEncoderUtils {
return list;
}
- /**
- * Gets the restricted int list.
- *
- * @param intList the int list
- * @param min the min
- * @param max the max
- * @return the restricted int list
- * @throws EncodingFormatException the encoding format exception
- */
- public static List<Integer> getRestrictedIntList( Collection<Integer> intList, int min, int max) throws EncodingFormatException {
- if (intList == null || intList.isEmpty()) return null;
-
- ArrayList<Integer> list = new ArrayList<Integer>();
-
- for (Integer i : intList){
- if (i != 0){
-
- if (i < min || i > max){
- throw new EncodingFormatException("Integer value exceeds boundaries");
- }
-
- list.add(i);
- }
- }
-
- if (list.isEmpty()) return null;
- return list;
- }
/**
* Encode restricted integer collection.