Class TuaQuantityConverter

java.lang.Object
ma.glasnost.orika.CustomConverter<Object,Object>
ma.glasnost.orika.converter.BidirectionalConverter<Quantity,Long>
de.hybris.platform.tuawebservicesresources.converters.TuaQuantityConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<Object,Object>, ma.glasnost.orika.MappedTypePair<Object,Object>

public class TuaQuantityConverter extends ma.glasnost.orika.converter.BidirectionalConverter<Quantity,Long>
Bidirectional converter between Quantity and Long
Since:
2208
  • Nested Class Summary

    Nested classes/interfaces inherited from class ma.glasnost.orika.converter.BidirectionalConverter

    ma.glasnost.orika.converter.BidirectionalConverter.Reversed<S extends Object,D extends Object>
  • 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
    convertFrom(Long source, ma.glasnost.orika.metadata.Type<Quantity> destinationType, ma.glasnost.orika.MappingContext mappingContext)
     
    convertTo(Quantity source, ma.glasnost.orika.metadata.Type<Long> destinationType, ma.glasnost.orika.MappingContext mappingContext)
     

    Methods inherited from class ma.glasnost.orika.converter.BidirectionalConverter

    canConvert, convert, reverse, toString

    Methods inherited from class ma.glasnost.orika.CustomConverter

    equals, getAType, getBType, hashCode, setMapperFacade

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface ma.glasnost.orika.Converter

    setMapperFacade

    Methods inherited from interface ma.glasnost.orika.MappedTypePair

    getAType, getBType
  • Constructor Details

    • TuaQuantityConverter

      public TuaQuantityConverter()
  • Method Details

    • convertFrom

      public Quantity convertFrom(Long source, ma.glasnost.orika.metadata.Type<Quantity> destinationType, ma.glasnost.orika.MappingContext mappingContext)
      Specified by:
      convertFrom in class ma.glasnost.orika.converter.BidirectionalConverter<Quantity,Long>
    • convertTo

      public Long convertTo(Quantity source, ma.glasnost.orika.metadata.Type<Long> destinationType, ma.glasnost.orika.MappingContext mappingContext)
      Specified by:
      convertTo in class ma.glasnost.orika.converter.BidirectionalConverter<Quantity,Long>