summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/asn/omv1/SequenceOfActivatedDays.java
blob: 4a90903b05c8c324794031e107a74d1f92681893 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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=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);
	}
	
}