| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | { |
| | | this.attributeType = attributeType; |
| | | |
| | | values = new ArrayList<ByteString>(0); |
| | | values = new ArrayList<>(0); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | this.attributeType = attributeType; |
| | | |
| | | values = new ArrayList<ByteString>(1); |
| | | values = new ArrayList<>(1); |
| | | values.add(ByteString.valueOf(value)); |
| | | } |
| | | |
| | |
| | | { |
| | | this.attributeType = attributeType; |
| | | |
| | | values = new ArrayList<ByteString>(1); |
| | | values = new ArrayList<>(1); |
| | | values.add(value); |
| | | } |
| | | |
| | |
| | | |
| | | if (values == null) |
| | | { |
| | | this.values = new ArrayList<ByteString>(0); |
| | | this.values = new ArrayList<>(0); |
| | | } |
| | | else |
| | | { |
| | | this.values = new ArrayList<ByteString>(values.size()); |
| | | this.values = new ArrayList<>(values.size()); |
| | | for (String value : values) |
| | | { |
| | | this.values.add(ByteString.valueOf(value)); |
| | |
| | | |
| | | if (values == null) |
| | | { |
| | | this.values = new ArrayList<ByteString>(0); |
| | | this.values = new ArrayList<>(0); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | if (attribute.isVirtual()) |
| | | { |
| | | values = new ArrayList<ByteString>(); |
| | | values = new ArrayList<>(); |
| | | } |
| | | else if (attribute.isEmpty()) |
| | | { |
| | | values = new ArrayList<ByteString>(0); |
| | | values = new ArrayList<>(0); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | values = new ArrayList<ByteString>(attribute.size()); |
| | | values = new ArrayList<>(attribute.size()); |
| | | } |
| | | |
| | | for (ByteString v : attribute) |