public class VariantInfo extends Variant
Constructor and Description |
---|
VariantInfo(MediaType mediaType)
Constructor.
|
VariantInfo(MediaType mediaType,
MethodAnnotationInfo annotationInfo)
Constructor.
|
VariantInfo(Variant variant,
MethodAnnotationInfo annotationInfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Indicates if the current variant is equal to the given variant.
|
MethodAnnotationInfo |
getAnnotationInfo()
Returns the optional annotation descriptor.
|
float |
getInputScore()
Returns the affinity between this variant and an incoming representation.
|
int |
hashCode() |
void |
setInputScore(float inputScore)
Sets the affinity between this variant and an incoming representation.
|
createClientInfo, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public VariantInfo(MediaType mediaType)
mediaType
- The media type.public VariantInfo(MediaType mediaType, MethodAnnotationInfo annotationInfo)
mediaType
- The media type.annotationInfo
- The optional annotation descriptor.public VariantInfo(Variant variant, MethodAnnotationInfo annotationInfo)
variant
- The variant to enrich.annotationInfo
- The optional annotation descriptor.public boolean equals(java.lang.Object other)
public MethodAnnotationInfo getAnnotationInfo()
public float getInputScore()
public void setInputScore(float inputScore)
inputScore
- The affinity between this variant and an incoming
representation.Copyright © 2005-2020 Restlet.