summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-01-03 10:45:43 +0100
committerGitHub <noreply@github.com>2020-01-03 10:45:43 +0100
commit8791a71854c92eaf66dd42c90ab94db67b3891dd (patch)
tree0c593f5639bdf056d50b50ec017487ed6803d907 /src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java
parentapi spec (diff)
downloadUIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar.gz
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar.bz2
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar.lz
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar.xz
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.tar.zst
UIC-barcode-8791a71854c92eaf66dd42c90ab94db67b3891dd.zip
Diffstat (limited to 'src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java')
-rw-r--r--src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java b/src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java
new file mode 100644
index 0000000..683acc1
--- /dev/null
+++ b/src/org/uic/ticket/api/asn/omv1/SequenceOfCarrierNum.java
@@ -0,0 +1,29 @@
+package org.uic.ticket.api.asn.omv1;
+
+import java.util.Collection;
+import java.util.List;
+
+
+import net.gcdc.asn1.datatypes.Asn1SequenceOf;
+import net.gcdc.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