@Test @DisplayName("Test that some keys can be excluded") void testExclude() { final var sut = new CompoundParamsBuilder("abrakadabra long=12L int=5 float=7.54e13 hex=0x55 hexFloat=0x55P3").exclude("long"); final var cp = sut.build(); Assertions.assertEquals("abrakadabra", cp.id()); Assertions.assertEquals(4, cp.keySet().size()); Assertions.assertEquals("", cp.get("long")); Assertions.assertEquals("5", cp.get("int")); Assertions.assertEquals("7.54e13", cp.get("float")); Assertions.assertEquals("0x55", cp.get("hex")); Assertions.assertEquals("0x55P3", cp.get("hexFloat")); }
public CompoundParamsBuilder exclude(String... keys) { excludedKeys.addAll(Arrays.asList(keys)); return this; }
CompoundParamsBuilder { public CompoundParamsBuilder exclude(String... keys) { excludedKeys.addAll(Arrays.asList(keys)); return this; } }
CompoundParamsBuilder { public CompoundParamsBuilder exclude(String... keys) { excludedKeys.addAll(Arrays.asList(keys)); return this; } CompoundParamsBuilder(final String line); }
CompoundParamsBuilder { public CompoundParamsBuilder exclude(String... keys) { excludedKeys.addAll(Arrays.asList(keys)); return this; } CompoundParamsBuilder(final String line); CompoundParamsBuilder redefineId(); CompoundParamsBuilder exclude(String... keys); CompoundParams build(); }
CompoundParamsBuilder { public CompoundParamsBuilder exclude(String... keys) { excludedKeys.addAll(Arrays.asList(keys)); return this; } CompoundParamsBuilder(final String line); CompoundParamsBuilder redefineId(); CompoundParamsBuilder exclude(String... keys); CompoundParams build();  }