org.xcmis.search.lucene.index
Class ExtendedNumberTools

java.lang.Object
  extended by org.xcmis.search.lucene.index.ExtendedNumberTools

public class ExtendedNumberTools
extends Object

Helper class. To convert double and BigDecimal to sorted strings


Constructor Summary
ExtendedNumberTools()
           
 
Method Summary
static String bigDecimalToString(BigDecimal bigDecimal)
          Converts a long to a String suitable for indexing.
static String doubleToString(double doubleVal)
          Converts a long to a String suitable for indexing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedNumberTools

public ExtendedNumberTools()
Method Detail

doubleToString

public static String doubleToString(double doubleVal)
Converts a long to a String suitable for indexing.

Parameters:
doubleVal - double value
Returns:
double as string

bigDecimalToString

public static String bigDecimalToString(BigDecimal bigDecimal)
Converts a long to a String suitable for indexing.

Parameters:
doubleVal - double value
Returns:
double as string


Copyright © 2011 eXo Platform SAS. All Rights Reserved.