test_class.declarator: shardingStrategyConfigurationYamlSwapper = new ShardingStrategyConfigurationYamlSwapper()
test_class.modifier: private final
test_class.original_string: private final ShardingStrategyConfigurationYamlSwapper shardingStrategyConfigurationYamlSwapper = new ShardingStrategyConfigurationYamlSwapper();
test_class.type: ShardingStrategyConfigurationYamlSwapper
test_class.var_name: shardingStrategyConfigurationYamlSwapper
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/strategy/ShardingStrategyConfigurationYamlSwapperTest.java
test_class.identifier: ShardingStrategyConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToYamlWithNone() {
          YamlShardingStrategyConfiguration actual = shardingStrategyConfigurationYamlSwapper.swapToYamlConfiguration(new NoneShardingStrategyConfiguration());
          assertNull(actual.getStandard());
          assertNull(actual.getComplex());
          assertNull(actual.getHint());
          assertThat(actual.getNone(), instanceOf(YamlNoneShardingStrategyConfiguration.class));
      }
test_case.class_method_signature: ShardingStrategyConfigurationYamlSwapperTest.assertSwapToYamlWithNone()
test_case.full_signature: @Test public void assertSwapToYamlWithNone()
test_case.identifier: assertSwapToYamlWithNone
test_case.invocations: swapToYamlConfiguration assertNull getStandard assertNull getComplex assertNull getHint assertThat getNone instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToYamlWithNone()
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/yaml/swapper/strategy/ShardingStrategyConfigurationYamlSwapper.java
focal_class.identifier: ShardingStrategyConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlShardingStrategyConfiguration, ShardingStrategyConfiguration>
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.swapToYamlConfiguration(final ShardingStrategyConfiguration data)
focal_class.full_signature: @Override public YamlShardingStrategyConfiguration swapToYamlConfiguration(final ShardingStrategyConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ShardingStrategyConfiguration data)
focal_class.return: YamlShardingStrategyConfiguration
focal_class.signature: YamlShardingStrategyConfiguration swapToYamlConfiguration(final ShardingStrategyConfiguration data)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.swapToObject(final YamlShardingStrategyConfiguration yamlConfig)
focal_class.full_signature: @Override public ShardingStrategyConfiguration swapToObject(final YamlShardingStrategyConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlShardingStrategyConfiguration yamlConfig)
focal_class.return: ShardingStrategyConfiguration
focal_class.signature: ShardingStrategyConfiguration swapToObject(final YamlShardingStrategyConfiguration yamlConfig)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createYamlStandardShardingStrategyConfiguration(final StandardShardingStrategyConfiguration data)
focal_class.full_signature: private YamlStandardShardingStrategyConfiguration createYamlStandardShardingStrategyConfiguration(final StandardShardingStrategyConfiguration data)
focal_class.identifier: createYamlStandardShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final StandardShardingStrategyConfiguration data)
focal_class.return: YamlStandardShardingStrategyConfiguration
focal_class.signature: YamlStandardShardingStrategyConfiguration createYamlStandardShardingStrategyConfiguration(final StandardShardingStrategyConfiguration data)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createYamlComplexShardingStrategyConfiguration(final ComplexShardingStrategyConfiguration data)
focal_class.full_signature: private YamlComplexShardingStrategyConfiguration createYamlComplexShardingStrategyConfiguration(final ComplexShardingStrategyConfiguration data)
focal_class.identifier: createYamlComplexShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final ComplexShardingStrategyConfiguration data)
focal_class.return: YamlComplexShardingStrategyConfiguration
focal_class.signature: YamlComplexShardingStrategyConfiguration createYamlComplexShardingStrategyConfiguration(final ComplexShardingStrategyConfiguration data)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createYamlHintShardingStrategyConfiguration(final HintShardingStrategyConfiguration data)
focal_class.full_signature: private YamlHintShardingStrategyConfiguration createYamlHintShardingStrategyConfiguration(final HintShardingStrategyConfiguration data)
focal_class.identifier: createYamlHintShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final HintShardingStrategyConfiguration data)
focal_class.return: YamlHintShardingStrategyConfiguration
focal_class.signature: YamlHintShardingStrategyConfiguration createYamlHintShardingStrategyConfiguration(final HintShardingStrategyConfiguration data)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createStandardShardingStrategyConfiguration(final YamlStandardShardingStrategyConfiguration yamlConfig)
focal_class.full_signature: private StandardShardingStrategyConfiguration createStandardShardingStrategyConfiguration(final YamlStandardShardingStrategyConfiguration yamlConfig)
focal_class.identifier: createStandardShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final YamlStandardShardingStrategyConfiguration yamlConfig)
focal_class.return: StandardShardingStrategyConfiguration
focal_class.signature: StandardShardingStrategyConfiguration createStandardShardingStrategyConfiguration(final YamlStandardShardingStrategyConfiguration yamlConfig)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createComplexShardingStrategyConfiguration(final YamlComplexShardingStrategyConfiguration yamlConfig)
focal_class.full_signature: private ComplexShardingStrategyConfiguration createComplexShardingStrategyConfiguration(final YamlComplexShardingStrategyConfiguration yamlConfig)
focal_class.identifier: createComplexShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final YamlComplexShardingStrategyConfiguration yamlConfig)
focal_class.return: ComplexShardingStrategyConfiguration
focal_class.signature: ComplexShardingStrategyConfiguration createComplexShardingStrategyConfiguration(final YamlComplexShardingStrategyConfiguration yamlConfig)
focal_class.class_method_signature: ShardingStrategyConfigurationYamlSwapper.createHintShardingStrategyConfiguration(final YamlHintShardingStrategyConfiguration yamlConfig)
focal_class.full_signature: private HintShardingStrategyConfiguration createHintShardingStrategyConfiguration(final YamlHintShardingStrategyConfiguration yamlConfig)
focal_class.identifier: createHintShardingStrategyConfiguration
focal_class.modifiers: private
focal_class.parameters: (final YamlHintShardingStrategyConfiguration yamlConfig)
focal_class.return: HintShardingStrategyConfiguration
focal_class.signature: HintShardingStrategyConfiguration createHintShardingStrategyConfiguration(final YamlHintShardingStrategyConfiguration yamlConfig)
focal_method.body: @Override
      public YamlShardingStrategyConfiguration swapToYamlConfiguration(final ShardingStrategyConfiguration data) {
          YamlShardingStrategyConfiguration result = new YamlShardingStrategyConfiguration();
          if (data instanceof StandardShardingStrategyConfiguration) {
              result.setStandard(createYamlStandardShardingStrategyConfiguration((StandardShardingStrategyConfiguration) data));
          }
          if (data instanceof ComplexShardingStrategyConfiguration) {
              result.setComplex(createYamlComplexShardingStrategyConfiguration((ComplexShardingStrategyConfiguration) data));
          }
          if (data instanceof HintShardingStrategyConfiguration) {
              result.setHint(createYamlHintShardingStrategyConfiguration((HintShardingStrategyConfiguration) data));
          }
          if (data instanceof NoneShardingStrategyConfiguration) {
              result.setNone(new YamlNoneShardingStrategyConfiguration());
          }
          return result;
      }
focal_method.class_method_signature: ShardingStrategyConfigurationYamlSwapper.swapToYamlConfiguration(final ShardingStrategyConfiguration data)
focal_method.full_signature: @Override public YamlShardingStrategyConfiguration swapToYamlConfiguration(final ShardingStrategyConfiguration data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: setStandard createYamlStandardShardingStrategyConfiguration setComplex createYamlComplexShardingStrategyConfiguration setHint createYamlHintShardingStrategyConfiguration setNone
focal_method.modifiers: @Override public
focal_method.parameters: (final ShardingStrategyConfiguration data)
focal_method.return: YamlShardingStrategyConfiguration
focal_method.signature: YamlShardingStrategyConfiguration swapToYamlConfiguration(final ShardingStrategyConfiguration data)