me.prettyprint.cassandra.serializers
Class SerializerTypeInferer

java.lang.Object
  extended by me.prettyprint.cassandra.serializers.SerializerTypeInferer

public class SerializerTypeInferer
extends Object

Utility class that infers the concrete Serializer needed to turn a value into its binary representation

Author:
Bozhidar Bozhanov

Constructor Summary
SerializerTypeInferer()
           
 
Method Summary
static
<T> Serializer<T>
getSerializer(Class<?> valueClass)
           
static
<T> Serializer<T>
getSerializer(Object value)
           
static boolean isImplementedBy(Class<?> clazz, Class<?> target)
           
static boolean isSerializable(Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerTypeInferer

public SerializerTypeInferer()
Method Detail

getSerializer

public static <T> Serializer<T> getSerializer(Object value)

getSerializer

public static <T> Serializer<T> getSerializer(Class<?> valueClass)

isSerializable

public static boolean isSerializable(Class<?> clazz)

isImplementedBy

public static boolean isImplementedBy(Class<?> clazz,
                                      Class<?> target)


Copyright © 2012. All Rights Reserved.