Class ExchangeDTOConverter
java.lang.Object
com.bluebell.greenhouse.planter.converters.AbstractGenericDTOConverter<Exchange, ExchangeDTO>
com.bluebell.greenhouse.planter.converters.AbstractGenericEntityDTOConverter<Exchange, ExchangeDTO>
com.bluebell.greenhouse.planter.converters.exchange.ExchangeDTOConverter
- All Implemented Interfaces:
GenericDTOConverter<Exchange, ExchangeDTO>
@Component("exchangeDTOConverter")
public class ExchangeDTOConverter
extends AbstractGenericEntityDTOConverter<Exchange, ExchangeDTO>
Converts
Exchanges into ExchangeDTOs.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExchangeDTOconvertNonNull(Exchange entity) Converts anExchangeinto anExchangeDTO.protected ExchangeDTOCreates the empty DTO returned for a null source.Methods inherited from class AbstractGenericEntityDTOConverter
afterConvertMethods inherited from class AbstractGenericDTOConverter
convertMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GenericDTOConverter
convertAll
-
Constructor Details
-
ExchangeDTOConverter
public ExchangeDTOConverter()
-
-
Method Details
-
convertNonNull
Converts anExchangeinto anExchangeDTO.- Specified by:
convertNonNullin classAbstractGenericDTOConverter<Exchange, ExchangeDTO>- Parameters:
entity-Exchange- Returns:
ExchangeDTO
-
createEmptyDTO
Creates the empty DTO returned for a null source.- Specified by:
createEmptyDTOin classAbstractGenericDTOConverter<Exchange, ExchangeDTO>- Returns:
- empty DTO
-