java.lang.Object
io.helidon.common.types.DefaultAnnotationAndValue
io.helidon.pico.api.DefaultQualifierAndValue
- All Implemented Interfaces:
AnnotationAndValue,QualifierAndValue,Comparable<AnnotationAndValue>
public class DefaultQualifierAndValue
extends DefaultAnnotationAndValue
implements QualifierAndValue, Comparable<AnnotationAndValue>
Describes a
Qualifier type annotation associated with a service being provided or dependant upon.
In Pico these are generally determined at compile time to avoid any use of reflection at runtime.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe fluent builder. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor using the builder. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forQualifierAndValue.intcompareTo(AnnotationAndValue other) static QualifierAndValueconvert(AnnotationAndValue annotationAndValue) Converts from anAnnotationAndValueto aQualifierAndValue.static DefaultQualifierAndValueCreates a qualifier.static DefaultQualifierAndValueCreates a qualifier.static DefaultQualifierAndValuecreate(Class<? extends Annotation> qualifierType) Creates a qualifier from an annotation.static DefaultQualifierAndValuecreate(Class<? extends Annotation> qualifierType, String val) Creates a qualifier.static DefaultQualifierAndValueCreates a qualifier.static DefaultQualifierAndValuecreateNamed(String name) Creates aNamedqualifier.Methods inherited from class io.helidon.common.types.DefaultAnnotationAndValue
create, create, equals, findFirst, hashCode, toString, typeName, value, value, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.common.types.AnnotationAndValue
typeName, value, value, valuesMethods inherited from interface io.helidon.pico.api.QualifierAndValue
qualifierTypeName
-
Constructor Details
-
DefaultQualifierAndValue
Constructor using the builder.- Parameters:
b- the builder- See Also:
-
-
Method Details
-
createNamed
Creates aNamedqualifier.- Parameters:
name- the name- Returns:
- named qualifier
-
create
Creates a qualifier from an annotation.- Parameters:
qualifierType- the qualifier type- Returns:
- qualifier
-
create
public static DefaultQualifierAndValue create(Class<? extends Annotation> qualifierType, String val) Creates a qualifier.- Parameters:
qualifierType- the qualifier typeval- the value- Returns:
- qualifier
-
create
Creates a qualifier.- Parameters:
qualifierTypeName- the qualifierval- the value- Returns:
- qualifier
-
create
Creates a qualifier.- Parameters:
qualifierType- the qualifierval- the value- Returns:
- qualifier
-
create
Creates a qualifier.- Parameters:
qualifierType- the qualifiervals- the values- Returns:
- qualifier
-
convert
Converts from anAnnotationAndValueto aQualifierAndValue.- Parameters:
annotationAndValue- the annotation and value- Returns:
- the qualifier and value equivalent
-
compareTo
- Specified by:
compareToin interfaceComparable<AnnotationAndValue>- Overrides:
compareToin classDefaultAnnotationAndValue
-
builder
Creates a builder forQualifierAndValue.- Returns:
- a fluent builder
-