Class TravellerQuantityConverter

java.lang.Object
ma.glasnost.orika.CustomConverter<PassengerTypeQuantityData,TravellerQuantity>
de.hybris.platform.coretravelcommonsocc.mapping.converters.TravellerQuantityConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<PassengerTypeQuantityData,TravellerQuantity>, ma.glasnost.orika.MappedTypePair<PassengerTypeQuantityData,TravellerQuantity>

public class TravellerQuantityConverter extends ma.glasnost.orika.CustomConverter<PassengerTypeQuantityData,TravellerQuantity>
Converter to convert the PassengerTypeQuantityData from TravellerQuantity.
  • Field Summary

    Fields inherited from class ma.glasnost.orika.CustomConverter

    destinationType, mapperFacade, sourceType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(PassengerTypeQuantityData passengerTypeQuantityData, ma.glasnost.orika.metadata.Type<? extends TravellerQuantity> type, ma.glasnost.orika.MappingContext mappingContext)
    Converts the passenger type quantity data into a traveller quantity dto.

    Methods inherited from class ma.glasnost.orika.CustomConverter

    canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TravellerQuantityConverter

      public TravellerQuantityConverter()
  • Method Details

    • convert

      public TravellerQuantity convert(PassengerTypeQuantityData passengerTypeQuantityData, ma.glasnost.orika.metadata.Type<? extends TravellerQuantity> type, ma.glasnost.orika.MappingContext mappingContext)
      Converts the passenger type quantity data into a traveller quantity dto.
      Parameters:
      passengerTypeQuantityData - the passengerTypeQuantityData
      type - the destination type of the conversion
      mappingContext - the mapping context
      Returns:
      the TravellerQuantity