Class URLTranslatorFactory
java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<URL,String>
com.googlecode.objectify.impl.translate.URLTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory<URL,String>
public class URLTranslatorFactory extends ValueTranslatorFactory<URL,String>
The datastore can't store URL, so translate it to a String and back.
- Author:
- Jeff Schnitzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueTranslator<URL,String>
createValueTranslator(TypeKey<URL> 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
-
URLTranslatorFactory
public URLTranslatorFactory()
-
-
Method Details
-
createValueTranslator
protected ValueTranslator<URL,String> createValueTranslator(TypeKey<URL> 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<URL,String>
- Parameters:
tk
- type is guaranteed to erase to something assignable to Class
-