public final class AttributeInfoUtil
extends java.lang.Object
AttributeInfo
.Constructor and Description |
---|
AttributeInfoUtil() |
Modifier and Type | Method and Description |
---|---|
static AttributeInfo |
find(java.lang.String name,
java.util.Set<AttributeInfo> attrs)
Find the
AttributeInfo of the given name in the Set . |
static java.util.Map<java.lang.String,AttributeInfo> |
toMap(java.util.Collection<? extends AttributeInfo> attributes)
|
public static java.util.Map<java.lang.String,AttributeInfo> toMap(java.util.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.java.lang.NullPointerException
- iff the parameter attributes is
null.public static AttributeInfo find(java.lang.String name, java.util.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
.