AV
- type of every element in the bagpublic class AttributeBag<AV extends AttributeValue> extends Bag<AV>
Bag
with extra metadata such as the identifier of the attribute value provider (where does the value come from, e.g. Request, or
PDP, or custom attribute provider module...)Bag.Validator
Modifier | Constructor and Description |
---|---|
protected |
AttributeBag(Datatype<AV> elementDatatype,
com.google.common.collect.ImmutableMultiset<AV> elements,
Optional<AttributeSource> attributeValueSource)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Optional<AttributeSource> |
getSource()
Get the source of this attribute bag
|
contains, elements, equals, getElementDatatype, getReasonWhyEmpty, getSingleElement, hashCode, isEmpty, iterator, size, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected AttributeBag(Datatype<AV> elementDatatype, com.google.common.collect.ImmutableMultiset<AV> elements, Optional<AttributeSource> attributeValueSource)
elementDatatype
- bag element datatypeelements
- bag elements.attributeValueSource
- source of the attribute value (where does it come from? Request, PDP, custom attribute provider module...); not present iff elements.isEmpty()
(no value found anywhere)public final Optional<AttributeSource> getSource()
Copyright © 2012–2020. All rights reserved.