| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | */ |
| | | package org.forgerock.opendj.config; |
| | | |
| | |
| | | private final ManagedObjectDefinition<C, S> definition; |
| | | |
| | | /** The string encoded default managed object's properties. */ |
| | | private final Map<String, List<String>> propertyStringValues = new HashMap<String, List<String>>(); |
| | | private final Map<String, List<String>> propertyStringValues = new HashMap<>(); |
| | | |
| | | /** |
| | | * Creates a new default managed object builder. |
| | |
| | | * @return Returns the new default managed object. |
| | | */ |
| | | public DefaultManagedObject<C, S> getInstance() { |
| | | return new DefaultManagedObject<C, S>(definition, propertyStringValues); |
| | | return new DefaultManagedObject<>(definition, propertyStringValues); |
| | | } |
| | | |
| | | /** |
| | |
| | | definition.getPropertyDefinition(pd.getName()); |
| | | |
| | | // Do a defensive copy. |
| | | SortedSet<T> values = new TreeSet<T>(pd); |
| | | SortedSet<T> values = new TreeSet<>(pd); |
| | | List<String> stringValues = propertyStringValues.get(pd.getName()); |
| | | if (stringValues != null) { |
| | | for (String stringValue : stringValues) { |