Class AttributeInfoUtil
java.lang.Object
org.identityconnectors.framework.common.objects.AttributeInfoUtil
Utility methods to retrieve values from instances of
AttributeInfo.-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeInfofind(String name, Set<AttributeInfo> attrs) Find theAttributeInfoof the given name in theSet.static Map<String,AttributeInfo> toMap(Collection<? extends AttributeInfo> attributes)
-
Method Details
-
toMap
Transform aCollectionofAttributeInfoinstances into aMap. The key to each element in the map is the name of anAttributeInfo. The value of each element in the map is theAttributeInfoinstance with that name.- Parameters:
attributes- set of AttributeInfo to transform to a map.- Returns:
- a map of string and AttributeInfo.
- Throws:
NullPointerException- if the parameter attributes is null.
-
find
Find theAttributeInfoof the given name in theSet.- Parameters:
name-AttributeInfo's name to search for.attrs-Setof AttributeInfo to search.- Returns:
AttributeInfowith the specified otherwisenull.
-