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.SetEntry
EMPTY
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, wait
add, 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, values
public static Attributes aggregateOf(Attributes... aggrgatedAttributes)
public Collection<Attributes.Entry> entries()
Attributes
entries
in interface Attributes
public int size(String key)
Attributes
size
in interface Attributes
key
- the keypublic Attributes.Entry get(String key)
Attributes
Attributes.SetEntry
if the values
are distinct (for example, a role or group set).get
in interface Attributes
key
- the attribute namepublic String get(String key, int idx)
Attributes
get
in interface Attributes
key
- the keyidx
- the indexpublic int size()
Attributes
size
in interface Attributes
Copyright © 2021 JBoss by Red Hat. All rights reserved.