Class TimeZoneTranslatorFactory
java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<TimeZone,String>
com.googlecode.objectify.impl.translate.TimeZoneTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory<TimeZone,String>
public class TimeZoneTranslatorFactory extends ValueTranslatorFactory<TimeZone,String>
Converts java.util.TimeZone
- Author:
- Jeff Schnitzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueTranslator<TimeZone,String>
createValueTranslator(TypeKey<TimeZone> tk, CreateContext ctx, Path path)
Create a translator, knowing that we have the appropriate type.Methods inherited from class com.googlecode.objectify.impl.translate.ValueTranslatorFactory
create
-
Constructor Details
-
TimeZoneTranslatorFactory
public TimeZoneTranslatorFactory()
-
-
Method Details
-
createValueTranslator
protected ValueTranslator<TimeZone,String> createValueTranslator(TypeKey<TimeZone> tk, CreateContext ctx, Path path)Description copied from class:ValueTranslatorFactory
Create a translator, knowing that we have the appropriate type. You don't need to check for type matching.- Specified by:
createValueTranslator
in classValueTranslatorFactory<TimeZone,String>
- Parameters:
tk
- type is guaranteed to erase to something assignable to Class
-