ImmutableAttributeMap
instead.@NotThreadSafe @Deprecated public final class PersonalAttributeList extends Object implements IPersonalAttributeList
PersonalAttribute
Constructor and Description |
---|
PersonalAttributeList()
Deprecated.
Default constructor.
|
PersonalAttributeList(int capacity)
Deprecated.
Constructor with initial capacity for the PersonalAttributeList size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(PersonalAttribute value)
Deprecated.
Adds to the PersonalAttributeList the given PersonalAttribute.
|
boolean |
contains(PersonalAttribute personalAttribute)
Deprecated.
Checks if the Personal Attribute List contains the given key.
|
boolean |
containsFriendlyName(String friendlyName)
Deprecated.
Checks if the Personal Attribute List contains the given key.
|
static PersonalAttributeList |
copyOf(eu.eidas.auth.commons.attribute.ImmutableAttributeMap copy)
Deprecated.
Static factory method to copy an
ImmutableAttributeMap as a PersonalAttributeList . |
static PersonalAttributeList |
copyOf(IPersonalAttributeList copy)
Deprecated.
Static factory method to copy a
PersonalAttributeList . |
static eu.eidas.auth.commons.attribute.ImmutableAttributeMap |
copyOf(IPersonalAttributeList copy,
AttributeRegistry... attributeRegistries)
Deprecated.
Static factory method to convert a
PersonalAttributeList into an ImmutableAttributeMap . |
boolean |
equals(Object o)
Deprecated.
|
static PersonalAttributeList |
fromString(String personalAttributeListString)
Deprecated.
|
PersonalAttribute |
getByFriendlyName(String friendlyName)
Deprecated.
Returns the first value to which the specified key is mapped, or null if this map contains no mapping for the key.
|
PersonalAttribute |
getFirst(PersonalAttribute personalAttribute)
Deprecated.
Returns the first value to which the specified key is mapped, or null if this map contains no mapping for the key.
|
int |
hashCode()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Returns true if this map contains no key-value mappings.
|
Iterator<PersonalAttribute> |
iterator()
Deprecated.
|
PersonalAttribute |
removeByFriendlyName(String friendlyName)
Deprecated.
Removes the mapping for this key from this map if present.
|
static eu.eidas.auth.commons.attribute.ImmutableAttributeMap |
retainAttrsExistingInRegistry(IPersonalAttributeList copy,
AttributeRegistry... attributeRegistries)
Deprecated.
Static factory method to convert a
PersonalAttributeList into an ImmutableAttributeMap . |
int |
size()
Deprecated.
Get the size of the Personal Attribute List.
|
static com.google.common.collect.ImmutableSet<eu.eidas.auth.commons.attribute.AttributeValue<?>> |
toAttributeValues(eu.eidas.auth.commons.attribute.AttributeDefinition<?> attributeDefinition,
List<String> personalAttributeValues)
Deprecated.
|
String |
toString()
Deprecated.
Use
toString(PersonalAttributeList) instead. |
static String |
toString(PersonalAttributeList personalAttributeList)
Deprecated.
|
Collection<PersonalAttribute> |
values()
Deprecated.
Returns a collection view of the values contained in this map.
|
Collection<PersonalAttribute> |
values(String key)
Deprecated.
Returns all the values to which the specified key is mapped, or null if this map contains no mapping for the key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PersonalAttributeList()
public PersonalAttributeList(int capacity)
capacity
- The initial capacity for the PersonalAttributeList.@Nonnull public static PersonalAttributeList copyOf(@Nonnull IPersonalAttributeList copy)
PersonalAttributeList
.
This method is more robust and flexible than implementing Object.clone()
.
copy
- the instance to copy@Nonnull public static PersonalAttributeList copyOf(@Nonnull eu.eidas.auth.commons.attribute.ImmutableAttributeMap copy)
ImmutableAttributeMap
as a PersonalAttributeList
.
copy
- the instance to copy@Nonnull public static eu.eidas.auth.commons.attribute.ImmutableAttributeMap copyOf(@Nonnull IPersonalAttributeList copy, @Nonnull AttributeRegistry... attributeRegistries)
PersonalAttributeList
into an ImmutableAttributeMap
.
copy
- the instance to copyattributeRegistries
- the attribute registriespublic static com.google.common.collect.ImmutableSet<eu.eidas.auth.commons.attribute.AttributeValue<?>> toAttributeValues(eu.eidas.auth.commons.attribute.AttributeDefinition<?> attributeDefinition, List<String> personalAttributeValues)
@Nonnull public static eu.eidas.auth.commons.attribute.ImmutableAttributeMap retainAttrsExistingInRegistry(@Nonnull IPersonalAttributeList copy, @Nonnull AttributeRegistry... attributeRegistries)
PersonalAttributeList
into an ImmutableAttributeMap
. Only retains/copies the attributes where an
attributeDefinition is found in the attributeRegistry
copy
- the instance to copyattributeRegistries
- the attribute registry where the attributes from copy are searched for@Nullable public static PersonalAttributeList fromString(@Nullable String personalAttributeListString)
@Nullable public static String toString(@Nullable PersonalAttributeList personalAttributeList)
@Nonnull public Iterator<PersonalAttribute> iterator()
iterator
in interface Iterable<PersonalAttribute>
@Nullable public PersonalAttribute getByFriendlyName(@Nonnull String friendlyName)
getByFriendlyName
in interface IPersonalAttributeList
friendlyName
- whose associated value is to be returned.PersonalAttribute
@Nullable public Collection<PersonalAttribute> values(@Nullable String key)
values
in interface IPersonalAttributeList
key
- whose associated value is to be returned.PersonalAttribute
public boolean add(@Nullable PersonalAttribute value)
add
in interface IPersonalAttributeList
value
- PersonalAttribute to add to the PersonalAttributeListpublic int size()
IPersonalAttributeList
size
in interface IPersonalAttributeList
public boolean containsFriendlyName(String friendlyName)
IPersonalAttributeList
containsFriendlyName
in interface IPersonalAttributeList
friendlyName
- with which the specified value is to be associated.public PersonalAttribute getFirst(PersonalAttribute personalAttribute)
IPersonalAttributeList
getFirst
in interface IPersonalAttributeList
personalAttribute
- whose associated value is to be returned.PersonalAttribute
public boolean contains(PersonalAttribute personalAttribute)
IPersonalAttributeList
contains
in interface IPersonalAttributeList
personalAttribute
- the personalAttribute to check.@Nullable public PersonalAttribute removeByFriendlyName(@Nonnull String friendlyName)
IPersonalAttributeList
removeByFriendlyName
in interface IPersonalAttributeList
friendlyName
- key whose mapping is to be removed from the map.public Collection<PersonalAttribute> values()
IPersonalAttributeList
values
in interface IPersonalAttributeList
public boolean isEmpty()
IPersonalAttributeList
isEmpty
in interface IPersonalAttributeList
@Nonnull public String toString()
toString(PersonalAttributeList)
instead.Copyright © 2020. All Rights Reserved.