diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-06-29 16:26:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 16:26:36 +0200 |
commit | 27d114203f6edaf8aea75ee710bd87f32d79f003 (patch) | |
tree | 794e40b39e154adef8e471ab8774c8a68bd3e434 /src/main/java/org/uic/barcode/ticket/api/asn/omv3/SequenceOfCarrierNum.java | |
parent | Delete uicBarcodeFCBv2.0.asn (diff) | |
parent | - test for FCB version 3 (diff) | |
download | UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar.gz UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar.bz2 UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar.lz UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar.xz UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.tar.zst UIC-barcode-27d114203f6edaf8aea75ee710bd87f32d79f003.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/ticket/api/asn/omv3/SequenceOfCarrierNum.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/SequenceOfCarrierNum.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/SequenceOfCarrierNum.java new file mode 100644 index 0000000..3447264 --- /dev/null +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/SequenceOfCarrierNum.java @@ -0,0 +1,28 @@ +package org.uic.barcode.ticket.api.asn.omv3;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
+import org.uic.barcode.asn1.datatypes.IntRange;
+
+@IntRange(minValue=1,maxValue=32000)
+public class SequenceOfCarrierNum extends Asn1SequenceOf<Long> {
+ public SequenceOfCarrierNum() { super(); }
+ public SequenceOfCarrierNum(Collection<Long> coll) { super(coll); }
+
+
+ public SequenceOfCarrierNum(List<Long> numbers) {
+ super();
+ for (Long number: numbers){
+ this.add(new Long(number));
+ }
+ }
+ public static SequenceOfCarrierNum getSequence(List<Long> numList) {
+ if (numList == null || numList.isEmpty()) return null;
+ return new SequenceOfCarrierNum(numList);
+ }
+
+
+
+}
\ No newline at end of file |