summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/asn1/test/TestSequenceOfLong.java
blob: 61af5faa91e7a8a53bdc30ea6c40217f6f2242e6 (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
package org.uic.barcode.asn1.test;

import java.util.Collection;
import java.util.List;

import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;

public class TestSequenceOfLong extends Asn1SequenceOf<Long> {
	    public TestSequenceOfLong() { super(); }
	    public TestSequenceOfLong(Collection<Long> coll) { super(coll); }
	    

		public TestSequenceOfLong(List<Long> numbers) {
			super();
			for (Long number: numbers){
				this.add(new Long(number));
			}
		}
		
		public static TestSequenceOfLong getSequence(List<Long> numList) {
			if (numList == null || numList.isEmpty()) return null;
			return new TestSequenceOfLong(numList);
		}
}