blob: 96f8734a20274a824f14ad8e6ce2a317d727e6c2 (
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
28
29
30
31
32
33
34
35
|
package net.gcdc.asn1.datatypesimpl;
import java.util.Collection;
import java.util.List;
import net.gcdc.asn1.datatypes.Asn1BigInteger;
import net.gcdc.asn1.datatypes.Asn1SequenceOf;
/*
* Sequence of Asn1Integer for restricted integers
*
*/
public class SequenceOfUnrestrictedLong extends Asn1SequenceOf<Asn1BigInteger> {
public SequenceOfUnrestrictedLong() { super(); }
public SequenceOfUnrestrictedLong(Collection<Asn1BigInteger> coll) { super(coll); }
public void add(Long num) {
add (new Asn1BigInteger(num));
}
public SequenceOfUnrestrictedLong(List<Long> numbers) {
super();
for (Long number: numbers){
this.add(new Asn1BigInteger(number));
}
}
public static SequenceOfUnrestrictedLong getSequence(List<Long> numList) {
if (numList == null || numList.isEmpty()) return null;
return new SequenceOfUnrestrictedLong(numList);
}
}
|