blob: 9ed7e8a5f52de4629f8081e8135e2f51f4f8f64c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package cuchaz.enigma.translation.mapping;
import cuchaz.enigma.translation.representation.entry.Entry;
import javax.annotation.Nullable;
public class MappingPair<E extends Entry<?>, M> {
private final E entry;
private final M mapping;
public MappingPair(E entry, @Nullable M mapping) {
this.entry = entry;
this.mapping = mapping;
}
public MappingPair(E entry) {
this(entry, null);
}
public E getEntry() {
return entry;
}
@Nullable
public M getMapping() {
return mapping;
}
}
|