Class CmsParameterStore.WeightedValue

java.lang.Object
org.opencms.configuration.CmsParameterStore.WeightedValue
Enclosing class:
CmsParameterStore

public static class CmsParameterStore.WeightedValue extends Object
An individual weighted parameter value, with a 'source' attribute for better debuggability.
  • Constructor Details

    • WeightedValue

      public WeightedValue(String value, double weight, String source)
      Creates a new weighted value.
      Parameters:
      value - the actual value
      weight - the weight
      source - the source
  • Method Details

    • getSource

      public String getSource()
      Gets the source of the value (for debugging).
      Returns:
      the source of the value
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      value
    • getWeight

      public double getWeight()
      Gets the weight of the value.
      Returns:
      the weight of the value