public final class Preference<T extends Metadata>
extends java.lang.Object
Constructor and Description |
---|
Preference()
Constructor.
|
Preference(T metadata)
Constructor.
|
Preference(T metadata,
float quality)
Constructor.
|
Preference(T metadata,
float quality,
Series<Parameter> parameters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
getMetadata()
Returns the metadata associated with this preference.
|
Series<Parameter> |
getParameters()
Returns the modifiable list of parameters.
|
float |
getQuality()
Returns the quality/preference level.
|
void |
setMetadata(T metadata)
Sets the metadata associated with this preference.
|
void |
setParameters(Series<Parameter> parameters)
Sets the modifiable list of parameters.
|
void |
setQuality(float quality)
Sets the quality/preference level.
|
java.lang.String |
toString() |
public Preference()
public Preference(T metadata)
metadata
- The associated metadata.public Preference(T metadata, float quality)
metadata
- The associated metadata.quality
- The quality/preference level.public T getMetadata()
public Series<Parameter> getParameters()
public float getQuality()
public void setMetadata(T metadata)
metadata
- The metadata associated with this preference.public void setParameters(Series<Parameter> parameters)
parameters
- The modifiable list of parameters.public void setQuality(float quality)
quality
- The quality/preference level.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.