Class AttributeValueCollector
Object
se.curity.identityserver.sdk.attribute.AttributeValueCollector
public class AttributeValueCollector
extends Object
implements Collector<Object,List<Object>,Attribute>
Collector of AttributeValues.
This class can be used to collect the items of a List of Comparables
as the values of an Attribute.
For example:
Attribute attribute = Arrays.asList(1, 2, "three", false).stream()
.collect(AttributeValueCollector.toAttribute("attribute_name", "authority"));
Note: all values of the resulting Attribute instance will have the default format.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics -
Method Summary
Modifier and TypeMethodDescriptioncombiner()finisher()supplier()static AttributeValueCollectortoAttribute(String attributeName) static AttributeValueCollectortoAttribute(String attributeName, String authority) static AttributeValueCollectortoAttribute(AttributeName attributeName) static AttributeValueCollectortoAttribute(AttributeName attributeName, String authority)
-
Method Details
-
toAttribute
-
toAttribute
-
toAttribute
-
toAttribute
-
supplier
-
accumulator
-
combiner
-
finisher
-
characteristics
-