public AttrSet(Collection<Attribute> ldapAttrSet){
  int size=ldapAttrSet.size();
  _attrs=new ArrayList(size);
  for (  Attribute attribute : ldapAttrSet) {
    Collection<byte[]> values=new ArrayList<>(attribute.size());
    for (    ByteString value : attribute) {
      values.add(value.toByteArray());
    }
    _attrs.add(new Attr(attribute.getAttributeDescriptionAsString(),values.toArray(new byte[0][])));
  }
}

public AttrSet ( Collection < Attribute > ldapAttrSet ) { int size = ldapAttrSet . size ( ) ; _attrs = new ArrayList ( size ) ; for ( Attribute attribute : ldapAttrSet ) { Collection < byte [ ] > values = new ArrayList < > ( attribute . size ( ) ) ; for ( ByteString value : attribute ) { values . add ( value . toByteArray ( ) ) ; } _attrs . add ( new Attr ( attribute . getAttributeDescriptionAsString ( ) , values . toArray ( new byte [ 0 ] [ ] ) ) ) ; } }
construct attrset from ldapattributeset
