package me.prettyprint.hom.converters; import me.prettyprint.hom.PropertyMappingDefinition; /** * Interface defining a custom object mapper conversion. For instance, from an * enum to a string. * * @author Todd Burruss */ public interface Converter<T> { /** * Convert Cassandra byte[] to Java type. * * @param clazz * @param value * @return Type of object */ T convertCassTypeToObjType(PropertyMappingDefinition md, byte[] value); /** * Convert Java type to byte[]. * * @param value * @return Type of object converted to byte[] */ byte[] convertObjTypeToCassType(T value); }