Class SolrValueFormatUtils
java.lang.Object
de.hybris.platform.solrfacetsearch.solr.impl.SolrValueFormatUtils
Provides methods for Solr value formatting.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormat a value according to the given value class.static StringformatBigDecimal(String value) Formats the value usingBigDecimalas value type.static StringformatBigInteger(String value) Formats the value usingBigIntegeras value type.static StringformatBoolean(String value) Formats the value usingBooleanas value type.static StringformatDate(String value) Formats the value usingDateas value type.static StringformatDouble(String value) Formats the value usingDoubleas value type.static StringformatFloat(String value) Formats the value usingFloatas value type.static StringformatInteger(String value) Formats the value usingIntegeras value type.static StringformatLong(String value) Formats the value usingLongas value type.static StringformatShort(String value) Formats the value usingShortas value type.static StringformatString(String value) Formats the value usingStringas value type.protected static StringgenerateKey(Class<?> valueClass)
-
Method Details
-
generateKey
-
format
Format a value according to the given value class.- Parameters:
value- - the valuevalueClass- - the value class- Returns:
- the formatted value
-
formatString
Formats the value usingStringas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatBoolean
Formats the value usingBooleanas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatShort
Formats the value usingShortas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatInteger
Formats the value usingIntegeras value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatLong
Formats the value usingLongas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatFloat
Formats the value usingFloatas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatDouble
Formats the value usingDoubleas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatBigInteger
Formats the value usingBigIntegeras value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatBigDecimal
Formats the value usingBigDecimalas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-
formatDate
Formats the value usingDateas value type.- Parameters:
value- - the value to format- Returns:
- the formatted value
-