@Test(expected = IllegalArgumentException.class) public void testCreationWithNullValue() { JmsProperties.builder().with("hello", null); }
public JmsPropertiesBuilder with(String key, boolean value) { validate(key, value); properties.put(key, new Property<>(key, value, JmsTask.wrap(m -> m.setBooleanProperty(key, value)))); return this; }
JmsPropertiesBuilder { public JmsPropertiesBuilder with(String key, boolean value) { validate(key, value); properties.put(key, new Property<>(key, value, JmsTask.wrap(m -> m.setBooleanProperty(key, value)))); return this; } }
JmsPropertiesBuilder { public JmsPropertiesBuilder with(String key, boolean value) { validate(key, value); properties.put(key, new Property<>(key, value, JmsTask.wrap(m -> m.setBooleanProperty(key, value)))); return this; }  }
JmsPropertiesBuilder { public JmsPropertiesBuilder with(String key, boolean value) { validate(key, value); properties.put(key, new Property<>(key, value, JmsTask.wrap(m -> m.setBooleanProperty(key, value)))); return this; }  JmsPropertiesBuilder with(String key, boolean value); JmsPropertiesBuilder with(String key, byte value); JmsPropertiesBuilder with(String key, short value); JmsPropertiesBuilder with(String key, int value); JmsPropertiesBuilder with(String key, long value); JmsPropertiesBuilder with(String key, float value); JmsPropertiesBuilder with(String key, double value); JmsPropertiesBuilder with(String key, String value); JmsPropertiesBuilder without(String key); JmsProperties build(); }
JmsPropertiesBuilder { public JmsPropertiesBuilder with(String key, boolean value) { validate(key, value); properties.put(key, new Property<>(key, value, JmsTask.wrap(m -> m.setBooleanProperty(key, value)))); return this; }  JmsPropertiesBuilder with(String key, boolean value); JmsPropertiesBuilder with(String key, byte value); JmsPropertiesBuilder with(String key, short value); JmsPropertiesBuilder with(String key, int value); JmsPropertiesBuilder with(String key, long value); JmsPropertiesBuilder with(String key, float value); JmsPropertiesBuilder with(String key, double value); JmsPropertiesBuilder with(String key, String value); JmsPropertiesBuilder without(String key); JmsProperties build();  }