Code example for Enumeration

Methods: hasMoreElementsnextElement

0
        ASN1Sequence seq)
    { 
        Enumeration e = seq.getObjects();
 
        // qcStatementId 
        qcStatementId = DERObjectIdentifier.getInstance(e.nextElement());
        // qcstatementInfo 
        if (e.hasMoreElements())
        { 
            qcStatementInfo = (ASN1Encodable) e.nextElement();
        } 
    }     
     
    public QCStatement( 
        DERObjectIdentifier qcStatementId)
    { 
        this.qcStatementId = qcStatementId;
        this.qcStatementInfo = null;
    } 
     
    public QCStatement(