Class DefaultValueRangePopulator

java.lang.Object
de.hybris.platform.solrfacetsearch.converters.populator.DefaultValueRangePopulator
All Implemented Interfaces:
Populator<SolrValueRangeModel,ValueRange>

public class DefaultValueRangePopulator extends Object implements Populator<SolrValueRangeModel,ValueRange>
Populates Name and From and To values of a ValueRange. The type of the From and To values is determined by the GeneratedSolrValueRangeSet.getType() value.
  • Constructor Details

    • DefaultValueRangePopulator

      public DefaultValueRangePopulator()
  • Method Details

    • populate

      public void populate(SolrValueRangeModel source, ValueRange target)
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<SolrValueRangeModel,ValueRange>
      Parameters:
      source - the source object
      target - the target to fill
    • populateComparableFromString

      protected Comparable populateComparableFromString(String type, String value)
    • parseDate

      protected Comparable parseDate(String value)
      Tries to parse string date to Date object. In case of parsing exception a new Date(0); is returned.