/**
 * Copyright 2019 The CloudEvents Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.cloudevents.fun;

import java.util.Map;

import io.cloudevents.format.Format;

/**
 * 
 * @author fabiojose
 *
 */
@FunctionalInterface
public interface FormatBuilder<P> {

	/**
	 * Builds a format to be used for the wire serialization
	 */
	Format<P> build(P payload, Map<String, Object> headers);
	
}

@@ -678,22 +678,20 @@
 .format.
-Format
+Wire
 ;%0A%0A/**%0A 
@@ -759,22 +759,20 @@
 terface 
-Format
+Wire
 Builder%3C
@@ -772,16 +772,22 @@
 uilder%3CP
+, K, V
 %3E %7B%0A%0A%09/*
@@ -805,67 +805,38 @@
 s a 
-format to be used for the wire serialization%0A%09 */%0A%09Format%3CP
+wire format%0A%09 */%0A%09Wire%3CP, K, V
 %3E bu
@@ -858,22 +858,12 @@
 Map%3C
-String, Object
+K, V
 %3E he

Rename to wire instead of format