diff options
Diffstat (limited to 'src/org/uic/ticket/api/asn/omv2/SequenceOfActivatedDays.java')
-rw-r--r-- | src/org/uic/ticket/api/asn/omv2/SequenceOfActivatedDays.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/org/uic/ticket/api/asn/omv2/SequenceOfActivatedDays.java b/src/org/uic/ticket/api/asn/omv2/SequenceOfActivatedDays.java new file mode 100644 index 0000000..d6d35f3 --- /dev/null +++ b/src/org/uic/ticket/api/asn/omv2/SequenceOfActivatedDays.java @@ -0,0 +1,27 @@ +package org.uic.ticket.api.asn.omv2;
+
+import java.util.Collection;
+import java.util.List;
+
+
+import net.gcdc.asn1.datatypes.Asn1SequenceOf;
+import net.gcdc.asn1.datatypes.IntRange;
+
+@IntRange(minValue=0,maxValue=370)
+public class SequenceOfActivatedDays extends Asn1SequenceOf<Long> {
+ public SequenceOfActivatedDays() { super(); }
+ public SequenceOfActivatedDays(Collection<Long> coll) { super(coll); }
+
+ public SequenceOfActivatedDays(List<Long> numbers) {
+ super();
+ for (Long number: numbers){
+ this.add(new Long(number));
+ }
+ }
+
+ public static SequenceOfActivatedDays getSequence(List<Long> numList) {
+ if (numList == null || numList.isEmpty()) return null;
+ return new SequenceOfActivatedDays(numList);
+ }
+
+}
\ No newline at end of file |