public final class AttributeInfoUtil extends Object
AttributeInfo.| Constructor and Description |
|---|
AttributeInfoUtil() |
| Modifier and Type | Method and Description |
|---|---|
static AttributeInfo |
find(String name,
Set<AttributeInfo> attrs)
Find the
AttributeInfo of the given name in the Set. |
static Map<String,AttributeInfo> |
toMap(Collection<? extends AttributeInfo> attributes)
|
public static Map<String,AttributeInfo> toMap(Collection<? extends AttributeInfo> attributes)
Collection of AttributeInfo instances into
a Map. The key to each element in the map is the name of
an AttributeInfo. The value of each element in the map is the
AttributeInfo instance with that name.attributes - set of AttributeInfo to transform to a map.NullPointerException - iff the parameter attributes is
null.public static AttributeInfo find(String name, Set<AttributeInfo> attrs)
AttributeInfo of the given name in the Set.name - AttributeInfo's name to search for.attrs - Set of AttributeInfo to search.AttributeInfo with the specified otherwise null.Copyright © 2013. All Rights Reserved.