Package org.infinispan.query.impl
Class DefaultTransformer
java.lang.Object
org.infinispan.query.impl.DefaultTransformer
- All Implemented Interfaces:
Transformer
WARNING, slow as a senile dog, uses Java Serialization and base64 encoding to get a String representation of an
Object. It is highly recommended that you provide your own implementation of
Transformer
.- Author:
- Navin Surtani, anistor@redhat.com
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultTransformer
public DefaultTransformer()
-
-
Method Details
-
fromString
Description copied from interface:Transformer
Transforms a String into an Object.- Specified by:
fromString
in interfaceTransformer
- Parameters:
str
- cannot be null- Returns:
- the Object that is encoded in the given String
-
toString
Description copied from interface:Transformer
Transforms an Object into a String.- Specified by:
toString
in interfaceTransformer
- Parameters:
obj
- cannot be null- Returns:
- the String representation of the object
-