Class OptionalTypeConverter

java.lang.Object
com.blazebit.persistence.view.processor.convert.OptionalTypeConverter
All Implemented Interfaces:
TypeConverter

public class OptionalTypeConverter extends Object implements TypeConverter
Since:
1.6.0
Author:
Christian Beikov
  • Constructor Details

    • OptionalTypeConverter

      public OptionalTypeConverter()
  • Method Details

    • addRegistrations

      public void addRegistrations(Map<String,Map<String,TypeConverter>> converters)
      Description copied from interface: TypeConverter
      Add the converter registrations for this converter.
      Specified by:
      addRegistrations in interface TypeConverter
      Parameters:
      converters - The map to register to
    • getUnderlyingType

      public String getUnderlyingType(DeclaredType owningType, TypeMirror declaredTypeMirror, Context context)
      Description copied from interface: TypeConverter
      Extract the underlying type from the declared type. The owning class is the concrete entity view class which contains a field or method of the declared type.
      Specified by:
      getUnderlyingType in interface TypeConverter
      Parameters:
      owningType - The class owning the declared type
      declaredTypeMirror - The declared type as present in the entity view model
      context - The annotation processor context
      Returns:
      The actual underlying type