Class Qualifiers
java.lang.Object
org.microbean.assign.Qualifiers
-
Method Summary
Modifier and TypeMethodDescriptionstatic final List
<Attributes> Returns an unmodifiableList
consisting solely of the unattributed any qualifier and the default qualifier.static final Attributes
Returns the unattributed any qualifier.static final boolean
static final List
<Attributes> Returns an immutableList
consisting solely of the unattributed any qualifier.static final Attributes
Returns the default qualifier.static final boolean
static final List
<Attributes> Returns an immutableList
consisting solely of the default qualifier.static final List
<Attributes> normalize
(List<Attributes> list) static final Attributes
static final Attributes
Returns the primordial qualifier.static final boolean
static final List
<Attributes> Returns an immutableList
consisting solely of the primordial qualifier.static final Attributes
Returns the qualifier (meta-) qualifier.static final boolean
Returnstrue
if and only if the suppliedAttributes
is anAttributes
that can be used to designate otherAttributes
as qualifiers.static final List
<Attributes> Returns an immutableList
consisting solely of the qualifier (meta-) qualifier.static final List
<Attributes> qualifiers
(Collection<? extends Attributes> c) Returns an unmodifiableList
consisting only of thoseAttributes
in the suppliedCollection
that are qualifiers.
-
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:
true
if and only if the suppliedAttributes
is equal to the unattributed any qualifier- Throws:
NullPointerException
- ifa
isnull
-
anyQualifiers
-
defaultQualifier
Returns the default qualifier.- Returns:
- the default qualifier; never
null
- See Also:
-
defaultQualifier
- Parameters:
a
- anAttributes
; must not benull
- Returns:
true
if and only if the suppliedAttributes
is equal to the default qualifier- Throws:
NullPointerException
- ifa
isnull
-
defaultQualifiers
-
normalize
Returns anAttributes
that is equal to the suppliedAttributes
.The returned
Attributes
may be the suppliedAttributes
or a different instance.- Parameters:
a
- anAttributes
; must not benull
- Returns:
- an
Attributes
that is equal to the suppliedAttributes
; nevernull
- Throws:
NullPointerException
- ifa
isnull
-
normalize
Returns an immutableList
ofAttributes
s that is equal to the suppliedList
.The returned
List
may be the suppliedList
or a different instance.- Parameters:
list
- aList
ofAttributes
s; must not benull
- Returns:
- an immutable
List
ofAttributes
s that is equal to the suppliedList
; nevernull
- Throws:
NullPointerException
- iflist
isnull
-
primordialQualifier
Returns the primordial qualifier.- Returns:
- the primordial qualifier; never
null
- See Also:
-
primordialQualifier
- Parameters:
a
- anAttributes
; must not benull
- Returns:
true
if and only if the suppliedAttributes
is equal to the primordial qualifier- Throws:
NullPointerException
- ifa
isnull
-
primordialQualifiers
-
qualifier
Returns the qualifier (meta-) qualifier.- Returns:
- the qualifier (meta-) qualifier; never
null
-
qualifier
Returnstrue
if and only if the suppliedAttributes
is anAttributes
that can be used to designate otherAttributes
as qualifiers.- Parameters:
q
- anAttributes
; must not benull
- Returns:
true
if and only if the suppliedAttributes
is anAttributes
that can be used to designate otherAttributes
as qualifiers- Throws:
NullPointerException
- ifq
isnull
-
qualifiers
-
qualifiers
Returns an unmodifiableList
consisting only of thoseAttributes
in the suppliedCollection
that are qualifiers.- Parameters:
c
- aCollection
ofAttributes
s; must not benull
- Returns:
- an unmodifiable
List
consisting only of thoseAttributes
s in the suppliedCollection
that are qualifiers; nevernull
- Throws:
NullPointerException
- ifc
isnull
-