Class PositionChartDTOConverter
java.lang.Object
com.bluebell.greenhouse.planter.converters.AbstractGenericDTOConverter<ApexChartData, PositionChartDTO>
com.bluebell.greenhouse.planter.converters.chart.PositionChartDTOConverter
- All Implemented Interfaces:
GenericDTOConverter<ApexChartData, PositionChartDTO>
@Component("positionChartDTOConverter")
public class PositionChartDTOConverter
extends AbstractGenericDTOConverter<ApexChartData, PositionChartDTO>
Converts
ApexChartData into PositionChartDTOs.- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionChartDTOConverter(SymbolAliasDTOConverter symbolAliasDTOConverter) Constructs the converter with the required alias converter. -
Method Summary
Modifier and TypeMethodDescriptionprotected PositionChartDTOconvertNonNull(ApexChartData entity) Converts anApexChartDatapayload into aPositionChartDTO.protected PositionChartDTOCreates the empty DTO returned for a null source.Methods inherited from class AbstractGenericDTOConverter
afterConvert, convertMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GenericDTOConverter
convertAll
-
Constructor Details
-
PositionChartDTOConverter
Constructs the converter with the required alias converter.- Parameters:
symbolAliasDTOConverter-SymbolAliasDTOConverter
-
-
Method Details
-
convertNonNull
Converts anApexChartDatapayload into aPositionChartDTO.- Specified by:
convertNonNullin classAbstractGenericDTOConverter<ApexChartData, PositionChartDTO>- Parameters:
entity-ApexChartData- Returns:
PositionChartDTO
-
createEmptyDTO
Creates the empty DTO returned for a null source.- Specified by:
createEmptyDTOin classAbstractGenericDTOConverter<ApexChartData, PositionChartDTO>- Returns:
- empty DTO
-