All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payneteasy.tlv.BerTlvs Maven / Gradle / Ivy

There is a newer version: 1.0-11
Show newest version
package com.payneteasy.tlv;

import java.util.ArrayList;
import java.util.List;

public class BerTlvs {

    protected BerTlvs(List aTlvs) {
        tlvs = aTlvs;
    }

    public BerTlv find(BerTag aTag) {
        for (BerTlv tlv : tlvs) {
            BerTlv found = tlv.find(aTag);
            if(found!=null) {
                return found;
            }
        }
        return null;
    }

    public List findAll(BerTag aTag) {
        List list = new ArrayList();
        for (BerTlv tlv : tlvs) {
            list.addAll(tlv.findAll(aTag));
        }
        return list;
    }


    public List getList() {
        return tlvs;
    }

    private final List tlvs;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy