@Test public void getFlagType() { for (final ConfigurationFlagTypeDto flagTypeDto : ConfigurationFlagTypeDto.values()) { flagTypeDto.getBitPositionDsmr4() .ifPresent(bitPosition -> assertThat( this.instance.getFlagType(bitPosition).orElseThrow(IllegalArgumentException::new)) .isEqualTo(flagTypeDto)); } }
@Override Optional<ConfigurationFlagTypeDto> getFlagType(final int bitPosition) { return ConfigurationFlagTypeDto.getDsmr4FlagType(bitPosition); }
GetConfigurationObjectServiceDsmr4 extends GetConfigurationObjectService { @Override Optional<ConfigurationFlagTypeDto> getFlagType(final int bitPosition) { return ConfigurationFlagTypeDto.getDsmr4FlagType(bitPosition); } }
GetConfigurationObjectServiceDsmr4 extends GetConfigurationObjectService { @Override Optional<ConfigurationFlagTypeDto> getFlagType(final int bitPosition) { return ConfigurationFlagTypeDto.getDsmr4FlagType(bitPosition); } GetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); }
GetConfigurationObjectServiceDsmr4 extends GetConfigurationObjectService { @Override Optional<ConfigurationFlagTypeDto> getFlagType(final int bitPosition) { return ConfigurationFlagTypeDto.getDsmr4FlagType(bitPosition); } GetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol); }
GetConfigurationObjectServiceDsmr4 extends GetConfigurationObjectService { @Override Optional<ConfigurationFlagTypeDto> getFlagType(final int bitPosition) { return ConfigurationFlagTypeDto.getDsmr4FlagType(bitPosition); } GetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol);  }