public final class AttributeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Attribute> |
fillAttributeMap(Collection<Attribute> attributes)
Converts a collection of Attributes to a Map.
|
static Map<String,Attribute> |
fillAttributeMap(Map<String,Attribute> out,
Collection<Attribute> attributes)
Converts a collection of Attributes to a Map.
|
public static Map<String,Attribute> fillAttributeMap(Collection<Attribute> attributes) throws IllegalArgumentException
attributes
- a collection of AttributesIllegalArgumentException
- if an object in attributes is not a subclass of Attribute.public static Map<String,Attribute> fillAttributeMap(Map<String,Attribute> out, Collection<Attribute> attributes) throws IllegalArgumentException
out
- the outcomming map, if null a new map is constructed.attributes
- a collection of AttributesIllegalArgumentException
- if an object in attributes is not a subclass of Attribute.Copyright © 2004–2018 52north.org. All rights reserved.