summaryrefslogblamecommitdiffstats
path: root/src/net/gcdc/asn1/test/TestSequenceOfLong.java
blob: f5c295f2e37f8d9058202c7e6331c540804cee8c (plain) (tree)























                                                                                   
package net.gcdc.asn1.test;

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

import net.gcdc.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);
		}
}