Class Qualifiers
java.lang.Object
org.microbean.assign.Qualifiers
org.microbean.bean.Qualifiers
- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiableListconsisting solely of the unattributed any qualifier and the default qualifier.Returns the unattributed any qualifier.booleanReturns an immutableListconsisting solely of the unattributed any qualifier.Returns the default qualifier.booleanReturns an immutableListconsisting solely of the default qualifier.normalize(List<Attributes> list) Returns the primordial qualifier.booleanReturns an immutableListconsisting solely of the primordial qualifier.qualifiers(Collection<? extends Attributes> c) Returns an unmodifiableListconsisting only of thoseAttributesin the suppliedCollectionthat are qualifiers.Methods inherited from class Qualifiers
qualifier, qualifier, qualifiers
-
Constructor Details
-
Qualifiers
public Qualifiers()Creates a newQualifiers.
-
-
Method Details
-
anyAndDefaultQualifiers
-
anyQualifier
Returns the unattributed any qualifier.- Returns:
- the any qualifier; never
null - See Also:
-
anyQualifier
- Parameters:
a- anAttributes; must not benull- Returns:
trueif and only if the suppliedAttributesis equal to the unattributed any qualifier- Throws:
NullPointerException- ifaisnull
-
anyQualifiers
-
defaultQualifier
Returns the default qualifier.- Returns:
- the default qualifier; never
null - See Also:
-
defaultQualifier
- Parameters:
a- anAttributes; must not benull- Returns:
trueif and only if the suppliedAttributesis equal to the default qualifier- Throws:
NullPointerException- ifaisnull
-
defaultQualifiers
-
normalize
Returns anAttributesthat is equal to the suppliedAttributes.The returned
Attributesmay be the suppliedAttributesor a different instance.- Overrides:
normalizein classQualifiers- Parameters:
a- anAttributes; must not benull- Returns:
- an
Attributesthat is equal to the suppliedAttributes; nevernull - Throws:
NullPointerException- ifaisnull
-
normalize
Returns an immutableListofAttributess that is equal to the suppliedList.The returned
Listmay be the suppliedListor a different instance.- Overrides:
normalizein classQualifiers- Parameters:
list- aListofAttributess; must not benull- Returns:
- an immutable
ListofAttributess that is equal to the suppliedList; nevernull - Throws:
NullPointerException- iflistisnull
-
primordialQualifier
Returns the primordial qualifier.- Returns:
- the primordial qualifier; never
null - See Also:
-
primordialQualifier
- Parameters:
a- anAttributes; must not benull- Returns:
trueif and only if the suppliedAttributesis equal to the primordial qualifier- Throws:
NullPointerException- ifaisnull
-
primordialQualifiers
-
qualifiers
Returns an unmodifiableListconsisting only of thoseAttributesin the suppliedCollectionthat are qualifiers.- Overrides:
qualifiersin classQualifiers- Parameters:
c- aCollectionofAttributess; must not benull- Returns:
- an unmodifiable
Listconsisting only of thoseAttributess in the suppliedCollectionthat are qualifiers; nevernull - Throws:
NullPointerException- ifcisnull
-