/** * Returns a new instance of {@code DittoHeadersBuilder} initialized with the the properties of the given map. * * @param headers the header map which provides the initial properties of the builder. * @return a builder for creating {@code DittoHeaders} object. * @throws NullPointerException if {@code dittoHeaders} is {@code null}. * @throws org.eclipse.ditto.model.base.exceptions.DittoHeaderInvalidException if {@code headers} contains a value * that did not represent its appropriate Java type. */ static DefaultDittoHeadersBuilder of(final Map<String, String> headers) { return new DefaultDittoHeadersBuilder(headers); }
/** * Returns a new instance of {@code DittoHeadersBuilder} initialized with the the properties of the given map. * * @param headers the header map which provides the initial properties of the builder. * @return a builder for creating {@code DittoHeaders} object. * @throws NullPointerException if {@code dittoHeaders} is {@code null}. * @throws org.eclipse.ditto.model.base.exceptions.DittoHeaderInvalidException if {@code headers} contains a value * that did not represent its appropriate Java type. */ static DefaultDittoHeadersBuilder of(final Map<String, String> headers) { return new DefaultDittoHeadersBuilder(headers); }