Package org.opencms.configuration
Class CmsParameterStore.WeightedValue
- java.lang.Object
-
- org.opencms.configuration.CmsParameterStore.WeightedValue
-
- Enclosing class:
- CmsParameterStore
public static class CmsParameterStore.WeightedValue extends java.lang.Object
An individual weighted parameter value, with a 'source' attribute for better debuggability.
-
-
Constructor Summary
Constructors Constructor Description WeightedValue(java.lang.String value, double weight, java.lang.String source)Creates a new weighted value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSource()Gets the source of the value (for debugging).java.lang.StringgetValue()Gets the value.doublegetWeight()Gets the weight of the value.
-
-
-
Constructor Detail
-
WeightedValue
public WeightedValue(java.lang.String value, double weight, java.lang.String source)
Creates a new weighted value.- Parameters:
value- the actual valueweight- the weightsource- the source
-
-
Method Detail
-
getSource
public java.lang.String getSource()
Gets the source of the value (for debugging).- Returns:
- the source of the value
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- value
-
getWeight
public double getWeight()
Gets the weight of the value.- Returns:
- the weight of the value
-
-