Home | History | Annotate | Download | only in asn1
      1 package org.bouncycastle.asn1;
      2 
      3 class BERFactory
      4 {
      5     static final BERSequence EMPTY_SEQUENCE = new BERSequence();
      6     static final BERSet EMPTY_SET = new BERSet();
      7 
      8     static BERSequence createSequence(ASN1EncodableVector v)
      9     {
     10         return v.size() < 1 ? EMPTY_SEQUENCE : new BERSequence(v);
     11     }
     12 
     13     static BERSet createSet(ASN1EncodableVector v)
     14     {
     15         return v.size() < 1 ? EMPTY_SET : new BERSet(v);
     16     }
     17 }
     18