Class Qualifiers
java.lang.Object
org.microbean.assign.Qualifiers
-
Method Summary
Modifier and TypeMethodDescriptionstatic final List
<NamedAttributeMap<?>> Returns an unmodifiableList
consisting solely of the any qualifier and the default qualifier.static final NamedAttributeMap
<?> Returns the any qualifier.static final boolean
anyQualifier
(NamedAttributeMap<?> nam) static final List
<NamedAttributeMap<?>> Returns an immutableList
consisting solely of the any qualifier.static final NamedAttributeMap
<?> Returns the default qualifier.static final boolean
defaultQualifier
(NamedAttributeMap<?> nam) static final List
<NamedAttributeMap<?>> Returns an immutableList
consisting solely of the default qualifier.static final List
<NamedAttributeMap<?>> normalize
(List<NamedAttributeMap<?>> list) static final NamedAttributeMap
<?> normalize
(NamedAttributeMap<?> nam) static final NamedAttributeMap
<?> Returns the qualifier (meta-) qualifier.static final boolean
qualifier
(NamedAttributeMap<?> q) Returnstrue
if and only if the suppliedNamedAttributeMap
is itself aNamedAttributeMap
that can be used to designate otherNamedAttributeMap
s as qualifiers, or aNamedAttributeMap
so designated.static final List
<NamedAttributeMap<?>> qualifiers
(Collection<? extends NamedAttributeMap<?>> c) Returns an unmodifiableList
consisting only of thoseNamedAttributeMap
s in the suppliedCollection
that are qualifiers.
-
Method Details
-
anyQualifier
Returns the any qualifier.- Returns:
- the any qualifier; never
null
- See Also:
-
anyQualifier
- Parameters:
nam
- aNamedAttributeMap
; must not benull
- Returns:
true
if and only if the suppliedNamedAttributeMap
is equal to the default qualifier- Throws:
NullPointerException
- ifnam
isnull
-
anyQualifiers
-
anyAndDefaultQualifiers
-
defaultQualifier
Returns the default qualifier.- Returns:
- the default qualifier; never
null
- See Also:
-
defaultQualifier
- Parameters:
nam
- aNamedAttributeMap
; must not benull
- Returns:
true
if and only if the suppliedNamedAttributeMap
is equal to the default qualifier- Throws:
NullPointerException
- ifnam
isnull
-
defaultQualifiers
-
qualifier
Returns the qualifier (meta-) qualifier.- Returns:
- the qualifier (meta-) qualifier; never
null
-
qualifier
Returnstrue
if and only if the suppliedNamedAttributeMap
is itself aNamedAttributeMap
that can be used to designate otherNamedAttributeMap
s as qualifiers, or aNamedAttributeMap
so designated.A
NamedAttributeMap
whose name isQualifier
and whose metadata is empty is an example of the former.A
NamedAttributeMap
whose metadata contains aNamedAttributeMap
whose name isQualifier
is an example of the latter.- Parameters:
q
- aNamedAttributeMap
; must not benull
- Returns:
true
if and only if the suppliedNamedAttributeMap
is itself aNamedAttributeMap
that can be used to designate otherNamedAttributeMap
s as qualifiers, or aNamedAttributeMap
so designated- Throws:
NullPointerException
- ifnam
isnull
- See Also:
-
qualifiers
public static final List<NamedAttributeMap<?>> qualifiers(Collection<? extends NamedAttributeMap<?>> c) Returns an unmodifiableList
consisting only of thoseNamedAttributeMap
s in the suppliedCollection
that are qualifiers.- Parameters:
c
- aCollection
ofNamedAttributeMap
s; must not benull
- Returns:
- an unmodifiable
List
consisting only of thoseNamedAttributeMap
s in the suppliedCollection
that are qualifiers; nevernull
- Throws:
NullPointerException
- ifc
isnull
-
normalize
Returns aNamedAttributeMap
that is equal to the suppliedNamedAttributeMap
.The returned
NamedAttributeMap
may be the suppliedNamedAttributeMap
or a different instance.- Parameters:
nam
- aNamedAttributeMap
; must not benull
- Returns:
- a
NamedAttributeMap
that is equal to the suppliedNamedAttributeMap
; nevernull
- Throws:
NullPointerException
- ifnam
isnull
-
normalize
Returns an immutableList
ofNamedAttributeMap
s that is equal to the suppliedList
.The returned
List
may be the suppliedList
or a different instance.- Parameters:
list
- aList
ofNamedAttributeMap
s; must not benull
- Returns:
- an immutable
List
ofNamedAttributeMap
s that is equal to the suppliedList
; nevernull
- Throws:
NullPointerException
- iflist
isnull
-