Class TypeUtils

java.lang.Object
com.aerospike.mapper.tools.utils.TypeUtils

public class TypeUtils extends Object
  • Method Details

    • addTypeMapper

      public static TypeMapper addTypeMapper(Class<?> clazz, TypeMapper mapper)
      This method adds a new type mapper into the system. This type mapper will replace any other mappers registered for the same class. If there was another mapper for the same type already registered, the old mapper will be replaced with this mapper and the old mapper returned.
      Parameters:
      clazz - The class to register for the new type mapper.
      mapper - The new type mapper to create.
      Returns:
      Return existing mapper registered for the requested class, null in case there isn't one.
    • getMapper

      public static TypeMapper getMapper(Class<?> clazz, TypeUtils.AnnotatedType type, IBaseAeroMapper mapper)
    • isByteType

      public static boolean isByteType(Class<?> clazz)
    • isVoidType

      public static boolean isVoidType(Class<?> clazz)
    • isAerospikeNativeType

      public static boolean isAerospikeNativeType(Class<?> clazz)
    • clear

      public static void clear()
    • returnTypeToListReturnType

      public static int returnTypeToListReturnType(ReturnType returnType)
    • returnTypeToMapReturnType

      public static int returnTypeToMapReturnType(ReturnType returnType)