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