View Javadoc
1   /*
2    * Copyright (C) 2018, Google LLC. and others
3    *
4    * This program and the accompanying materials are made available under the
5    * terms of the Eclipse Distribution License v. 1.0 which is available at
6    * https://www.eclipse.org/org/documents/edl-v10.php.
7    *
8    * SPDX-License-Identifier: BSD-3-Clause
9    */
10  package org.eclipse.jgit.transport;
11  
12  /**
13   * Capabilities protocol v2 request.
14   *
15   * <p>
16   * This is used as an input to {@link ProtocolV2Hook}.
17   *
18   * @since 5.1
19   */
20  public final class CapabilitiesV2Request {
21  	private CapabilitiesV2Request() {
22  	}
23  
24  	/** @return A builder of {@link CapabilitiesV2Request}. */
25  	public static Builder builder() {
26  		return new Builder();
27  	}
28  
29  	/** A builder for {@link CapabilitiesV2Request}. */
30  	public static final class Builder {
31  		private Builder() {
32  		}
33  
34  		/** @return CapabilitiesV2Request */
35  		public CapabilitiesV2Request build() {
36  			return new CapabilitiesV2Request();
37  		}
38  	}
39  }