Class AttributeInfoUtil
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.AttributeInfoUtil
-
public final class AttributeInfoUtil extends java.lang.ObjectUtility methods to retrieve values from instances ofAttributeInfo.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeInfofind(java.lang.String name, java.util.Set<AttributeInfo> attrs)Find theAttributeInfoof the given name in theSet.static java.util.Map<java.lang.String,AttributeInfo>toMap(java.util.Collection<? extends AttributeInfo> attributes)
-
-
-
Method Detail
-
toMap
public static java.util.Map<java.lang.String,AttributeInfo> toMap(java.util.Collection<? extends AttributeInfo> attributes)
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:
java.lang.NullPointerException- if the parameter attributes is null.
-
find
public static AttributeInfo find(java.lang.String name, java.util.Set<AttributeInfo> attrs)
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.
-
-