summaryrefslogtreecommitdiff
path: root/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/its/asn1/SequenceOfRectangularRegion.java
blob: d1f4865f8d94c3a2beb120a525176a6daa7ceb89 (plain)
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
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.org.bouncycastle.its.asn1;

import com.android.org.bouncycastle.asn1.ASN1Object;
import com.android.org.bouncycastle.asn1.ASN1Primitive;
import com.android.org.bouncycastle.asn1.ASN1Sequence;
import com.android.org.bouncycastle.asn1.DERSequence;

/**
 * <pre>
 *     SequenceOfRectangularRegion ::= SEQUENCE OF RectangularRegion
 * </pre>
 * @hide This class is not part of the Android public SDK API
 */
public class SequenceOfRectangularRegion
    extends ASN1Object
{
    private final RectangularRegion[] sequence;

    private SequenceOfRectangularRegion(ASN1Sequence seq)
    {
        this.sequence = new RectangularRegion[seq.size()];

        for (int i = 0; i != seq.size(); i++)
        {
            sequence[i] = RectangularRegion.getInstance(seq.getObjectAt(i));
        }
    }

    public ASN1Primitive toASN1Primitive()
    {
        return new DERSequence(sequence);
    }
}