Class FloatTranslatorFactory

java.lang.Object
com.googlecode.objectify.impl.translate.FloatTranslatorFactory
All Implemented Interfaces:
TranslatorFactory<Number,Double>

public class FloatTranslatorFactory extends Object implements TranslatorFactory<Number,Double>

Floats are funky in the datastore. You can save numbers of any size, but they always retrieve as Double. For the hell of it, we also handle String in the datastore by trying to parse it.

Not a ValueTranslatorFactory because Numbers are not assignable to primitives. Java lame.

Author:
Jeff Schnitzer <[email protected]>
  • Constructor Details

    • FloatTranslatorFactory

      public FloatTranslatorFactory()
  • Method Details