@Test public void getBitPosition() { for (final ConfigurationFlagTypeDto flagTypeDto : ConfigurationFlagTypeDto.values()) { flagTypeDto.getBitPositionDsmr4() .ifPresent(bitPosition -> assertThat( this.instance.getBitPosition(flagTypeDto).orElseThrow(IllegalArgumentException::new)) .isEqualTo(bitPosition)); } }
@Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionDsmr4(); }
SetConfigurationObjectServiceDsmr4 extends SetConfigurationObjectService { @Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionDsmr4(); } }
SetConfigurationObjectServiceDsmr4 extends SetConfigurationObjectService { @Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionDsmr4(); } SetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); }
SetConfigurationObjectServiceDsmr4 extends SetConfigurationObjectService { @Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionDsmr4(); } SetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol); }
SetConfigurationObjectServiceDsmr4 extends SetConfigurationObjectService { @Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionDsmr4(); } SetConfigurationObjectServiceDsmr4(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol);  }