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