1 | package org.cardanofoundation.explorer.api.mapper; | |
2 | ||
3 | import java.sql.Date; | |
4 | import javax.annotation.processing.Generated; | |
5 | import org.cardanofoundation.explorer.api.model.response.drep.DRepCertificateHistoryResponse; | |
6 | import org.cardanofoundation.explorer.api.model.response.drep.projection.DRepCertificateProjection; | |
7 | import org.springframework.stereotype.Component; | |
8 | ||
9 | @Generated( | |
10 | value = "org.mapstruct.ap.MappingProcessor", | |
11 | date = "2024-11-05T06:00:27+0000", | |
12 | comments = "version: 1.5.3.Final, compiler: javac, environment: Java 18.0.2.1 (Eclipse Adoptium)" | |
13 | ) | |
14 | @Component | |
15 | public class DRepCertificateMapperImpl implements DRepCertificateMapper { | |
16 | ||
17 | @Override | |
18 | public DRepCertificateHistoryResponse fromDRepCertProjection(DRepCertificateProjection dRepCertificateProjection) { | |
19 |
1
1. fromDRepCertProjection : negated conditional → KILLED |
if ( dRepCertificateProjection == null ) { |
20 | return null; | |
21 | } | |
22 | ||
23 | DRepCertificateHistoryResponse.DRepCertificateHistoryResponseBuilder<?, ?> dRepCertificateHistoryResponse = DRepCertificateHistoryResponse.builder(); | |
24 | ||
25 |
1
1. fromDRepCertProjection : negated conditional → SURVIVED |
if ( dRepCertificateProjection.getBlockTime() != null ) { |
26 | dRepCertificateHistoryResponse.createdAt( new Date( fromLong( dRepCertificateProjection.getBlockTime() ).getTime() ) ); | |
27 | } | |
28 | dRepCertificateHistoryResponse.txHash( dRepCertificateProjection.getTxHash() ); | |
29 | dRepCertificateHistoryResponse.txIndex( dRepCertificateProjection.getTxIndex() ); | |
30 | dRepCertificateHistoryResponse.type( dRepCertificateProjection.getType() ); | |
31 | dRepCertificateHistoryResponse.blockNo( dRepCertificateProjection.getBlockNo() ); | |
32 | dRepCertificateHistoryResponse.slotNo( dRepCertificateProjection.getSlotNo() ); | |
33 | dRepCertificateHistoryResponse.epochNo( dRepCertificateProjection.getEpochNo() ); | |
34 | dRepCertificateHistoryResponse.absoluteSlot( dRepCertificateProjection.getAbsoluteSlot() ); | |
35 | ||
36 |
1
1. fromDRepCertProjection : replaced return value with null for org/cardanofoundation/explorer/api/mapper/DRepCertificateMapperImpl::fromDRepCertProjection → KILLED |
return dRepCertificateHistoryResponse.build(); |
37 | } | |
38 | } | |
Mutations | ||
19 |
1.1 |
|
25 |
1.1 |
|
36 |
1.1 |