java.lang.Object
org.microbean.qualifier.Binding<V,Qualifier<V>>
org.microbean.qualifier.Qualifier<V>
- Type Parameters:
V
- the type of aQualifier
's value and of its attribute values
- All Implemented Interfaces:
Comparable<Qualifier<V>>
,Constable
A
Binding
used to qualify objects.
This is a value-based class.
- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected final MethodHandleDesc
Returns aMethodHandleDesc
describing the constructor orstatic
method that will be used to create a dynamic constant representing thisQualifier
.static final <V> Qualifier<V>
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.static final <V> Qualifier<V>
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.static final <V> Qualifier<V>
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.static final <V> Qualifier<V>
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.Methods inherited from class org.microbean.qualifier.Binding
attributes, compareTo, describeConstable, equals, hashCode, info, name, toString, value
-
Method Details
-
describeConstructor
Returns aMethodHandleDesc
describing the constructor orstatic
method that will be used to create a dynamic constant representing thisQualifier
.End users have no need to call this method.
- Overrides:
describeConstructor
in classBinding<V,
Qualifier<V>> - Returns:
- a
MethodHandleDesc
describing the constructor orstatic
method that will be used to create a dynamic constant representing thisQualifier
- Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method does not return
null
. - Thread Safety:
- This method is safe for concurrent use by multiple threads.
-
of
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.- Type Parameters:
V
- the type of theQualifier
's value and of its attribute values- Parameters:
name
- theQualifier
's name; must not benull
- Returns:
- a
Qualifier
- Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null
. - Thread Safety:
- This method is safe for concurrent use by multiple threads.
-
of
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.- Type Parameters:
V
- the type of theQualifier
's value and of its attribute values- Parameters:
name
- theQualifier
's name; must not benull
value
- theQualifier
's value; may benull
- Returns:
- a
Qualifier
- Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null
. - Thread Safety:
- This method is safe for concurrent use by multiple threads.
-
of
Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.- Type Parameters:
V
- the type of theQualifier
's value and of its attribute values- Parameters:
name
- theQualifier
's name; must not benull
value
- theQualifier
's value; may benull
attributes
- theQualifier
's attributes; may benull
- Returns:
- a
Qualifier
- Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null
. - Thread Safety:
- This method is safe for concurrent use by multiple threads.
-
of
public static final <V> Qualifier<V> of(String name, V value, Map<? extends String, ?> attributes, Map<? extends String, ?> info) Returns aQualifier
, which may or may not be newly created, representing the supplied arguments.- Type Parameters:
V
- the type of theQualifier
's value and of its attribute values- Parameters:
name
- theQualifier
's name; must not benull
value
- theQualifier
's value; may benull
attributes
- theQualifier
's attributes; may benull
info
- theQualifier
's informational attributes; may benull
- Returns:
- a
Qualifier
- Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null
. - Thread Safety:
- This method is safe for concurrent use by multiple threads.
-