/** * Returns an instance of {@code ImmutableDittoHeaders} which is based on the specified map. * * @param headers the key-value-pairs of the result. * @return the instance. * @throws NullPointerException if {@code headers} is {@code null}. */ public static ImmutableDittoHeaders of(final Map<String, String> headers) { return new ImmutableDittoHeaders(headers); }
@Override public R build() { final ImmutableDittoHeaders dittoHeaders = ImmutableDittoHeaders.of(headers); return doBuild(dittoHeaders); }
@Override public R build() { final ImmutableDittoHeaders dittoHeaders = ImmutableDittoHeaders.of(headers); return doBuild(dittoHeaders); }
/** * Returns an instance of {@code ImmutableDittoHeaders} which is based on the specified map. * * @param headers the key-value-pairs of the result. * @return the instance. * @throws NullPointerException if {@code headers} is {@code null}. */ public static ImmutableDittoHeaders of(final Map<String, String> headers) { return new ImmutableDittoHeaders(headers); }