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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComparableTries to parse string date to Date object.voidpopulate(SolrValueRangeModel source, ValueRange target) Populate the target instance with values from the source instance.protected ComparablepopulateComparableFromString(String type, String value)
-
Constructor Details
-
DefaultValueRangePopulator
public DefaultValueRangePopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SolrValueRangeModel,ValueRange> - Parameters:
source- the source objecttarget- the target to fill
-
populateComparableFromString
-
parseDate
Tries to parse string date to Date object. In case of parsing exception a new Date(0); is returned.
-