public class AggregateAttributes extends Object implements Attributes
Attributes aggregating multiple instances.
Attributes are aggregated on a 'first defined wins' basis, i.e. the first definition of a specific attribute is the one used and remaining definitions are discarded.Attributes.Entry, Attributes.SetEntryEMPTY| Modifier and Type | Method and Description |
|---|---|
static Attributes |
aggregateOf(Attributes... aggrgatedAttributes) |
Collection<Attributes.Entry> |
entries()
Get the entry collection.
|
Attributes.Entry |
get(String key)
Get the collection of values for the given key.
|
String |
get(String key,
int idx)
Get the mapping for the given key at the given position.
|
int |
size()
Get the number of keys in this attribute collection.
|
int |
size(String key)
Get the number of values mapped to the given key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addAll, addAll, addFirst, addLast, asReadOnly, clear, containsKey, containsValue, copyAndRemove, copyAndReplace, getFirst, getLast, indexOf, isEmpty, keySet, lastIndexOf, remove, remove, remove, removeAll, removeFirst, removeFirst, removeLast, removeLast, removeRange, set, set, valuespublic static Attributes aggregateOf(Attributes... aggrgatedAttributes)
public Collection<Attributes.Entry> entries()
Attributesentries in interface Attributespublic int size(String key)
Attributessize in interface Attributeskey - the keypublic Attributes.Entry get(String key)
AttributesAttributes.SetEntry if the values
are distinct (for example, a role or group set).get in interface Attributeskey - the attribute namepublic String get(String key, int idx)
Attributesget in interface Attributeskey - the keyidx - the indexpublic int size()
Attributessize in interface AttributesCopyright © 2022 JBoss by Red Hat. All rights reserved.