Class ConversionProcessorFactory

java.lang.Object
com.expediagroup.beans.conversion.processor.ConversionProcessorFactory

public final class ConversionProcessorFactory
extends java.lang.Object
Creates a ConversionProcessor instance for the given class.
  • Constructor Summary

    Constructors
    Constructor Description
    ConversionProcessorFactory()  
  • Method Summary

    Modifier and Type Method Description
    static java.util.Optional<ConversionProcessor> getConversionProcessor​(java.lang.Class<?> clazz)
    Returns a conversion processor for the given type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConversionProcessorFactory

      public ConversionProcessorFactory()
  • Method Details

    • getConversionProcessor

      public static java.util.Optional<ConversionProcessor> getConversionProcessor​(java.lang.Class<?> clazz)
      Returns a conversion processor for the given type.
      Parameters:
      clazz - the class for which the conversion processor has to be retrieved.
      Returns:
      a conversion processor for the given type wrapped into Optional