Class AbstractTypeHandler<T>

java.lang.Object
pro.cyberyon.mojet.types.AbstractTypeHandler<T>
Type Parameters:
T - type of pojo record
All Implemented Interfaces:
TypeHandler<T>

public abstract class AbstractTypeHandler<T> extends Object implements TypeHandler<T>
partial implementation to every concret TypeHandler.
Author:
Guillaume CHAUVET
  • Constructor Details

    • AbstractTypeHandler

      public AbstractTypeHandler()
  • Method Details

    • accept

      public final boolean accept(Class<?> type)
      Description copied from interface: TypeHandler
      Check if we can handle the data type
      Specified by:
      accept in interface TypeHandler<T>
      Parameters:
      type - to check
      Returns:
      true if handlable
    • isAccept

      protected abstract boolean isAccept(Class<?> type)
      Check type of field (or nested type array)
      Parameters:
      type - non primitive class type to check
      Returns:
      positive if accepted