1
2
3
4
5
6
7
8
9
10
11 package org.eclipse.jgit.internal.ketch;
12
13 import java.util.Map;
14 import java.util.Set;
15
16 import org.eclipse.jgit.annotations.Nullable;
17 import org.eclipse.jgit.lib.ObjectId;
18 import org.eclipse.jgit.lib.Ref;
19
20
21
22
23 public class ReplicaFetchRequest {
24 private final Set<String> wantRefs;
25 private final Set<ObjectId> wantObjects;
26 private Map<String, Ref> refs;
27
28
29
30
31
32
33
34
35
36 public ReplicaFetchRequest(Set<String> wantRefs,
37 Set<ObjectId> wantObjects) {
38 this.wantRefs = wantRefs;
39 this.wantObjects = wantObjects;
40 }
41
42
43
44
45
46
47 public Set<String> getWantRefs() {
48 return wantRefs;
49 }
50
51
52
53
54
55
56 public Set<ObjectId> getWantObjects() {
57 return wantObjects;
58 }
59
60
61
62
63
64
65 @Nullable
66 public Map<String, Ref> getRefs() {
67 return refs;
68 }
69
70
71
72
73
74
75
76 public void setRefs(Map<String, Ref> refs) {
77 this.refs = refs;
78 }
79 }